diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index 3e6eb0b6435..abc08b8592f 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -178,6 +178,9 @@ class Tau(Package): msg="Using ROCm, select either +rocprofiler, +roctracer or +rocprofv2", ) + # https://github.com/UO-OACISS/tau2/commit/1d2cb6b + patch("tau-rocm-disable-llvm-plugin.patch", when="@2.33.2 +rocm") + filter_compiler_wrappers("Makefile", relative_root="include") filter_compiler_wrappers("Makefile.tau*", relative_root="lib") filter_compiler_wrappers("Makefile.tau*", relative_root="lib64") diff --git a/var/spack/repos/builtin/packages/tau/tau-rocm-disable-llvm-plugin.patch b/var/spack/repos/builtin/packages/tau/tau-rocm-disable-llvm-plugin.patch new file mode 100644 index 00000000000..0f863c6a9a4 --- /dev/null +++ b/var/spack/repos/builtin/packages/tau/tau-rocm-disable-llvm-plugin.patch @@ -0,0 +1,19 @@ +diff -ruN spack-src/configure spack-src-patched/configure +--- spack-src/configure 2024-04-16 00:20:41.000000000 +0000 ++++ spack-src-patched/configure 2024-06-12 19:35:50.799407280 +0000 +@@ -3101,7 +3101,6 @@ + rocprofiler=yes + tauoptions="${tauoptions}-rocm" + pthread=yes +- build_llvm_plugin=yes + shift + ;; + +@@ -3118,7 +3117,6 @@ + rocprofiler=yes + tauoptions="${tauoptions}-rocm" + pthread=yes +- build_llvm_plugin=yes + shift + ;; +