Skip to content

Commit

Permalink
HIP
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Dec 8, 2024
1 parent 610b40f commit a3e2667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Src/LinearSolvers/AMReX_SpMV.H
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if defined(AMREX_USE_CUDA)
# include <cusparse.h>
#elif defined(AMREX_USE_HIP)
# include <hipsparse.h>
# include <hipsparse/hipsparse.h>
#elif defined(AMREX_USE_DPCPP)
# include <oneapi/mkl/spblas.hpp>
#endif
Expand Down
10 changes: 2 additions & 8 deletions Tools/GNUMake/comps/hip.mak
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,10 @@ ifeq ($(HIP_COMPILER),clang)
ROC_PATH=$(realpath $(HIP_PATH))
SYSTEM_INCLUDE_LOCATIONS += $(ROC_PATH)/include

# rocRand
SYSTEM_INCLUDE_LOCATIONS += $(ROC_PATH)/include/hiprand $(ROC_PATH)/include/rocrand
LIBRARY_LOCATIONS += $(ROC_PATH)/lib
LIBRARIES += -Wl,--rpath=$(ROC_PATH)/lib -lhiprand -lrocrand

# rocPrim - Header only
SYSTEM_INCLUDE_LOCATIONS += $(ROC_PATH)/include/rocprim

# rocThrust - Header only
# SYSTEM_INCLUDE_LOCATIONS += $(ROC_PATH)/include/rocthrust
# hiprand & hipsparse
LIBRARIES += -Wl,--rpath=$(ROC_PATH)/lib -lhiprand -lrocrand -lhipsparse -lrocsparse

# rocTracer
ifeq ($(USE_ROCTX),TRUE)
Expand Down

0 comments on commit a3e2667

Please sign in to comment.