Skip to content

Commit f7a5f2e

Browse files
authored
Merge pull request #434 from sourceryinstitute/openshmem
Experimental OpenSHMEM version
2 parents 1489c4f + af85cff commit f7a5f2e

File tree

4 files changed

+3913
-0
lines changed

4 files changed

+3913
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ codecov.yml export-ignore
3535
makefile export-ignore
3636
Makefile export-ignore
3737
make.inc* export-ignore
38+
39+
# Experimental conduits/backends
3840
src/gasnet export-ignore
41+
src/openshmem export-ignore
3942

4043
# Perform substitutions when `git export`ing these files
4144
.VERSION export-subst

src/make.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ ifeq ($(compiler),gnu)
4040
CC=gcc
4141
MPFC = mpifort
4242
MPICC = mpicc
43+
OSHCC = oshcc
4344
FFLAGS_EXTRA = -fcoarray=lib
4445
MPI_EXTRA_FLAGS = -Wall -Wextra -Wno-error=cpp -Wno-error=unused-parameter -DSTRIDED#-DNONBLOCKING_PUT -DCAF_MPI_LOCK_UNLOCK
4546
MPI_RUN = mpiexec -np 2

src/openshmem/Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
include ../make.inc
2+
3+
MPICC ?= oshcc
4+
5+
libcaf_openshmem.a: openshmem_caf.o ../common/caf_auxiliary.o
6+
ar rcv $@ openshmem_caf.o ../common/caf_auxiliary.o
7+
ranlib $@
8+
9+
.c.o:
10+
$(MPICC) $(CFLAGS) $(MPI_CFLAGS) -I.. -c $< -o $@
11+
12+
openshmem_caf.o: openshmem_caf.c ../libcaf.h ../libcaf-gfortran-descriptor.h
13+
14+
../common/caf_auxiliary.o:
15+
$(MAKE) -C ../common
16+
17+
clean:
18+
rm -f openshmem_caf.o
19+
20+
distclean: clean
21+
rm -f libcaf_openshmem.a

0 commit comments

Comments
 (0)