Date: Saturday, January 28, 2023 @ 18:25:58
  Author: tpkessler
Revision: 1390378

archrelease: copy trunk to community-testing-x86_64

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

----------+
 PKGBUILD |  145 ++++++++++++++++++++++++++++++-------------------------------
 test.cpp |   32 ++++++-------
 test.sh  |   10 ++--
 3 files changed, 94 insertions(+), 93 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-28 18:25:45 UTC (rev 1390377)
+++ PKGBUILD    2023-01-28 18:25:58 UTC (rev 1390378)
@@ -1,72 +0,0 @@
-# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
-# Contributor: acxz <akashpatel at yahoo dot com>
-# Contributor: JP-Ellis <[email protected]>
-
-pkgname=miopen-hip
-pkgver=5.4.1
-pkgrel=1
-pkgdesc="AMD's Machine Intelligence Library (HIP backend)"
-arch=('x86_64')
-url='https://rocmsoftwareplatform.github.io/MIOpen/doc/html/'
-license=('MIT')
-depends=('rocblas' 'rocm-clang-ocl' 'hip' 'composable-kernel' 'sqlite')
-makedepends=('rocm-cmake' 'miopengemm' 'boost' 'nlohmann-json' 'half' 'ninja')
-provides=('miopen')
-conflicts=('miopen')
-_git='https://github.com/ROCmSoftwarePlatform/MIOpen'
-_mlir='https://github.com/ROCmSoftwarePlatform/rocMLIR'
-_mlirver=5.4.0 #No changes between 5.4.0 and 5.4.1, so no upstream tag
-source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
-        
"$pkgname-rocmlir-$pkgver.tar.gz::$_mlir/archive/rocm-$_mlirver.tar.gz")
-sha256sums=('073b50e4ef4f75626d51b6ca6337e50adee3a81b64620c22a230548e2ba59504'
-            '3823f455ee392118c3281e27d45fa0e5381f3c4070eb4e06ba13bc6b34a90a60')
-_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)"
-_mlirname="$(basename "$_mlir")-$(basename "${source[1]}" .tar.gz)"
-
-prepare() {
-    # Disable tests as they require a AMD GPU at build time
-    sed -i '/add_subdirectory(test)/d' "$_dirname/CMakeLists.txt"
-}
-
-build() {
-  export CC=/opt/rocm/llvm/bin/clang
-  export CXX=/opt/rocm/llvm/bin/clang++
-  # -fcf-protection is not supported by HIP, see
-  # 
https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.4/page/Appendix_A.html
-  export CXXFLAGS="${CXXFLAGS} -fcf-protection=none"
-
-  # Set ROCm test chipset to Vega in order to pass the configuration step.
-  cmake \
-    -Wno-dev \
-    -G Ninja \
-    -B build-mlir \
-    -S "$_mlirname" \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_BUILD_TYPE=Release \
-    -DMLIR_MIOPEN_SQLITE_ENABLED=ON \
-    -DROCM_TEST_CHIPSET=gfx900 \
-    -DBUILD_FAT_LIBROCKCOMPILER=ON
-  cmake --build build-mlir --target librockCompiler
-  DESTDIR="$srcdir/deps" cmake --install build-mlir --component librockCompiler
-
-  cmake \
-    -Wno-dev \
-    -G Ninja \
-    -B build \
-    -S "$_dirname" \
-    -DMIOPEN_BACKEND=HIP \
-    -DCMAKE_BUILD_TYPE=None \
-    -DHALF_INCLUDE_DIR=/usr/include/half \
-    -DCMAKE_PREFIX_PATH="$srcdir/deps/usr/lib/cmake" \
-    -DCMAKE_INSTALL_PREFIX=/opt/rocm
-  cmake --build build
-}
-
-package() {
-  DESTDIR="$pkgdir" cmake --install build
-
-  echo '/opt/rocm/miopen/lib' > 'miopen.conf'
-  install -Dm644 "miopen.conf" "$pkgdir/etc/ld.so.conf.d/miopen.conf"
-
-  install -Dm644 "$_dirname/LICENSE.txt" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: miopen-hip/repos/community-testing-x86_64/PKGBUILD (from rev 1390377, 
miopen-hip/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-28 18:25:58 UTC (rev 1390378)
@@ -0,0 +1,73 @@
+# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
+# Contributor: acxz <akashpatel at yahoo dot com>
+# Contributor: JP-Ellis <[email protected]>
+
+pkgname=miopen-hip
+pkgver=5.4.2
+pkgrel=1
+pkgdesc="AMD's Machine Intelligence Library (HIP backend)"
+arch=('x86_64')
+url='https://rocmsoftwareplatform.github.io/MIOpen/doc/html/'
+license=('MIT')
+depends=('rocblas' 'rocm-clang-ocl' 'hip' 'composable-kernel' 'sqlite')
+makedepends=('rocm-cmake' 'miopengemm' 'boost' 'nlohmann-json' 'half' 'ninja')
+provides=('miopen')
+conflicts=('miopen')
+_git='https://github.com/ROCmSoftwarePlatform/MIOpen'
+_mlir='https://github.com/ROCmSoftwarePlatform/rocMLIR'
+_mlirver=5.4.1 #No changes between 5.4.1 and 5.4.2, so no upstream tag
+source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
+        
"$pkgname-rocmlir-$pkgver.tar.gz::$_mlir/archive/rocm-$_mlirver.tar.gz")
+sha256sums=('fe620d0b93acc036caaa067429d9cb09833c40c5dca2bc4ab327260dd3966919'
+            '2474c0b82593284a6ae8e55982e6c7b672e7812ad13f0a4544d1b796d7243966')
+options=(!lto)
+_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)"
+_mlirname="$(basename "$_mlir")-$(basename "${source[1]}" .tar.gz)"
+
+prepare() {
+    # Disable tests as they require a AMD GPU at build time
+    sed -i '/add_subdirectory(test)/d' "$_dirname/CMakeLists.txt"
+}
+
+build() {
+  export CC=/opt/rocm/llvm/bin/clang
+  export CXX=/opt/rocm/llvm/bin/clang++
+  # -fcf-protection is not supported by HIP, see
+  # 
https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.4/page/Appendix_A.html
+  export CXXFLAGS="${CXXFLAGS} -fcf-protection=none"
+
+  # Set ROCm test chipset to Vega in order to pass the configuration step.
+  cmake \
+    -Wno-dev \
+    -G Ninja \
+    -B build-mlir \
+    -S "$_mlirname" \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DMLIR_MIOPEN_SQLITE_ENABLED=ON \
+    -DROCM_TEST_CHIPSET=gfx900 \
+    -DBUILD_FAT_LIBROCKCOMPILER=ON
+  cmake --build build-mlir --target librockCompiler
+  DESTDIR="$srcdir/deps" cmake --install build-mlir --component librockCompiler
+
+  cmake \
+    -Wno-dev \
+    -G Ninja \
+    -B build \
+    -S "$_dirname" \
+    -DMIOPEN_BACKEND=HIP \
+    -DCMAKE_BUILD_TYPE=None \
+    -DHALF_INCLUDE_DIR=/usr/include/half \
+    -DCMAKE_PREFIX_PATH="$srcdir/deps/usr/lib/cmake" \
+    -DCMAKE_INSTALL_PREFIX=/opt/rocm
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+
+  echo '/opt/rocm/miopen/lib' > 'miopen.conf'
+  install -Dm644 "miopen.conf" "$pkgdir/etc/ld.so.conf.d/miopen.conf"
+
+  install -Dm644 "$_dirname/LICENSE.txt" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Deleted: test.cpp
===================================================================
--- test.cpp    2023-01-28 18:25:45 UTC (rev 1390377)
+++ test.cpp    2023-01-28 18:25:58 UTC (rev 1390378)
@@ -1,16 +0,0 @@
-#include <miopen/miopen.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-int main()
-{
-    miopenHandle_t handle;
-    miopenStatus_t s = miopenCreate(&handle);
-
-    if(s != miopenStatusSuccess){
-        printf("Cannot create handle for MIOpen!\n");
-        return EXIT_FAILURE;
-    }
-    miopenDestroy(handle);
-    printf("TESTS PASSED!\n");
-}

Copied: miopen-hip/repos/community-testing-x86_64/test.cpp (from rev 1390377, 
miopen-hip/trunk/test.cpp)
===================================================================
--- test.cpp                            (rev 0)
+++ test.cpp    2023-01-28 18:25:58 UTC (rev 1390378)
@@ -0,0 +1,16 @@
+#include <miopen/miopen.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+int main()
+{
+    miopenHandle_t handle;
+    miopenStatus_t s = miopenCreate(&handle);
+
+    if(s != miopenStatusSuccess){
+        printf("Cannot create handle for MIOpen!\n");
+        return EXIT_FAILURE;
+    }
+    miopenDestroy(handle);
+    printf("TESTS PASSED!\n");
+}

Deleted: test.sh
===================================================================
--- test.sh     2023-01-28 18:25:45 UTC (rev 1390377)
+++ test.sh     2023-01-28 18:25:58 UTC (rev 1390378)
@@ -1,5 +0,0 @@
-#! /usr/bin/env sh
-
-OUT=$(mktemp -d)
-/opt/rocm/bin/hipcc -o "$OUT"/test test.cpp -lMIOpen
-"$OUT"/test

Copied: miopen-hip/repos/community-testing-x86_64/test.sh (from rev 1390377, 
miopen-hip/trunk/test.sh)
===================================================================
--- test.sh                             (rev 0)
+++ test.sh     2023-01-28 18:25:58 UTC (rev 1390378)
@@ -0,0 +1,5 @@
+#! /usr/bin/env sh
+
+OUT=$(mktemp -d)
+/opt/rocm/bin/hipcc -o "$OUT"/test test.cpp -lMIOpen
+"$OUT"/test

Reply via email to