[Tau package] patch for rocm 6.2, do not configure for rocprofiler by default, only if enabled with +rocprofiler (#50555)

* Updateing TAU recipe to add patch file for ROCM>6.2

* Create tau-rocm-disable-rocprofiler-default.patch

* Changing from version check to +rocm

* [@spackbot] updating style on behalf of jordialcaraz

---------

Co-authored-by: jordialcaraz <jordialcaraz@users.noreply.github.com>
This commit is contained in:
jordialcaraz 2025-05-20 16:31:34 +02:00 committed by GitHub
parent 760fc05da3
commit e46dae9eb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

View File

@ -209,6 +209,8 @@ class Tau(Package):
# https://github.com/UO-OACISS/tau2/commit/1d2cb6b
patch("tau-rocm-disable-llvm-plugin.patch", when="@2.33.2 +rocm")
# https://github.com/UO-OACISS/tau2/commit/523df968dd17ffad74f0d944ecbb958ba0e8c6e8
patch("tau-rocm-disable-rocprofiler-default.patch", when="@2.34 +rocm")
filter_compiler_wrappers("Makefile", relative_root="include")
filter_compiler_wrappers("Makefile.tau*", relative_root="lib")

View File

@ -0,0 +1,21 @@
spack-src/configure spack-src-patched/configurediff -ruN
--- spack-src/configure 2024-11-05 17:07:38.000000000 -0800
+++ spack-src-patched/configure 2025-05-19 08:56:22.311253328 -0700
@@ -3191,7 +3191,7 @@
#fixmakeargs="$fixmakeargs rocmdir=$rocmdir ROCM ROCPROFILER"
fixmakeargs="$fixmakeargs rocmdir=$rocmdir ROCM"
rocm=yes
- rocprofiler=yes
+ #rocprofiler=yes
tauoptions="${tauoptions}-rocm"
pthread=yes
shift
@@ -3207,7 +3207,7 @@
rocm=yes
fi
#fixmakeargs="$fixmakeargs ROCPROFILER"
- rocprofiler=yes
+ #rocprofiler=yes
tauoptions="${tauoptions}-rocm"
pthread=yes
shift