Skip to content

Commit

Permalink
GNUmake: Update Includes in hip.mak
Browse files Browse the repository at this point in the history
Use public prefix.
  • Loading branch information
ax3l committed Sep 14, 2022
1 parent 0a536cc commit a7317d9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Tools/GNUMake/comps/hip.mak
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ifeq ($(HIP_COMPILER),clang)

# Generic HIP info
ROC_PATH=$(realpath $(dir $(HIP_PATH)))
SYSTEM_INCLUDE_LOCATIONS += $(HIP_PATH)/include
SYSTEM_INCLUDE_LOCATIONS += $(ROC_PATH)/include $(HIP_PATH)/include

# rocRand
SYSTEM_INCLUDE_LOCATIONS += $(ROC_PATH)/include/hiprand $(ROC_PATH)/include/rocrand
Expand All @@ -120,13 +120,12 @@ ifeq ($(HIP_COMPILER),clang)
# rocThrust - Header only
# SYSTEM_INCLUDE_LOCATIONS += $(ROC_PATH)/include/rocthrust

ifeq ($(USE_ROCTX),TRUE)
# rocTracer
CXXFLAGS += -DAMREX_USE_ROCTX
HIPCC_FLAGS += -DAMREX_USE_ROCTX
SYSTEM_INCLUDE_LOCATIONS += $(ROC_PATH)/include/roctracer $(ROC_PATH)/include/rocprofiler
LIBRARY_LOCATIONS += $(ROC_PATH)/lib
LIBRARIES += -lroctracer64 -lroctx64
ifeq ($(USE_ROCTX),TRUE)
CXXFLAGS += -DAMREX_USE_ROCTX
HIPCC_FLAGS += -DAMREX_USE_ROCTX
LIBRARY_LOCATIONS += $(ROC_PATH)/lib
LIBRARIES += -lroctracer64 -lroctx64
endif

# hipcc passes a lot of unused arguments to clang
Expand Down

0 comments on commit a7317d9

Please sign in to comment.