diff --git a/src/sst/elements/ariel/frontend/simple/examples/stream/Makefile.am b/src/sst/elements/ariel/frontend/simple/examples/stream/Makefile.am index 7d933e9a28..ce2a46737d 100644 --- a/src/sst/elements/ariel/frontend/simple/examples/stream/Makefile.am +++ b/src/sst/elements/ariel/frontend/simple/examples/stream/Makefile.am @@ -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 @@ -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