public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/miopen] epel10: Change --with gitcommit to preview
Date: Sun, 14 Jun 2026 13:44:08 GMT	[thread overview]
Message-ID: <178144464888.1.15705523099054604689.rpms-miopen-58fb7be183be@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/miopen
            Branch : epel10
            Commit : 58fb7be183bee6b2245d253dcb4bfa1559aa79c2
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-04-16T17:21:13-07:00
            Stats  : +35/-35 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/miopen/c/58fb7be183bee6b2245d253dcb4bfa1559aa79c2?branch=epel10

            Log:
            Change --with gitcommit to preview

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/miopen.spec b/miopen.spec
index 2261560..9a6939c 100644
--- a/miopen.spec
+++ b/miopen.spec
@@ -19,16 +19,19 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 #
-%bcond_with gitcommit
-%if %{with gitcommit}
-%global commit0 2584e35062ad9c2edb68d93c464cf157bc57e3b0
-%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
-%global date0 20250926
-%endif
-
 %global upstreamname miopen
+
+%bcond_with preview
+%if %{with preview}
+%global rocm_release 7.12
+%global rocm_patch 0
+%global pkg_src therock-%{rocm_release}
+%else
 %global rocm_release 7.2
 %global rocm_patch 1
+%global pkg_src rocm-%{rocm_release}.%{rocm_patch}
+%endif
+
 %global rocm_version %{rocm_release}.%{rocm_patch}
 
 %bcond_with compat
@@ -110,12 +113,11 @@
 %endif
 
 Name:           %{miopen_name}
-%if %{with gitcommit}
-Version:        git%{date0}.%{shortcommit0}
-Release:        1%{?dist}
-%else
 Version:        %{rocm_version}
-Release:        1%{?dist}
+%if %{with preview}
+Release:        0%{?dist}
+%else
+Release:        2%{?dist}
 %endif
 Summary:        AMD's Machine Intelligence Library
 License:        MIT AND BSD-2-Clause AND Apache-2.0 AND %{?fedora:LicenseRef-Fedora-Public-Domain}%{?suse_version:SUSE-Public-Domain}
@@ -129,10 +131,12 @@ License:        MIT AND BSD-2-Clause AND Apache-2.0 AND %{?fedora:LicenseRef-Fed
 # Public Domain
 #   src/md5.cpp
 URL:            https://github.com/ROCm/rocm-libraries
-%if %{with gitcommit}
-Source0:        %{url}/archive/%{commit0}/rocm-libraries-%{shortcommit0}.tar.gz
-%else
-Source0:        %{url}/releases/download/rocm-%{version}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
+Source0:        %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
+%if %{with preview}
+# New source needed for testing
+# Request a real ctest project here
+# https://github.com/ROCm/rocm-libraries/issues/6500
+Source1:        %{url}/releases/download/%{pkg_src}/ctest.tar.gz#/ctest-%{version}.tar.gz
 %endif
 
 # So we do not thrash memory
@@ -240,12 +244,16 @@ Requires:       %{name}%{?_isa} = %{version}-%{release}
 %endif
 
 %prep
-%if %{with gitcommit}
-%setup -q -n rocm-libraries-%{commit0}
-cd projects/miopen
-%patch -P1 -p1
-%else
 %autosetup -p1 -n %{upstreamname}
+%if %{with preview}
+tar xf %{SOURCE1}
+sed -i -e 's@include(${ROCM_LIBRARIES_ROOT}/shared/ctest/TestCategories.cmake)@include(${CMAKE_CURRENT_SOURCE_DIR}/../../ctest/TestCategories.cmake)@' test/gtest/CMakeLists.txt
+
+# problem with trying to use ck for tests even when disabled
+# https://github.com/ROCm/rocm-libraries/issues/6518
+sed -i -e '/implicitgemm_ck_util/d' src/include/miopen/conv/heuristics/ai_conv_3d_kernel_tuning_utils.hpp
+sed -i -e '/implicitgemm_ck_util/d' test/gtest/conv_ai_3d_kernel_tuning_utils.cpp
+
 %endif
 
 # Readme has executable bit
@@ -294,11 +302,6 @@ sed -i -e 's@opts.push_back("-fno-offload-uniform-block");@//opts.push_back("-fn
 sed -i -e 's@llvm/bin/clang@bin/clang@' src/hip/hip_build_utils.cpp
 
 %build
-%if %{with gitcommit}
-cd projects/miopen
-%endif
-
-
 # Real cores, No hyperthreading
 COMPILE_JOBS=`cat /proc/cpuinfo | grep -m 1 'cpu cores' | awk '{ print $4 }'`
 if [ ${COMPILE_JOBS}x = x ]; then
@@ -367,9 +370,6 @@ export LD_LIBRARY_PATH=${PWD}/%{_vpath_builddir}/lib:$LD_LIBRARY_PATH
 %endif
 
 %install
-%if %{with gitcommit}
-cd projects/miopen
-%endif
 %cmake_install
 
 # Extra license
@@ -385,14 +385,8 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/miopen-hip/LICENSE.md
 %endif
 
 %files
-%if %{with gitcommit}
-%doc projects/miopen/README.md
-%license projects/miopen/LICENSE.md
-%else
 %doc README.md
 %license LICENSE.md
-%endif
-
 %{pkg_prefix}/%{pkg_libdir}/libMIOpen.so.1{,.*}
 %{pkg_prefix}/libexec/miopen/
 
@@ -404,10 +398,16 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/miopen-hip/LICENSE.md
 
 %if %{with test}
 %files test
+%if %{without preview}
+# TODO: Something wrong here
 %{pkg_prefix}/bin/test*
 %endif
+%endif
 
 %changelog
+* Thu Apr 16 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.1-2
+- Change --with gitcommit to preview
+
 * Tue Mar 24 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.1-1
 - Update to 7.2.1
 

                 reply	other threads:[~2026-06-14 13:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178144464888.1.15705523099054604689.rpms-miopen-58fb7be183be@fedoraproject.org \
    --to=tom.rix@amd.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox