Skip to content

Commit

Permalink
conditionalize -cuda flag on PGI/NV compiler
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Hammond <[email protected]>
  • Loading branch information
jeffhammond committed Oct 24, 2024
1 parent e4282f0 commit cdc9b8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,11 @@ ifdef TCE_HIP
endif

ifdef USE_OPENACC_TRPDRV
FOPTIONS += -cuda -DUSE_CUDA_AFFINITY
ifeq ($(_FC),pgf90)
LIB_DEFINES += -cuda -DUSE_CUDA_AFFINITY
else
LIB_DEFINES += $(CUDA_INCLUDE) -DUSE_CUDA_AFFINITY
endif
endif

ifdef TCE_OPENACC
Expand Down

0 comments on commit cdc9b8e

Please sign in to comment.