Skip to content
Snippets Groups Projects
Commit c69199ad authored by yaskovet's avatar yaskovet
Browse files

Add -DTEST_RUN flag to common.mk

parent 201c7b89
No related branches found
No related tags found
No related merge requests found
Pipeline #6306 failed
......@@ -8,7 +8,7 @@ gray_scott_sparse_opt_test: OPT += -DTEST_RUN
gray_scott_sparse_opt_test: gray_scott_sparse_opt
%.o: %.cpp
$(CC) -mavx -$(OPT) -c -o $@ $< $(INCLUDE_PATH)
$(CC) -mavx $(OPT) -c -o $@ $< $(INCLUDE_PATH)
gray_scott_sparse_opt: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
......
......@@ -18,7 +18,7 @@ else
CUDA_CC=mpic++ -x c++
INCLUDE_PATH_NVCC=$(INCLUDE_PATH)
CUDA_CC_LINK=mpic++
CUDA_OPTIONS=-O3 --std=c++14 -D__NVCC__ -DCUDART_VERSION=11000
CUDA_OPTIONS=-O3 --std=c++14 -DTEST_RUN -D__NVCC__ -DCUDART_VERSION=11000
LIBS_SELECT=$(LIBS) -lboost_context
else
ifeq (, $(shell which nvcc))
......@@ -31,7 +31,7 @@ else
INCLUDE_PATH_NVCC:=-Xcompiler=-Wno-deprecated-declarations $(INCLUDE_PATH_NVCC)
CUDA_CC=nvcc -ccbin=mpic++
CUDA_CC_LINK=nvcc -ccbin=mpic++
CUDA_OPTIONS=-O3 --std=c++14 -use_fast_math -arch=sm_61 -lineinfo --extended-lambda --expt-relaxed-constexpr
CUDA_OPTIONS=-O3 --std=c++14 -DTEST_RUN -use_fast_math -arch=sm_61 -lineinfo --extended-lambda --expt-relaxed-constexpr
LIBS_SELECT=$(LIBS_NVCC)
endif
endif
......@@ -46,7 +46,7 @@ else
CUDA_CC_LINK:=$(CUDA_CC_LINK)
endif
OPT=-g -O3 --std=c++14
OPT=-g -O3 --std=c++14 -DTEST_RUN
INCLUDE_PATH:=-Wno-deprecated-declarations $(INCLUDE_PATH)
INCLUDE_PATH_NVCC:=$(INCLUDE_PATH_NVCC) -I./include
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