Skip to content

Commit a347751

Browse files
author
Damian Rouson
committed
Edit make.inc: add license & compiler logic
1 parent cf1813a commit a347751

File tree

1 file changed

+57
-9
lines changed

1 file changed

+57
-9
lines changed

src/make.inc

Lines changed: 57 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,72 @@
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+
153
PREFIX_NAME=_gfortran_caf_
2-
FC=gfortran
3-
CC=gcc
4-
MPFC=mpifort
554

655
FFLAGS = -O2 -g
756
CFLAGS = -O2 -g
8-
FFLAGS_EXTRA = -fcoarray=lib
57+
958
CFLAGS_EXTRA = -DPREFIX_NAME=$(PREFIX_NAME) -DHAVE_INT128_T
1059
FFLAGS += $(FFLAGS_EXTRA)
1160
CFLAGS += $(CFLAGS_EXTRA)
1261
LDFLAGS +=
1362

1463
SINGLE_CFLAGS += -Wall -Wextra
1564

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

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

0 commit comments

Comments
 (0)