Skip to content

Commit bbd14c5

Browse files
q-e-sirius, rocm@7.2.0 cray mpich@9.1.0 (#318)
1 parent fc810d2 commit bbd14c5

File tree

9 files changed

+780
-5
lines changed

9 files changed

+780
-5
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/projects/rocblas/clients/CMakeLists.txt b/projects/rocblas/clients/CMakeLists.txt
2+
index 0f32675..65e458d 100644
3+
--- a/projects/rocblas/clients/CMakeLists.txt
4+
+++ b/projects/rocblas/clients/CMakeLists.txt
5+
@@ -163,14 +163,6 @@ if( BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_TESTS)
6+
find_package(PkgConfig)
7+
if(NOT PKG_CONFIG_FOUND)
8+
message( FATAL_ERROR "Could not find libblis and pkgconfig is not available" )
9+
- else()
10+
- pkg_search_module(PKGBLAS cblas)
11+
- if(PKGBLAS_FOUND)
12+
- set( BLAS_LIBRARY ${PKGBLAS_LIBRARIES} )
13+
- set( BLAS_INCLUDE_DIR ${PKGBLAS_INCLUDE_DIRS} )
14+
- else()
15+
- message( FATAL_ERROR "Could not find libblis and pkgconfig can not find any other implementation of cblas" )
16+
- endif()
17+
endif()
18+
endif()
19+
else()
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/clients/CMakeLists.txt b/clients/CMakeLists.txt
2+
index 0f32675..65e458d 100644
3+
--- a/clients/CMakeLists.txt
4+
+++ b/clients/CMakeLists.txt
5+
@@ -163,14 +163,6 @@ if( BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_TESTS)
6+
find_package(PkgConfig)
7+
if(NOT PKG_CONFIG_FOUND)
8+
message( FATAL_ERROR "Could not find libblis and pkgconfig is not available" )
9+
- else()
10+
- pkg_search_module(PKGBLAS cblas)
11+
- if(PKGBLAS_FOUND)
12+
- set( BLAS_LIBRARY ${PKGBLAS_LIBRARIES} )
13+
- set( BLAS_INCLUDE_DIR ${PKGBLAS_INCLUDE_DIRS} )
14+
- else()
15+
- message( FATAL_ERROR "Could not find libblis and pkgconfig can not find any other implementation of cblas" )
16+
- endif()
17+
endif()
18+
endif()
19+
else()
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/clients/gtest/CMakeLists.txt b/clients/gtest/CMakeLists.txt
2+
index 55e9bbe..32b350c 100644
3+
--- a/clients/gtest/CMakeLists.txt
4+
+++ b/clients/gtest/CMakeLists.txt
5+
@@ -164,6 +164,7 @@ target_include_directories( rocblas-test
6+
$<BUILD_INTERFACE:${BLAS_INCLUDE_DIR}>
7+
$<BUILD_INTERFACE:${BLIS_INCLUDE_DIR}> # may be blank if not used
8+
$<BUILD_INTERFACE:${GTEST_INCLUDE_DIRS}>
9+
+ $<BUILD_INTERFACE:${ROCM_OPENMP_EXTRAS_DIR}/include>
10+
)
11+
target_include_directories( rocblas_v3-test
12+
SYSTEM PRIVATE
13+
@@ -171,6 +172,7 @@ target_include_directories( rocblas_v3-test
14+
$<BUILD_INTERFACE:${BLAS_INCLUDE_DIR}>
15+
$<BUILD_INTERFACE:${BLIS_INCLUDE_DIR}> # may be blank if not used
16+
$<BUILD_INTERFACE:${GTEST_INCLUDE_DIRS}>
17+
+ $<BUILD_INTERFACE:${ROCM_OPENMP_EXTRAS_DIR}/include>
18+
)
19+
20+
if( BUILD_FORTRAN_CLIENTS )
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
2+
index 762580d..1692578 100644
3+
--- a/library/CMakeLists.txt
4+
+++ b/library/CMakeLists.txt
5+
@@ -81,7 +81,10 @@ function( rocblas_library_settings lib_target_ )
6+
else()
7+
target_link_libraries( ${lib_target_} PRIVATE hip::device -lstdc++fs --rtlib=compiler-rt --unwindlib=libgcc)
8+
if (BUILD_SHARED_LIBS)
9+
- target_link_libraries(${lib_target_} PRIVATE -lroctx64)
10+
+ find_path(ROCTRACER_INCLUDE_DIR "roctracer/roctx.h")
11+
+ target_include_directories(${lib_target_} PUBLIC ${ROCTRACER_INCLUDE_DIR})
12+
+ find_library(ROCTX_LIB NAMES roctx64)
13+
+ target_link_libraries(${lib_target_} PRIVATE ${ROCTX_LIB})
14+
endif()
15+
endif()
16+
target_link_libraries( ${lib_target_} PRIVATE Threads::Threads )
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/clients/CMakeLists.txt b/clients/CMakeLists.txt
2+
index 6194286..292bd8d 100644
3+
--- a/clients/CMakeLists.txt
4+
+++ b/clients/CMakeLists.txt
5+
@@ -178,8 +178,8 @@ if( BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_TESTS)
6+
7+
# Find the package ROCmSMI
8+
if(NOT WIN32)
9+
- find_package(ROCmSMI REQUIRED)
10+
- list( APPEND COMMON_LINK_LIBS rocm_smi )
11+
+ find_package(rocm_smi CONFIG REQUIRED)
12+
+ list( APPEND COMMON_LINK_LIBS rocm_smi64 )
13+
endif()
14+
15+
find_package( GTest REQUIRED )

0 commit comments

Comments
 (0)