Skip to content

Commit

Permalink
Merge pull request #28 from AdhocMan/rocm_6_0_fix
Browse files Browse the repository at this point in the history
Fix for ROCm 6.0 and switch to C++17
  • Loading branch information
AdhocMan authored Apr 10, 2024
2 parents 62790dd + 183b1f9 commit 208efb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
endif()

# set language and standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

# Get GNU standard install prefixes
include(GNUInstallDirs)
Expand Down
5 changes: 5 additions & 0 deletions src/gpu_util/gpu_blas_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@
#include <cublas_v2.h>

#elif defined(SPLA_ROCM)

#if __has_include(<rocblas/rocblas.h>)
#include <rocblas/rocblas.h>
#else
#include <rocblas.h>
#endif

#else
#error Either SPLA_CUDA or SPLA_ROCM must be defined!
Expand Down

0 comments on commit 208efb0

Please sign in to comment.