-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hipfft: update to 1.0.13 (ROCm 6.0.0)
Signed-off-by: Gavin Zhao <git@gzgz.dev>
- Loading branch information
1 parent
a17e797
commit 1b9599f
Showing
5 changed files
with
58 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
UNKNOWN | ||
libamdhip64.so.6 | ||
libc.so.6 | ||
libgcc_s.so.1 | ||
librocfft.so.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,30 @@ | ||
name : hipfft | ||
version : 5.5.1 | ||
release : 3 | ||
version : 1.0.13 | ||
release : 4 | ||
source : | ||
- git|https://github.com/ROCmSoftwarePlatform/hipFFT.git : rocm-5.5.1 | ||
- git|https://github.com/ROCmSoftwarePlatform/hipFFT.git : rocm-6.0.0 | ||
homepage : https://github.com/ROCmSoftwarePlatform/hipFFT | ||
license : MIT | ||
component : programming.library | ||
summary : ROCm FFT marshalling library | ||
description: | | ||
hipFFT is an FFT marshalling library. Currently, hipFFT supports either rocFFT or cuFFT as backends. hipFFT exports an interface that does not require the client to change, regardless of the chosen backend. It sits between the application and the backend FFT library, marshalling inputs into the backend and results back to the application. | ||
clang : yes | ||
builddeps : | ||
- rocfft-devel | ||
- rocm-cmake | ||
- rocm-hip-devel | ||
- rocm-hip | ||
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" | ||
) | ||
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 CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=32/-fcf-protection=none}" | ||
setup : | | ||
%patch -p1 -i $pkgfiles/Enable-soversion.patch | ||
%cmake_ninja $ROCM_CMAKE_FLAGS | ||
export ROCM_PATH=/usr | ||
export HIP_CLANG_PATH=/usr/lib64/llvm-rocm/bin | ||
export DEVICE_LIB_PATH=/usr/lib64/amdgcn/bitcode | ||
setup : | | ||
%cmake_ninja -L \ | ||
-DCMAKE_INSTALL_LIBDIR=lib%LIBSUFFIX% \ | ||
-DROCM_SYMLINK_LIBS=OFF \ | ||
-DAMDGPU_TARGETS="%AMDGPU_TARGETS%" | ||
build : | | ||
%ninja_build | ||
install : | | ||
%ninja_install | ||
mv $installdir/usr/lib $installdir/%libdir% | ||
rm -rf $installdir/usr/hipfft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters