From 52105dd9af347d5a44637e9916c860aafcaef095 Mon Sep 17 00:00:00 2001 From: Paulius Velesko Date: Wed, 9 Oct 2024 12:52:05 +0300 Subject: [PATCH] Add H4I-MKLShim submodule --- .gitmodules | 3 +++ src/CMakeLists.txt | 13 ------------- 2 files changed, 3 insertions(+), 13 deletions(-) create mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..548d841 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "H4I-MKLShim"] + path = H4I-MKLShim + url = https://github.com/CHIP-SPV/H4I-MKLShim.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6ffa8bf..0738524 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,16 +1,3 @@ -# Find HIP -if(STANDALONE_BUILD) - # Build H4I-MKLShim from submodule first - add_subdirectory(H4I-MKLShim REQUIRED) - - # Find hip package, but exclude its H4I-MKLShim - set(CMAKE_IGNORE_PATH ${CMAKE_IGNORE_PATH} ${hip_DIR}/../H4I-MKLShim) - find_package(hip CONFIG REQUIRED) - - # Explicitly set the path to our built H4I-MKLShim - set(H4I_MKLShim_DIR ${CMAKE_CURRENT_BINARY_DIR}/H4I-MKLShim) -endif() - include(ExternalProject) option(H4I_ROCM_HIPSOLVER_TAG "Tag to use from the ROCm hipBLAS repository when obtaining its hipsolver.h header" "rocm-5.3.3") ExternalProject_Add(ROCmHipsolver