Use $(CFLAGS) in OpenMP build rules
This commit is contained in:
parent
d3fa52748b
commit
6b26e33dcd
@ -29,8 +29,8 @@ OMP_TARGET_CLANG = -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda
|
|||||||
OMP_TARGET = $(OMP_TARGET_$(COMPILER))
|
OMP_TARGET = $(OMP_TARGET_$(COMPILER))
|
||||||
|
|
||||||
omp-stream: main.cpp OMPStream.cpp
|
omp-stream: main.cpp OMPStream.cpp
|
||||||
$(CC) -O3 -std=c++11 -DOMP $^ $(OMP) $(EXTRA_FLAGS) -o $@
|
$(CC) $(CFLAGS) -DOMP $^ $(OMP) $(EXTRA_FLAGS) -o $@
|
||||||
|
|
||||||
omp-target-stream: main.cpp OMPStream.cpp
|
omp-target-stream: main.cpp OMPStream.cpp
|
||||||
$(CC) -O3 -std=c++11 -DOMP -DOMP_TARGET_GPU $^ $(OMP_TARGET) $(EXTRA_FLAGS) -o $@
|
$(CC) $(CFLAGS) -DOMP -DOMP_TARGET_GPU $^ $(OMP_TARGET) $(EXTRA_FLAGS) -o $@
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user