Date: Tuesday, February 7, 2023 @ 19:08:04
Author: tpkessler
Revision: 1396018
archrelease: copy trunk to community-testing-x86_64
Added:
hipfft/repos/community-testing-x86_64/PKGBUILD
(from rev 1396017, hipfft/trunk/PKGBUILD)
hipfft/repos/community-testing-x86_64/hipfft-no-git.patch
(from rev 1396017, hipfft/trunk/hipfft-no-git.patch)
hipfft/repos/community-testing-x86_64/test.cpp
(from rev 1396017, hipfft/trunk/test.cpp)
hipfft/repos/community-testing-x86_64/test.sh
(from rev 1396017, hipfft/trunk/test.sh)
Deleted:
hipfft/repos/community-testing-x86_64/PKGBUILD
hipfft/repos/community-testing-x86_64/hipfft-no-git.patch
hipfft/repos/community-testing-x86_64/test.cpp
hipfft/repos/community-testing-x86_64/test.sh
---------------------+
PKGBUILD | 92 ++++++++++++++++++++++-----------------------
hipfft-no-git.patch | 24 +++++------
test.cpp | 102 +++++++++++++++++++++++++-------------------------
test.sh | 10 ++--
4 files changed, 114 insertions(+), 114 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-07 19:07:50 UTC (rev 1396017)
+++ PKGBUILD 2023-02-07 19:08:04 UTC (rev 1396018)
@@ -1,46 +0,0 @@
-# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
-
-pkgname=hipfft
-pkgver=5.4.2
-pkgrel=1
-pkgdesc='rocFFT marshalling library.'
-arch=('x86_64')
-url='https://hipfft.readthedocs.io/en/latest/'
-license=('MIT')
-depends=('hip' 'rocfft')
-makedepends=('rocm-cmake')
-_git='https://github.com/ROCmSoftwarePlatform/hipFFT'
-source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
- "hipfft-no-git.patch")
-sha256sums=('0c0bf67bf38b9ab2f931f4d26ea6a8410107c160fe23ece50343df9b1278fe26'
- '6bf435844134dc8e8909ec3f1b73e210e82d61b00b8a555106bd1570fda3294a')
-_dirname="$(basename "$_git")-$(basename "${source[0]}" ".tar.gz")"
-
-prepare() {
- cd "$_dirname"
- patch -Np1 -i "$srcdir/hipfft-no-git.patch"
-}
-
-build() {
- # -fcf-protection is not supported by HIP, see
- #
https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.4/page/Appendix_A.html
- CXXFLAGS="${CXXFLAGS} -fcf-protection=none" \
- ROCM_PATH=/opt/rocm \
- cmake \
- -Wno-dev \
- -B build \
- -S "$_dirname" \
- -DCMAKE_BUILD_TYPE=None \
- -DCMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc \
- -DCMAKE_INSTALL_PREFIX=/opt/rocm
- cmake --build build
-}
-
-package() {
- DESTDIR="$pkgdir" cmake --install build
-
- echo "/opt/rocm/$pkgname/lib" > "$pkgname.conf"
- install -Dm644 "$pkgname.conf" "$pkgdir/etc/ld.so.conf.d/hipfft.conf"
-
- install -Dm644 "$srcdir/$_dirname/LICENSE.md"
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: hipfft/repos/community-testing-x86_64/PKGBUILD (from rev 1396017,
hipfft/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-07 19:08:04 UTC (rev 1396018)
@@ -0,0 +1,46 @@
+# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
+
+pkgname=hipfft
+pkgver=5.4.2
+pkgrel=2
+pkgdesc='rocFFT marshalling library.'
+arch=('x86_64')
+url='https://hipfft.readthedocs.io/en/latest/'
+license=('MIT')
+depends=('hip' 'rocfft')
+makedepends=('rocm-cmake')
+_git='https://github.com/ROCmSoftwarePlatform/hipFFT'
+source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
+ "hipfft-no-git.patch")
+sha256sums=('0c0bf67bf38b9ab2f931f4d26ea6a8410107c160fe23ece50343df9b1278fe26'
+ '6bf435844134dc8e8909ec3f1b73e210e82d61b00b8a555106bd1570fda3294a')
+_dirname="$(basename "$_git")-$(basename "${source[0]}" ".tar.gz")"
+
+prepare() {
+ cd "$_dirname"
+ patch -Np1 -i "$srcdir/hipfft-no-git.patch"
+}
+
+build() {
+ # -fcf-protection is not supported by HIP, see
+ #
https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.4/page/Appendix_A.html
+ CXXFLAGS="${CXXFLAGS} -fcf-protection=none" \
+ ROCM_PATH=/opt/rocm \
+ cmake \
+ -Wno-dev \
+ -B build \
+ -S "$_dirname" \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc \
+ -DCMAKE_INSTALL_PREFIX=/opt/rocm
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+
+ echo "/opt/rocm/$pkgname/lib" > "$pkgname.conf"
+ install -Dm644 "$pkgname.conf" "$pkgdir/etc/ld.so.conf.d/hipfft.conf"
+
+ install -Dm644 "$srcdir/$_dirname/LICENSE.md"
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Deleted: hipfft-no-git.patch
===================================================================
--- hipfft-no-git.patch 2023-02-07 19:07:50 UTC (rev 1396017)
+++ hipfft-no-git.patch 2023-02-07 19:08:04 UTC (rev 1396018)
@@ -1,12 +0,0 @@
---- hipFFT-rocm-5.4.0/cmake/dependencies.cmake.bak 2022-12-09
17:36:51.944287264 +0100
-+++ hipFFT-rocm-5.4.0/cmake/dependencies.cmake 2022-12-09 17:36:56.178248184
+0100
-@@ -21,9 +21,6 @@
- #
- #
#############################################################################
-
--# Git
--find_package(Git REQUIRED)
--
- # HIP
- if( NOT CMAKE_CXX_COMPILER MATCHES ".*/hipcc$" )
- if( NOT BUILD_WITH_LIB STREQUAL "CUDA" )
Copied: hipfft/repos/community-testing-x86_64/hipfft-no-git.patch (from rev
1396017, hipfft/trunk/hipfft-no-git.patch)
===================================================================
--- hipfft-no-git.patch (rev 0)
+++ hipfft-no-git.patch 2023-02-07 19:08:04 UTC (rev 1396018)
@@ -0,0 +1,12 @@
+--- hipFFT-rocm-5.4.0/cmake/dependencies.cmake.bak 2022-12-09
17:36:51.944287264 +0100
++++ hipFFT-rocm-5.4.0/cmake/dependencies.cmake 2022-12-09 17:36:56.178248184
+0100
+@@ -21,9 +21,6 @@
+ #
+ #
#############################################################################
+
+-# Git
+-find_package(Git REQUIRED)
+-
+ # HIP
+ if( NOT CMAKE_CXX_COMPILER MATCHES ".*/hipcc$" )
+ if( NOT BUILD_WITH_LIB STREQUAL "CUDA" )
Deleted: test.cpp
===================================================================
--- test.cpp 2023-02-07 19:07:50 UTC (rev 1396017)
+++ test.cpp 2023-02-07 19:08:04 UTC (rev 1396018)
@@ -1,51 +0,0 @@
-#include <hipfft/hipfft.h>
-#include <hip/hip_runtime.h>
-#include <vector>
-#include <numeric>
-#include <cmath>
-#include <iostream>
-
-int main()
-{
- size_t size = 1024 * 1024;
-
- hipfftComplex *x;
- hipMalloc((void**)&x, sizeof *x * size);
-
- std::vector<hipfftComplex> xin(size);
- for(auto &xx: xin){
- xx.x = 1.0f;
- xx.y = 0.0f;
- }
- hipMemcpy(x, xin.data(), sizeof *x * size, hipMemcpyHostToDevice);
-
- hipfftHandle plan;
- hipfftPlan1d(&plan, size, HIPFFT_C2C, 1);
-
- hipfftExecC2C(plan, x, x, HIPFFT_FORWARD);
-
- std::vector<hipfftComplex> xout(size);
- hipMemcpy(xout.data(), x, sizeof *x * size, hipMemcpyDeviceToHost);
-
- std::vector<hipfftComplex> xref(size);
- for(auto &xx: xref){
- xx.x = 0.0f;
- xx.y = 0.0f;
- }
- xref[0].x = 1.0f * size;
-
- float tol = 0.001f;
- for(size_t i = 0; i < size; i++){
- if(std::abs(xref[i].x - xout[i].x) + std::abs(xref[i].y - xout[i].y) >
tol){
- std::cout << "Element mismatch at index " << i << "\n";
- std::cout << "Expected: " << xref[i].x << " " << xref[i].y << "\n";
- std::cout << "Actual : " << xout[i].x << " " << xout[i].y << "\n";
- return 1;
- }
- }
-
- std::cout << "TESTS PASSED!" << std::endl;
-
- hipFree(x);
- hipfftDestroy(plan);
-}
Copied: hipfft/repos/community-testing-x86_64/test.cpp (from rev 1396017,
hipfft/trunk/test.cpp)
===================================================================
--- test.cpp (rev 0)
+++ test.cpp 2023-02-07 19:08:04 UTC (rev 1396018)
@@ -0,0 +1,51 @@
+#include <hipfft/hipfft.h>
+#include <hip/hip_runtime.h>
+#include <vector>
+#include <numeric>
+#include <cmath>
+#include <iostream>
+
+int main()
+{
+ size_t size = 1024 * 1024;
+
+ hipfftComplex *x;
+ hipMalloc((void**)&x, sizeof *x * size);
+
+ std::vector<hipfftComplex> xin(size);
+ for(auto &xx: xin){
+ xx.x = 1.0f;
+ xx.y = 0.0f;
+ }
+ hipMemcpy(x, xin.data(), sizeof *x * size, hipMemcpyHostToDevice);
+
+ hipfftHandle plan;
+ hipfftPlan1d(&plan, size, HIPFFT_C2C, 1);
+
+ hipfftExecC2C(plan, x, x, HIPFFT_FORWARD);
+
+ std::vector<hipfftComplex> xout(size);
+ hipMemcpy(xout.data(), x, sizeof *x * size, hipMemcpyDeviceToHost);
+
+ std::vector<hipfftComplex> xref(size);
+ for(auto &xx: xref){
+ xx.x = 0.0f;
+ xx.y = 0.0f;
+ }
+ xref[0].x = 1.0f * size;
+
+ float tol = 0.001f;
+ for(size_t i = 0; i < size; i++){
+ if(std::abs(xref[i].x - xout[i].x) + std::abs(xref[i].y - xout[i].y) >
tol){
+ std::cout << "Element mismatch at index " << i << "\n";
+ std::cout << "Expected: " << xref[i].x << " " << xref[i].y << "\n";
+ std::cout << "Actual : " << xout[i].x << " " << xout[i].y << "\n";
+ return 1;
+ }
+ }
+
+ std::cout << "TESTS PASSED!" << std::endl;
+
+ hipFree(x);
+ hipfftDestroy(plan);
+}
Deleted: test.sh
===================================================================
--- test.sh 2023-02-07 19:07:50 UTC (rev 1396017)
+++ test.sh 2023-02-07 19:08:04 UTC (rev 1396018)
@@ -1,5 +0,0 @@
-#! /usr/bin/env sh
-
-OUT=$(mktemp -d)
-/opt/rocm/bin/hipcc -o "$OUT"/test test.cpp -lhipfft -lrocfft
-"$OUT"/test
Copied: hipfft/repos/community-testing-x86_64/test.sh (from rev 1396017,
hipfft/trunk/test.sh)
===================================================================
--- test.sh (rev 0)
+++ test.sh 2023-02-07 19:08:04 UTC (rev 1396018)
@@ -0,0 +1,5 @@
+#! /usr/bin/env sh
+
+OUT=$(mktemp -d)
+/opt/rocm/bin/hipcc -o "$OUT"/test test.cpp -lhipfft -lrocfft
+"$OUT"/test