Date: Saturday, January 28, 2023 @ 16:52:35
  Author: tpkessler
Revision: 1390164

archrelease: copy trunk to community-testing-x86_64

Added:
  hipsolver/repos/community-testing-x86_64/PKGBUILD
    (from rev 1390163, hipsolver/trunk/PKGBUILD)
  hipsolver/repos/community-testing-x86_64/test.cpp
    (from rev 1390163, hipsolver/trunk/test.cpp)
  hipsolver/repos/community-testing-x86_64/test.sh
    (from rev 1390163, hipsolver/trunk/test.sh)
Deleted:
  hipsolver/repos/community-testing-x86_64/PKGBUILD
  hipsolver/repos/community-testing-x86_64/test.cpp
  hipsolver/repos/community-testing-x86_64/test.sh

----------+
 PKGBUILD |   76 +++++++++++++++++-----------------
 test.cpp |  134 ++++++++++++++++++++++++++++++-------------------------------
 test.sh  |   10 ++--
 3 files changed, 110 insertions(+), 110 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-28 16:52:30 UTC (rev 1390163)
+++ PKGBUILD    2023-01-28 16:52:35 UTC (rev 1390164)
@@ -1,38 +0,0 @@
-# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
-
-pkgname=hipsolver
-pkgver=5.4.1
-pkgrel=2
-pkgdesc='rocSOLVER marshalling library.'
-arch=('x86_64')
-url='https://hipsolver.readthedocs.io/en/latest/index.html'
-license=('MIT')
-depends=('hip' 'rocsolver')
-makedepends=('rocm-cmake' 'gcc-fortran')
-_git='https://github.com/ROCmSoftwarePlatform/hipSOLVER'
-source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
-sha256sums=('087cbb6bd9eb258ae64deed67e2a73a9181d5a725f92fdd74f43ccccee8321e9')
-_dirname="$(basename "$_git")-$(basename "${source[0]}" ".tar.gz")"
-
-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" \
-  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/$pkgname.conf"
-
-  install -Dm644 "$srcdir/$_dirname/LICENSE.md" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: hipsolver/repos/community-testing-x86_64/PKGBUILD (from rev 1390163, 
hipsolver/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-28 16:52:35 UTC (rev 1390164)
@@ -0,0 +1,38 @@
+# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
+
+pkgname=hipsolver
+pkgver=5.4.2
+pkgrel=1
+pkgdesc='rocSOLVER marshalling library.'
+arch=('x86_64')
+url='https://hipsolver.readthedocs.io/en/latest/index.html'
+license=('MIT')
+depends=('hip' 'rocsolver')
+makedepends=('rocm-cmake' 'gcc-fortran')
+_git='https://github.com/ROCmSoftwarePlatform/hipSOLVER'
+source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
+sha256sums=('72ca105d6802db518256a7fd7fa0e0403e75e90c6c42790070381b9746efe38c')
+_dirname="$(basename "$_git")-$(basename "${source[0]}" ".tar.gz")"
+
+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" \
+  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/$pkgname.conf"
+
+  install -Dm644 "$srcdir/$_dirname/LICENSE.md" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Deleted: test.cpp
===================================================================
--- test.cpp    2023-01-28 16:52:30 UTC (rev 1390163)
+++ test.cpp    2023-01-28 16:52:35 UTC (rev 1390164)
@@ -1,67 +0,0 @@
-#include <hipsolver/hipsolver.h>
-#include <hip/hip_runtime.h>
-#include <vector>
-#include <random>
-#include <algorithm>
-#include <cmath>
-#include <iostream>
-
-int main()
-{
-    size_t n = 64;
-    size_t m = 41;
-    size_t size = n * m;
-
-    std::random_device rd;
-    std::mt19937 gen(rd());
-    std::uniform_real_distribution<float> dist(-1.0, 1.0);
-    auto myrand = [&](){return dist(gen);};
-
-    float *a;
-    hipMalloc((void**)&a, sizeof *a * size);
-
-    std::vector<float> ain(size);
-    std::generate(ain.begin(), ain.end(), myrand);
-
-    hipMemcpy(a, ain.data(), sizeof *a * size, hipMemcpyHostToDevice);
-
-    hipsolverHandle_t handle;
-    hipsolverCreate(&handle);
-
-    float *work;
-    int size_work;
-    hipsolverSgesvd_bufferSize(handle, 'N', 'N', n, m, &size_work);
-    hipMalloc((void**)&work, size_work);
-
-    size_t dim = std::min(n, m);
-    float *s;
-    float *rwork;
-    hipMalloc((void**)&s, sizeof *s * dim);
-    hipMalloc((void**)&rwork, sizeof *rwork * dim);
-
-    int *devInfo;
-    hipMalloc((void**)&devInfo, sizeof *devInfo);
-    hipsolverSgesvd(handle, 'N', 'N', n, m, a, n,
-        s, NULL, n, NULL, n, work, size_work, rwork, devInfo);
-
-    std::vector<float> sout(dim);
-    hipMemcpy(sout.data(), s, sizeof *s * dim, hipMemcpyDeviceToHost);
-
-    float tol = 0.001f;
-    for(size_t i = 0; i < dim; i++){
-        if(sout[i] / sout[0] < tol){
-            std::cout << "Rank of matrix is " << i + 1
-                << " but should have rank " << dim << std::endl;
-            return 1;
-        }
-    }
-
-    std::cout << "TESTS PASSED!" << std::endl;
-
-    hipFree(a);
-    hipFree(s);
-    hipFree(rwork);
-    hipFree(work);
-    hipFree(devInfo);
-    hipsolverDestroy(handle);
-}

Copied: hipsolver/repos/community-testing-x86_64/test.cpp (from rev 1390163, 
hipsolver/trunk/test.cpp)
===================================================================
--- test.cpp                            (rev 0)
+++ test.cpp    2023-01-28 16:52:35 UTC (rev 1390164)
@@ -0,0 +1,67 @@
+#include <hipsolver/hipsolver.h>
+#include <hip/hip_runtime.h>
+#include <vector>
+#include <random>
+#include <algorithm>
+#include <cmath>
+#include <iostream>
+
+int main()
+{
+    size_t n = 64;
+    size_t m = 41;
+    size_t size = n * m;
+
+    std::random_device rd;
+    std::mt19937 gen(rd());
+    std::uniform_real_distribution<float> dist(-1.0, 1.0);
+    auto myrand = [&](){return dist(gen);};
+
+    float *a;
+    hipMalloc((void**)&a, sizeof *a * size);
+
+    std::vector<float> ain(size);
+    std::generate(ain.begin(), ain.end(), myrand);
+
+    hipMemcpy(a, ain.data(), sizeof *a * size, hipMemcpyHostToDevice);
+
+    hipsolverHandle_t handle;
+    hipsolverCreate(&handle);
+
+    float *work;
+    int size_work;
+    hipsolverSgesvd_bufferSize(handle, 'N', 'N', n, m, &size_work);
+    hipMalloc((void**)&work, size_work);
+
+    size_t dim = std::min(n, m);
+    float *s;
+    float *rwork;
+    hipMalloc((void**)&s, sizeof *s * dim);
+    hipMalloc((void**)&rwork, sizeof *rwork * dim);
+
+    int *devInfo;
+    hipMalloc((void**)&devInfo, sizeof *devInfo);
+    hipsolverSgesvd(handle, 'N', 'N', n, m, a, n,
+        s, NULL, n, NULL, n, work, size_work, rwork, devInfo);
+
+    std::vector<float> sout(dim);
+    hipMemcpy(sout.data(), s, sizeof *s * dim, hipMemcpyDeviceToHost);
+
+    float tol = 0.001f;
+    for(size_t i = 0; i < dim; i++){
+        if(sout[i] / sout[0] < tol){
+            std::cout << "Rank of matrix is " << i + 1
+                << " but should have rank " << dim << std::endl;
+            return 1;
+        }
+    }
+
+    std::cout << "TESTS PASSED!" << std::endl;
+
+    hipFree(a);
+    hipFree(s);
+    hipFree(rwork);
+    hipFree(work);
+    hipFree(devInfo);
+    hipsolverDestroy(handle);
+}

Deleted: test.sh
===================================================================
--- test.sh     2023-01-28 16:52:30 UTC (rev 1390163)
+++ test.sh     2023-01-28 16:52:35 UTC (rev 1390164)
@@ -1,5 +0,0 @@
-#! /usr/bin/env sh
-
-OUT=$(mktemp -d)
-/opt/rocm/bin/hipcc -o "$OUT"/test test.cpp -lhipsolver -lrocsolver -lrocblas
-"$OUT"/test

Copied: hipsolver/repos/community-testing-x86_64/test.sh (from rev 1390163, 
hipsolver/trunk/test.sh)
===================================================================
--- test.sh                             (rev 0)
+++ test.sh     2023-01-28 16:52:35 UTC (rev 1390164)
@@ -0,0 +1,5 @@
+#! /usr/bin/env sh
+
+OUT=$(mktemp -d)
+/opt/rocm/bin/hipcc -o "$OUT"/test test.cpp -lhipsolver -lrocsolver -lrocblas
+"$OUT"/test

Reply via email to