diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-31 21:02:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-31 21:02:55 +0000 |
commit | d36c5f9e59f92a021c987989cd79d44460e0da42 (patch) | |
tree | 2504c88d1f287ac3a71ebc56e5d19f34a2c1b9a4 /sci-libs/rocBLAS/files | |
parent | e860dfa5acdb67f8e2b8938b005dbaaaaf2c984a (diff) |
gentoo auto-resync : 31:01:2023 - 21:02:55
Diffstat (limited to 'sci-libs/rocBLAS/files')
4 files changed, 76 insertions, 0 deletions
diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-add-missing-header.patch b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-add-missing-header.patch new file mode 100644 index 000000000000..cefad2bad61a --- /dev/null +++ b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-add-missing-header.patch @@ -0,0 +1,14 @@ +Mitigate compilation issue. + +std::bad_alloc is defined in <new> +--- a/clients/include/host_alloc.hpp ++++ b/clients/include/host_alloc.hpp +@@ -22,6 +22,8 @@ + + #pragma once + ++#include <new> ++ + //! + //! @brief Host free memory w/o swap. Returns kB or -1 if unknown. + //! diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-cpp_lib_filesystem.patch b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-cpp_lib_filesystem.patch new file mode 100644 index 000000000000..688fe7eb5bc3 --- /dev/null +++ b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-cpp_lib_filesystem.patch @@ -0,0 +1,24 @@ +Index: rocBLAS-rocm-5.4.2/clients/common/utility.cpp +=================================================================== +--- rocBLAS-rocm-5.4.2.orig/clients/common/utility.cpp ++++ rocBLAS-rocm-5.4.2/clients/common/utility.cpp +@@ -38,6 +38,7 @@ + #ifdef WIN32 + #define strcasecmp(A, B) _stricmp(A, B) + ++#include <version> + #ifdef __cpp_lib_filesystem + #include <filesystem> + namespace fs = std::filesystem; +Index: rocBLAS-rocm-5.4.2/clients/include/singletons.hpp +=================================================================== +--- rocBLAS-rocm-5.4.2.orig/clients/include/singletons.hpp ++++ rocBLAS-rocm-5.4.2/clients/include/singletons.hpp +@@ -21,6 +21,6 @@ + * ************************************************************************ */ + + // global for device memory padding see d_vector.hpp +- ++#include<cstddef> + extern size_t g_DVEC_PAD; + void d_vector_set_pad_length(size_t pad); diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-link-cblas.patch b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-link-cblas.patch new file mode 100644 index 000000000000..a0a599ad0de8 --- /dev/null +++ b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-link-cblas.patch @@ -0,0 +1,12 @@ +Fix CPU blas function not found linking issue +--- a/clients/CMakeLists.txt ++++ b/clients/CMakeLists.txt +@@ -119,7 +119,7 @@ if( BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_TESTS) + set( BLIS_CPP ../common/blis_interface.cpp ) + set( BLAS_LIBRARY ${BUILD_DIR}/deps/blis/lib/libblis.a ) + else() +- set( BLAS_LIBRARY "blas" ) ++ set( BLAS_LIBRARY "blas -lcblas" ) + endif() + else() # WIN32 + set( BLAS_INCLUDE_DIR ${OPENBLAS_DIR}/include CACHE PATH "OpenBLAS library include path" ) diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-unbundle-Tensile.patch b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-unbundle-Tensile.patch new file mode 100644 index 000000000000..114c10502e68 --- /dev/null +++ b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-unbundle-Tensile.patch @@ -0,0 +1,26 @@ +Index: rocBLAS-rocm-5.4.2/CMakeLists.txt +=================================================================== +--- rocBLAS-rocm-5.4.2.orig/CMakeLists.txt ++++ rocBLAS-rocm-5.4.2/CMakeLists.txt +@@ -138,21 +138,6 @@ if(NOT SKIP_LIBRARY) + + set( Tensile_TEST_LOCAL_PATH "" CACHE PATH "Use local Tensile directory instead of fetching a GitHub branch" ) + +- include(virtualenv) +- +- if (Tensile_TEST_LOCAL_PATH) +- virtualenv_install(${Tensile_TEST_LOCAL_PATH}) +- message (STATUS "using local Tensile from ${Tensile_TEST_LOCAL_PATH}, copied to ${Tensile_ROOT}") +- else() +- # Use the virtual-env setup and download package from specified repot: +- set( tensile_fork "ROCmSoftwarePlatform" CACHE STRING "Tensile fork to use" ) +- file (STRINGS "tensile_tag.txt" read_tensile_tag) +- set( tensile_tag ${read_tensile_tag} CACHE STRING "Tensile tag to download" ) +- virtualenv_install("git+https://github.com/${tensile_fork}/Tensile.git@${tensile_tag}") +- message (STATUS "using GIT Tensile fork=${tensile_fork} from branch=${tensile_tag}") +- endif() +- message(STATUS "Adding ${VIRTUALENV_HOME_DIR} to CMAKE_PREFIX_PATH") +- list(APPEND CMAKE_PREFIX_PATH ${VIRTUALENV_HOME_DIR}) + if (TENSILE_VERSION) + find_package(Tensile ${TENSILE_VERSION} EXACT REQUIRED HIP LLVM OpenMP PATHS "${INSTALLED_TENSILE_PATH}") + else() |