File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,18 @@ find_package_handle_standard_args(rocBLAS
5151 VERSION_VAR
5252 ROCBLAS_VERSION
5353)
54+
55+ if (DEFINED rocblas_INCLUDE_DIR)
56+ set (ROCBLAS_LIB_PATH "${rocblas_INCLUDE_DIR} /../lib/librocblas.so" )
57+ else ()
58+ set (ROCBLAS_LIB_PATH "${HIP_PATH} /../rocblas/lib/librocblas.so" )
59+ endif ()
60+
5461# OPENCL_INCLUDE_DIR
5562if (NOT TARGET ONEMKL::rocBLAS::rocBLAS)
5663 add_library (ONEMKL::rocBLAS::rocBLAS SHARED IMPORTED )
5764 set_target_properties (ONEMKL::rocBLAS::rocBLAS PROPERTIES
58- IMPORTED_LOCATION "${HIP_PATH } /../rocblas /lib/librocblas.so"
65+ IMPORTED_LOCATION "${rocblas_INCLUDE_DIR } /../lib/librocblas.so"
5966 INTERFACE_INCLUDE_DIRECTORIES "${ROCBLAS_INCLUDE_DIR} ;${HIP_INCLUDE_DIRS} ;"
6067 INTERFACE_LINK_LIBRARIES "Threads::Threads;${ROCBLAS_LIBRARIES} ;"
6168 )
You can’t perform that action at this time.
0 commit comments