Date: Sunday, February 5, 2023 @ 15:11:48
  Author: tpkessler
Revision: 1392780

archrelease: copy trunk to community-testing-x86_64

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

----------+
 PKGBUILD |   70 ++++++++++++++++++++++----------------------
 test.cpp |   96 ++++++++++++++++++++++++++++++-------------------------------
 test.sh  |   12 +++----
 3 files changed, 89 insertions(+), 89 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-05 15:11:29 UTC (rev 1392779)
+++ PKGBUILD    2023-02-05 15:11:48 UTC (rev 1392780)
@@ -1,35 +0,0 @@
-# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
-# Contributor: Markus Näther <[email protected]>
-pkgname=hipcub
-pkgver=5.4.2
-pkgrel=1
-pkgdesc='Header-only library on top of rocPRIM or CUB'
-arch=('x86_64')
-url='https://hipcub.readthedocs.io/en/latest/'
-license=('custom')
-depends=('rocprim' 'hip')
-makedepends=('rocm-cmake')
-_git='https://github.com/ROCmSoftwarePlatform/hipCUB'
-source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
-sha256sums=('2472b982a1ed5194ee92c48e7c9d2be6690727efe5f36daa2324efbc59c58f62')
-_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 \
-    -S "$_dirname" \
-    -B build \
-    -DCMAKE_BUILD_TYPE=None \
-    -DCMAKE_INSTALL_PREFIX=/opt/rocm \
-    -DCMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc
-  cmake --build build
-}
-
-package() {
-  DESTDIR="$pkgdir" cmake --install build
-  install -Dm644 "$_dirname/LICENSE.txt" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: hipcub/repos/community-testing-x86_64/PKGBUILD (from rev 1392779, 
hipcub/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-02-05 15:11:48 UTC (rev 1392780)
@@ -0,0 +1,35 @@
+# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
+# Contributor: Markus Näther <[email protected]>
+pkgname=hipcub
+pkgver=5.4.2
+pkgrel=2
+pkgdesc='Header-only library on top of rocPRIM or CUB'
+arch=('x86_64')
+url='https://hipcub.readthedocs.io/en/latest/'
+license=('custom')
+depends=('rocprim' 'hip')
+makedepends=('rocm-cmake')
+_git='https://github.com/ROCmSoftwarePlatform/hipCUB'
+source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
+sha256sums=('2472b982a1ed5194ee92c48e7c9d2be6690727efe5f36daa2324efbc59c58f62')
+_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 \
+    -S "$_dirname" \
+    -B build \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX=/opt/rocm \
+    -DCMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+  install -Dm644 "$_dirname/LICENSE.txt" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Deleted: test.cpp
===================================================================
--- test.cpp    2023-02-05 15:11:29 UTC (rev 1392779)
+++ test.cpp    2023-02-05 15:11:48 UTC (rev 1392780)
@@ -1,48 +0,0 @@
-#include <hipcub/hipcub.hpp>
-#include <vector>
-#include <iostream>
-#include <random>
-#include <algorithm>
-
-int main()
-{
-    size_t size = 1024;
-    std::vector<float> xin(size);
-
-    std::random_device rd;
-    std::mt19937 gen(rd());
-    std::uniform_real_distribution<float> dist(-1.0, 1.0);
-
-    auto myrand = [&]() -> float {return dist(gen);};
-
-    std::generate(xin.begin(), xin.end(), myrand);
-
-    float *x;
-    float *xs;
-    hipMalloc((void**)&x, sizeof *x * size);
-    hipMalloc((void**)&xs, sizeof *xs * size);
-
-    hipMemcpy(x, xin.data(), sizeof *x * size, hipMemcpyHostToDevice);
-
-    void *tmp_storage = nullptr;
-    size_t tmp_storage_bytes = 0;
-    hipcub::DeviceRadixSort::SortKeys(tmp_storage, tmp_storage_bytes, x, xs, 
size);
-    hipMalloc((void**)&tmp_storage, tmp_storage_bytes);
-    hipcub::DeviceRadixSort::SortKeys(tmp_storage, tmp_storage_bytes, x, xs, 
size);
-
-    std::vector<float> xout(size);
-    hipMemcpy(xout.data(), xs, sizeof *xs * size, hipMemcpyDeviceToHost);
-
-    for(size_t i = 1; i < size; i++){
-        if(xout[i - 1] > xout[i]){
-            std::cout << "Elements not sorted at index " << i << "\n";
-            std::cout << x[i - 1] << " " << x[i] << std::endl;
-            return 1;
-        }
-    }
-    std::cout << "TESTS PASSED!" << std::endl;
-
-    hipFree(x);
-    hipFree(xs);
-    hipFree(tmp_storage);
-}

Copied: hipcub/repos/community-testing-x86_64/test.cpp (from rev 1392779, 
hipcub/trunk/test.cpp)
===================================================================
--- test.cpp                            (rev 0)
+++ test.cpp    2023-02-05 15:11:48 UTC (rev 1392780)
@@ -0,0 +1,48 @@
+#include <hipcub/hipcub.hpp>
+#include <vector>
+#include <iostream>
+#include <random>
+#include <algorithm>
+
+int main()
+{
+    size_t size = 1024;
+    std::vector<float> xin(size);
+
+    std::random_device rd;
+    std::mt19937 gen(rd());
+    std::uniform_real_distribution<float> dist(-1.0, 1.0);
+
+    auto myrand = [&]() -> float {return dist(gen);};
+
+    std::generate(xin.begin(), xin.end(), myrand);
+
+    float *x;
+    float *xs;
+    hipMalloc((void**)&x, sizeof *x * size);
+    hipMalloc((void**)&xs, sizeof *xs * size);
+
+    hipMemcpy(x, xin.data(), sizeof *x * size, hipMemcpyHostToDevice);
+
+    void *tmp_storage = nullptr;
+    size_t tmp_storage_bytes = 0;
+    hipcub::DeviceRadixSort::SortKeys(tmp_storage, tmp_storage_bytes, x, xs, 
size);
+    hipMalloc((void**)&tmp_storage, tmp_storage_bytes);
+    hipcub::DeviceRadixSort::SortKeys(tmp_storage, tmp_storage_bytes, x, xs, 
size);
+
+    std::vector<float> xout(size);
+    hipMemcpy(xout.data(), xs, sizeof *xs * size, hipMemcpyDeviceToHost);
+
+    for(size_t i = 1; i < size; i++){
+        if(xout[i - 1] > xout[i]){
+            std::cout << "Elements not sorted at index " << i << "\n";
+            std::cout << x[i - 1] << " " << x[i] << std::endl;
+            return 1;
+        }
+    }
+    std::cout << "TESTS PASSED!" << std::endl;
+
+    hipFree(x);
+    hipFree(xs);
+    hipFree(tmp_storage);
+}

Deleted: test.sh
===================================================================
--- test.sh     2023-02-05 15:11:29 UTC (rev 1392779)
+++ test.sh     2023-02-05 15:11:48 UTC (rev 1392780)
@@ -1,6 +0,0 @@
-#! /usr/bin/env sh
-
-OUT=$(mktemp -d)
-# hipCUB uses C++14 extensions but hipcc uses C++11 by default
-/opt/rocm/bin/hipcc -std=gnu++14 -o "$OUT"/test test.cpp
-"$OUT"/test

Copied: hipcub/repos/community-testing-x86_64/test.sh (from rev 1392779, 
hipcub/trunk/test.sh)
===================================================================
--- test.sh                             (rev 0)
+++ test.sh     2023-02-05 15:11:48 UTC (rev 1392780)
@@ -0,0 +1,6 @@
+#! /usr/bin/env sh
+
+OUT=$(mktemp -d)
+# hipCUB uses C++14 extensions but hipcc uses C++11 by default
+/opt/rocm/bin/hipcc -std=gnu++14 -o "$OUT"/test test.cpp
+"$OUT"/test

Reply via email to