Skip to content
Snippets Groups Projects
Commit 0b16264e authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing example compilation

parent ae1c2c12
No related branches found
No related tags found
No related merge requests found
Pipeline #2920 passed
......@@ -8,6 +8,7 @@ ifdef CUDA_ON_CPU
CUDA_CC=mpic++ -x c++ $(INCLUDE_PATH)
INCLUDE_PATH_NVCC=
CUDA_CC_LINK=mpic++
LIBS_SELECT=$(LIBS_CUDA_ON_CPU)
else
ifeq (, $(shell which nvcc))
CUDA_CC=mpic++ -x c++ $(INCLUDE_PATH)
......@@ -17,6 +18,7 @@ else
CUDA_CC=nvcc -ccbin=mpic++
CUDA_CC_LINK=nvcc -ccbin=mpic++
endif
LIBS_SELECT=$(LIBS)
endif
CC=mpic++
......@@ -35,7 +37,7 @@ md_dyn_test: md_dyn
$(CUDA_CC) $(OPT) -O3 -g -c --std=c++14 -o $@ $< $(INCLUDE_PATH_NVCC)
md_dyn: $(OBJ)
$(CUDA_CC_LINK) -o $@ $^ $(LIBS_PATH) $(LIBS)
$(CUDA_CC_LINK) -o $@ $^ $(LIBS_PATH) $(LIBS_SELECT)
run: md_dyn_test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment