Skip to content

Commit

Permalink
use mpi compiler for stream when --ariel-enable-mpi is given to confi…
Browse files Browse the repository at this point in the history
…gure
  • Loading branch information
plavin committed Aug 9, 2024
1 parent 668a9a2 commit fbdcbb2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/sst/elements/ariel/frontend/simple/examples/stream/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
if SST_USE_ARIEL_MPI
CXX_LOCAL = $(ARIEL_MPICXX)
CFLAGS_LOCAL = -fopenmp $(ARIEL_MPI_CFLAGS)
else
CXX_LOCAL = $(CXX)
CFLAGS_LOCAL =
endif

API_DIR = ../../../../api

all-local: stream stream_mlm
Expand All @@ -6,7 +14,13 @@ clean-local:
rm -f stream stream_mlm

stream:
$(CXX) stream.c -o stream -I$(API_DIR) -L$(API_DIR) -larielapi
$(CXX_LOCAL) stream.c -o stream $(CFLAGS_LOCAL) -I$(API_DIR) -L$(API_DIR) -larielapi

stream_mlm:
$(CXX) stream_malloc.c -o stream_mlm -I$(API_DIR) -L$(API_DIR) -larielapi
$(CXX_LOCAL) stream_malloc.c -o stream_mlm $(CFLAGS_LOCAL) -I$(API_DIR) -L$(API_DIR) -larielapi

print-compiler:
@echo "compiler: $(CXX_LOCAL)"
@echo "compiler: $(ARIEL_MPICXX)"

AM_DEFAULT_VERBOSITY=1

0 comments on commit fbdcbb2

Please sign in to comment.