diff --git a/example/SparseGrid/2_gray_scott_3d_sparse_opt/Makefile b/example/SparseGrid/2_gray_scott_3d_sparse_opt/Makefile
index 1079b2de5477267d963d7e06d48dfea24f1d5f38..02c296cfff3e67a60324964df0aab476228b1aa5 100644
--- a/example/SparseGrid/2_gray_scott_3d_sparse_opt/Makefile
+++ b/example/SparseGrid/2_gray_scott_3d_sparse_opt/Makefile
@@ -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)
diff --git a/example/common.mk b/example/common.mk
index a6a536b74f3af3b838e328152a7fe33e699b18c2..50a44e4403a5efa249ec7087560937ef96dd4b41 100644
--- a/example/common.mk
+++ b/example/common.mk
@@ -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