|
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 | | - |
53 | 1 | PREFIX_NAME=_gfortran_caf_ |
| 2 | +FC=gfortran |
| 3 | +CC=gcc |
| 4 | +MPFC=mpifort |
54 | 5 |
|
55 | 6 | FFLAGS = -O2 -g |
56 | 7 | CFLAGS = -O2 -g |
57 | | - |
| 8 | +FFLAGS_EXTRA = -fcoarray=lib |
58 | 9 | CFLAGS_EXTRA = -DPREFIX_NAME=$(PREFIX_NAME) -DHAVE_INT128_T |
59 | 10 | FFLAGS += $(FFLAGS_EXTRA) |
60 | 11 | CFLAGS += $(CFLAGS_EXTRA) |
61 | 12 | LDFLAGS += |
62 | 13 |
|
63 | 14 | SINGLE_CFLAGS += -Wall -Wextra |
64 | 15 |
|
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 |
66 | 17 | MPI_CFLAGS += $(MPI_EXTRA_FLAGS) |
| 18 | +#MPICC = |
| 19 | +MPI_RUN = mpirun -np 2 |
67 | 20 |
|
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 |
71 | 23 | GASNET_LDFLAGS +=$(GASNET_LIBS) |
72 | 24 | GASNET_RUN = mpirun -np 2 |
0 commit comments