Skip to content

Commit 3fdb505

Browse files
Merge pull request #99 from PFLAREProject/gpu_flags_makefile
Ensure existing gpu c flags are passed through to the compile
2 parents 0d7b4ec + 9fe332d commit 3fdb505

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ CFLAGS_INPUT := $(CFLAGS)
1818
FFLAGS_INPUT := $(FFLAGS)
1919
CPPFLAGS_INPUT := $(CPPFLAGS)
2020
FPPFLAGS_INPUT := $(FPPFLAGS)
21+
CUDAC_FLAGS_INPUT := $(CUDAC_FLAGS)
22+
HIPC_FLAGS_INPUT := $(HIPC_FLAGS)
23+
SYCLC_FLAGS_INPUT := $(SYCLC_FLAGS)
2124

2225
# Directories we want
2326
INCLUDEDIR := include
@@ -120,6 +123,9 @@ CFLAGS += $(CFLAGS_INPUT)
120123
FFLAGS += $(FFLAGS_INPUT)
121124
CPPFLAGS += $(CPPFLAGS_INPUT)
122125
FPPFLAGS += $(FPPFLAGS_INPUT)
126+
CUDAC_FLAGS += $(CUDAC_FLAGS_INPUT)
127+
HIPC_FLAGS += $(HIPC_FLAGS_INPUT)
128+
SYCLC_FLAGS += $(SYCLC_FLAGS_INPUT)
123129

124130
# Output the library - either static or dynamic
125131
ifeq ($(PETSC_USE_SHARED_LIBRARIES),0)

0 commit comments

Comments
 (0)