Skip to content

Commit

Permalink
hipsolver: update to 2.0.0 (ROCm 6)
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Zhao <git@gzgz.dev>
  • Loading branch information
GZGavinZhao committed Apr 7, 2024
1 parent b09e103 commit a17e797
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 61 deletions.
26 changes: 26 additions & 0 deletions packages/h/hipsolver/abi_symbols
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,32 @@ libhipsolver.so.0:hipsolverDsytrd_bufferSize
libhipsolver.so.0:hipsolverDsytrf
libhipsolver.so.0:hipsolverDsytrf_bufferSize
libhipsolver.so.0:hipsolverGetStream
libhipsolver.so.0:hipsolverRfAccessBundledFactorsDevice
libhipsolver.so.0:hipsolverRfAnalyze
libhipsolver.so.0:hipsolverRfBatchAnalyze
libhipsolver.so.0:hipsolverRfBatchRefactor
libhipsolver.so.0:hipsolverRfBatchResetValues
libhipsolver.so.0:hipsolverRfBatchSetupHost
libhipsolver.so.0:hipsolverRfBatchSolve
libhipsolver.so.0:hipsolverRfBatchZeroPivot
libhipsolver.so.0:hipsolverRfCreate
libhipsolver.so.0:hipsolverRfDestroy
libhipsolver.so.0:hipsolverRfExtractBundledFactorsHost
libhipsolver.so.0:hipsolverRfExtractSplitFactorsHost
libhipsolver.so.0:hipsolverRfGetMatrixFormat
libhipsolver.so.0:hipsolverRfGetNumericBoostReport
libhipsolver.so.0:hipsolverRfGetNumericProperties
libhipsolver.so.0:hipsolverRfGetResetValuesFastMode
libhipsolver.so.0:hipsolverRfGet_Algs
libhipsolver.so.0:hipsolverRfRefactor
libhipsolver.so.0:hipsolverRfResetValues
libhipsolver.so.0:hipsolverRfSetAlgs
libhipsolver.so.0:hipsolverRfSetMatrixFormat
libhipsolver.so.0:hipsolverRfSetNumericProperties
libhipsolver.so.0:hipsolverRfSetResetValuesFastMode
libhipsolver.so.0:hipsolverRfSetupDevice
libhipsolver.so.0:hipsolverRfSetupHost
libhipsolver.so.0:hipsolverRfSolve
libhipsolver.so.0:hipsolverSSgels
libhipsolver.so.0:hipsolverSSgels_bufferSize
libhipsolver.so.0:hipsolverSSgesv
Expand Down
4 changes: 2 additions & 2 deletions packages/h/hipsolver/abi_used_libs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
libamdhip64.so.5
libamdhip64.so.6
libc.so.6
libgcc_s.so.1
librocblas.so.0
librocblas.so.4
librocsolver.so.0
libstdc++.so.6
58 changes: 33 additions & 25 deletions packages/h/hipsolver/abi_used_symbols
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
libamdhip64.so.5:hipFree
libamdhip64.so.5:hipMalloc
libamdhip64.so.5:hipMemcpy
libamdhip64.so.5:hipMemsetAsync
libamdhip64.so.6:hipFree
libamdhip64.so.6:hipMalloc
libamdhip64.so.6:hipMemcpy
libamdhip64.so.6:hipMemsetAsync
libc.so.6:__stack_chk_fail
libc.so.6:free
libc.so.6:malloc
libgcc_s.so.1:_Unwind_Resume
librocblas.so.0:rocblas_cgeam_strided_batched
librocblas.so.0:rocblas_create_handle
librocblas.so.0:rocblas_destroy_handle
librocblas.so.0:rocblas_device_malloc_alloc
librocblas.so.0:rocblas_device_malloc_free
librocblas.so.0:rocblas_device_malloc_get
librocblas.so.0:rocblas_device_malloc_success
librocblas.so.0:rocblas_dgeam_strided_batched
librocblas.so.0:rocblas_get_device_memory_size
librocblas.so.0:rocblas_get_stream
librocblas.so.0:rocblas_is_user_managing_device_memory
librocblas.so.0:rocblas_set_device_memory_size
librocblas.so.0:rocblas_set_optimal_device_memory_size_impl
librocblas.so.0:rocblas_set_stream
librocblas.so.0:rocblas_set_workspace
librocblas.so.0:rocblas_sgeam_strided_batched
librocblas.so.0:rocblas_start_device_memory_size_query
librocblas.so.0:rocblas_stop_device_memory_size_query
librocblas.so.0:rocblas_zgeam_strided_batched
librocblas.so.4:rocblas_cgeam_strided_batched
librocblas.so.4:rocblas_create_handle
librocblas.so.4:rocblas_destroy_handle
librocblas.so.4:rocblas_device_malloc_alloc
librocblas.so.4:rocblas_device_malloc_free
librocblas.so.4:rocblas_device_malloc_get
librocblas.so.4:rocblas_device_malloc_success
librocblas.so.4:rocblas_dgeam_strided_batched
librocblas.so.4:rocblas_get_device_memory_size
librocblas.so.4:rocblas_get_stream
librocblas.so.4:rocblas_is_user_managing_device_memory
librocblas.so.4:rocblas_set_device_memory_size
librocblas.so.4:rocblas_set_optimal_device_memory_size_impl
librocblas.so.4:rocblas_set_stream
librocblas.so.4:rocblas_set_workspace
librocblas.so.4:rocblas_sgeam_strided_batched
librocblas.so.4:rocblas_start_device_memory_size_query
librocblas.so.4:rocblas_stop_device_memory_size_query
librocblas.so.4:rocblas_zgeam_strided_batched
librocsolver.so.0:rocsolver_cgebrd
librocsolver.so.0:rocsolver_cgels
librocsolver.so.0:rocsolver_cgels_outofplace
Expand All @@ -49,12 +51,19 @@ librocsolver.so.0:rocsolver_cpotrf_batched
librocsolver.so.0:rocsolver_cpotri
librocsolver.so.0:rocsolver_cpotrs
librocsolver.so.0:rocsolver_cpotrs_batched
librocsolver.so.0:rocsolver_create_rfinfo
librocsolver.so.0:rocsolver_csytrf
librocsolver.so.0:rocsolver_cungbr
librocsolver.so.0:rocsolver_cungqr
librocsolver.so.0:rocsolver_cungtr
librocsolver.so.0:rocsolver_cunmqr
librocsolver.so.0:rocsolver_cunmtr
librocsolver.so.0:rocsolver_dcsrrf_analysis
librocsolver.so.0:rocsolver_dcsrrf_refactlu
librocsolver.so.0:rocsolver_dcsrrf_solve
librocsolver.so.0:rocsolver_dcsrrf_splitlu
librocsolver.so.0:rocsolver_dcsrrf_sumlu
librocsolver.so.0:rocsolver_destroy_rfinfo
librocsolver.so.0:rocsolver_dgebrd
librocsolver.so.0:rocsolver_dgels
librocsolver.so.0:rocsolver_dgels_outofplace
Expand Down Expand Up @@ -157,11 +166,10 @@ libstdc++.so.6:_ZNSt9bad_allocD1Ev
libstdc++.so.6:_ZSt17current_exceptionv
libstdc++.so.6:_ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE
libstdc++.so.6:_ZSt21ios_base_library_initv
libstdc++.so.6:_ZSt9terminatev
libstdc++.so.6:_ZTISt9bad_alloc
libstdc++.so.6:_ZTVN10__cxxabiv116__enum_type_infoE
libstdc++.so.6:_ZTVSt9bad_alloc
libstdc++.so.6:_ZdlPv
libstdc++.so.6:_ZdlPvm
libstdc++.so.6:_Znwm
libstdc++.so.6:__cxa_allocate_exception
libstdc++.so.6:__cxa_begin_catch
Expand Down
43 changes: 13 additions & 30 deletions packages/h/hipsolver/package.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,31 @@
name : hipsolver
version : 5.5.1
release : 3
version : 2.0.0
release : 4
source :
- https://github.com/ROCmSoftwarePlatform/hipSOLVER/archive/refs/tags/rocm-5.5.1.tar.gz : 826bd64a4887176595bb7319d9a3612e7327602efe1f42aa3f2ad0e783d1a180
- https://github.com/ROCm/hipSOLVER/archive/refs/tags/rocm-6.0.0.tar.gz : 385849db02189d5e62096457e52ae899ae5c1ae7d409dc1da61f904d8861b48c
homepage : https://github.com/ROCmSoftwarePlatform/hipSOLVER
license : MIT
component : programming.library
summary : ROCm SOLVER marshalling library
description: |
hipSOLVER is a LAPACK marshalling library, with multiple supported backends. It sits between the application and a 'worker' LAPACK library, marshalling inputs into the backend library and marshalling results back to the application. hipSOLVER exports an interface that does not require the client to change, regardless of the chosen backend. Currently, hipSOLVER supports rocSOLVER and cuSOLVER as backends.
clang : yes
builddeps :
- rocblas-devel
- rocm-cmake
- rocm-hip-devel
- rocm-hip
- rocsolver-devel
- rocblas-devel
environment: |
declare -A rocm_vars
rocm_vars=(
["HIP_DEVICE_LIB_PATH"]="/usr/lib64/amdgcn/bitcode"
["DEVICE_LIB_PATH"]="/usr/lib64/amdgcn/bitcode"
["HIP_CLANG_PATH"]="/usr/bin"
["HIP_COMPILER"]="clang"
["HIP_LIB_PATH"]="/usr/lib64"
["HIP_PATH"]="/usr"
["HIP_PLATFORM"]="amd"
["HIP_ROCCLR_HOME"]="/usr"
["ROCM_PATH"]="/usr"
["BUILD_FILE_REORG_BACKWARD_COMPATIBILITY"]="OFF"
["HIPCC_VERBOSE"]="0"
# ["AMDGPU_TARGETS"]="gfx1030"
# ["HCC_AMDGPU_TARGETS"]="gfx1030"
)
export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=32/-fcf-protection=none}"
for name in "${!rocm_vars[@]}"; do
export "$name"="${rocm_vars[$name]}";
export ROCM_CMAKE_FLAGS="$ROCM_CMAKE_FLAGS -D$name=${rocm_vars[$name]}";
done
export ROCM_PATH=/usr
export HIP_CLANG_PATH=/usr/lib64/llvm-rocm/bin
export DEVICE_LIB_PATH=/usr/lib64/amdgcn/bitcode
setup : |
%cmake_ninja $ROCM_CMAKE_FLAGS
%cmake_ninja -L \
-DCMAKE_INSTALL_LIBDIR=lib%LIBSUFFIX% \
-DROCM_SYMLINK_LIBS=OFF \
-DAMDGPU_TARGETS="%AMDGPUTARGETS%"
build : |
%ninja_build
install : |
%ninja_install
mv $installdir/usr/lib $installdir/%libdir%
rm -r $installdir/usr/hipsolver
9 changes: 5 additions & 4 deletions packages/h/hipsolver/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="3">hipsolver</Dependency>
<Dependency release="4">hipsolver</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include/hipsolver/hipsolver.h</Path>
<Path fileType="header">/usr/include/hipsolver/hipsolver_module.f90</Path>
<Path fileType="header">/usr/include/hipsolver/internal/hipsolver-compat.h</Path>
<Path fileType="header">/usr/include/hipsolver/internal/hipsolver-export.h</Path>
<Path fileType="header">/usr/include/hipsolver/internal/hipsolver-functions.h</Path>
<Path fileType="header">/usr/include/hipsolver/internal/hipsolver-refactor.h</Path>
<Path fileType="header">/usr/include/hipsolver/internal/hipsolver-types.h</Path>
<Path fileType="header">/usr/include/hipsolver/internal/hipsolver-version.h</Path>
<Path fileType="library">/usr/lib64/cmake/hipsolver/hipsolver-config-version.cmake</Path>
Expand All @@ -50,9 +51,9 @@
</Files>
</Package>
<History>
<Update release="3">
<Date>2024-01-06</Date>
<Version>5.5.1</Version>
<Update release="4">
<Date>2024-02-21</Date>
<Version>2.0.0</Version>
<Comment>Packaging update</Comment>
<Name>Gavin Zhao</Name>
<Email>me@gzgz.dev</Email>
Expand Down

0 comments on commit a17e797

Please sign in to comment.