Skip to content

Commit

Permalink
Fix hipblas path (#705)
Browse files Browse the repository at this point in the history
* hipblas.h --> hipblas/hipblas.h

* Guard hipblas path change with a condition on HIP_VERSION.

---------

Co-authored-by: Nicholson Koukpaizan <[email protected]>
  • Loading branch information
cnpetra and nkoukpaizan authored Jan 24, 2025
1 parent 74aab8b commit 6708066
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindHiopHipLibraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ target_include_directories(Hipblas INTERFACE ${HIPBLAS_INCLUDE_DIR})
include(FindHiopMagma)
target_link_libraries(Magma INTERFACE Hipblas)

target_include_directories(hiop_hip INTERFACE ${ROCM_PATH}/hipfft/include)
target_include_directories(hiop_hip INTERFACE ${ROCM_PATH}/include/hipfft)
target_link_libraries(hiop_hip INTERFACE
hip::hiprand roc::rocrand
hip::hipfft
Expand Down
4 changes: 4 additions & 0 deletions src/LinAlg/VectorHipKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
*/
#include "VectorHipKernels.hpp"
#include <hip/hip_runtime.h>
#if HIP_VERSION >= 50200000
#include <hipblas/hipblas.h>
#else
#include <hipblas.h>
#endif

#include <thrust/device_ptr.h>
#include <thrust/device_vector.h>
Expand Down
4 changes: 4 additions & 0 deletions src/LinAlg/hiopVectorHip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@
#include "VectorHipKernels.hpp"
#include "MathKernelsHip.hpp"
#include <hip/hip_runtime.h>
#if HIP_VERSION >= 50200000
#include <hipblas/hipblas.h>
#else
#include <hipblas.h>
#endif

#include "hiopVectorPar.hpp"

Expand Down
4 changes: 4 additions & 0 deletions src/LinAlg/hiopVectorHip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@

#include "hiopVector.hpp"

#if HIP_VERSION >= 50200000
#include <hipblas/hipblas.h>
#else
#include <hipblas.h>
#endif

namespace hiop
{
Expand Down

0 comments on commit 6708066

Please sign in to comment.