Skip to content

Commit b1cffa7

Browse files
author
Damian Rouson
committed
Revert Edit make.inc: add license &compiler logic
This reverts commit a347751. The commit being reverted was mistakenly applied to the master branch. In keeping with our usual practice, we will instead branch off of master, make the change, and then submit a pull request.
1 parent a347751 commit b1cffa7

File tree

1 file changed

+9
-57
lines changed

1 file changed

+9
-57
lines changed

src/make.inc

Lines changed: 9 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,24 @@
1-
# make.inc
2-
#
3-
# -- This make include file defines variables for use in the OpenCoarrays
4-
# static Makefile. Please edit this file before using the Makefile.)
5-
#
6-
# OpenCoarrays is distributed under the OSI-approved BSD 3-clause License:
7-
# Copyright (c) 2015-2016, Sourcery, Inc.
8-
# Copyright (c) 2015-2016, Sourcery Institute
9-
# All rights reserved.
10-
#
11-
# Redistribution and use in source and binary forms, with or without modification,
12-
# are permitted provided that the following conditions are met:
13-
#
14-
# 1. Redistributions of source code must retain the above copyright notice, this
15-
# list of conditions and the following disclaimer.
16-
# 2. Redistributions in binary form must reproduce the above copyright notice, this
17-
# list of conditions and the following disclaimer in the documentation and/or
18-
# other materials provided with the distribution.
19-
# 3. Neither the names of the copyright holders nor the names of their contributors
20-
# may be used to endorse or promote products derived from this software without
21-
# specific prior written permission.
22-
#
23-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26-
# IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28-
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29-
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30-
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32-
# POSSIBILITY OF SUCH DAMAGE.
33-
34-
compiler=cray
35-
36-
ifeq ($(compiler),gnu)
37-
FC=gfortran
38-
CC=gcc
39-
MPFC = mpif90
40-
MPICC = mpicc
41-
FFLAGS_EXTRA = -fcoarray=lib
42-
MPI_EXTRA_FLAGS = -Wall -Wextra -Wno-error=cpp -Wno-error=unused-parameter -DSTRIDED#-DNONBLOCKING_PUT -DCAF_MPI_LOCK_UNLOCK
43-
MPI_RUN = mpirun -np 2
44-
else
45-
ifeq ($(compiler),cray)
46-
FC=ftn
47-
CC=cc
48-
MPFC=ftn
49-
MPICC = cc
50-
endif
51-
endif
52-
531
PREFIX_NAME=_gfortran_caf_
2+
FC=gfortran
3+
CC=gcc
4+
MPFC=mpifort
545

556
FFLAGS = -O2 -g
567
CFLAGS = -O2 -g
57-
8+
FFLAGS_EXTRA = -fcoarray=lib
589
CFLAGS_EXTRA = -DPREFIX_NAME=$(PREFIX_NAME) -DHAVE_INT128_T
5910
FFLAGS += $(FFLAGS_EXTRA)
6011
CFLAGS += $(CFLAGS_EXTRA)
6112
LDFLAGS +=
6213

6314
SINGLE_CFLAGS += -Wall -Wextra
6415

65-
MPI_EXTRA_FLAGS = -DSTRIDED # -DNONBLOCKING_PUT -DCAF_MPI_LOCK_UNLOCK
16+
MPI_EXTRA_FLAGS = -Wall -Wextra -Wno-error=cpp -Wno-error=unused-parameter -DSTRIDED#-DNONBLOCKING_PUT -DCAF_MPI_LOCK_UNLOCK
6617
MPI_CFLAGS += $(MPI_EXTRA_FLAGS)
18+
#MPICC =
19+
MPI_RUN = mpirun -np 2
6720

68-
GASNET_CFLAGS += # -DSTRIDED
69-
GASNET_PATH =
70-
GASNET_MAK = $(GASNET_PATH)/GASNet-1.22.4/smp-conduit/smp-par.mak
21+
GASNET_CFLAGS += #-DSTRIDED
22+
GASNET_MAK = /home/rouson/Downloads/GASNet-1.22.4/smp-conduit/smp-par.mak
7123
GASNET_LDFLAGS +=$(GASNET_LIBS)
7224
GASNET_RUN = mpirun -np 2

0 commit comments

Comments
 (0)