summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Cohn <robert.s.cohn@intel.com>2023-06-28 14:08:12 -0400
committerGitHub <noreply@github.com>2023-06-28 14:08:12 -0400
commitccae0ad534bde980525cc6bd6c5513932f1b078a (patch)
treea687a39f1e6108ba9fe7d211c89bf8864f87939d
parent95fffe16a8d057381c9f78d6e21ba82cdf793b2e (diff)
downloadspack-ccae0ad534bde980525cc6bd6c5513932f1b078a.tar.gz
spack-ccae0ad534bde980525cc6bd6c5513932f1b078a.tar.bz2
spack-ccae0ad534bde980525cc6bd6c5513932f1b078a.tar.xz
spack-ccae0ad534bde980525cc6bd6c5513932f1b078a.zip
[intel-tbb] support for building 2020.3 with icx (for dyninst) (#38610)
-rw-r--r--var/spack/repos/builtin/packages/intel-tbb/intel-tbb.2020.3-icx.patch21
-rw-r--r--var/spack/repos/builtin/packages/intel-tbb/package.py3
2 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/intel-tbb/intel-tbb.2020.3-icx.patch b/var/spack/repos/builtin/packages/intel-tbb/intel-tbb.2020.3-icx.patch
new file mode 100644
index 0000000000..58bc645df0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/intel-tbb/intel-tbb.2020.3-icx.patch
@@ -0,0 +1,21 @@
+diff --git a/build/linux.gcc.inc b/build/linux.gcc.inc
+index d820c15d..a20d52ba 100644
+--- a/build/linux.gcc.inc
++++ b/build/linux.gcc.inc
+@@ -54,14 +54,14 @@ endif
+ ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^([5-9]|1[0-9])"))
+ # enable -Wsuggest-override via a pre-included header in order to limit to C++11 and above
+ INCLUDE_TEST_HEADERS = -include $(tbb_root)/src/test/harness_preload.h
+- WARNING_SUPPRESS += -Wno-sized-deallocation
++ #WARNING_SUPPRESS += -Wno-sized-deallocation
+ endif
+
+ # gcc 6.0 and later have -flifetime-dse option that controls
+ # elimination of stores done outside the object lifetime
+ ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^([6-9]|1[0-9])"))
+ # keep pre-contruction stores for zero initialization
+- DSE_KEY = -flifetime-dse=1
++ #DSE_KEY = -flifetime-dse=1
+ endif
+
+ ifeq ($(cfg), release)
diff --git a/var/spack/repos/builtin/packages/intel-tbb/package.py b/var/spack/repos/builtin/packages/intel-tbb/package.py
index e6f9598c1e..b8e4d92d3d 100644
--- a/var/spack/repos/builtin/packages/intel-tbb/package.py
+++ b/var/spack/repos/builtin/packages/intel-tbb/package.py
@@ -144,6 +144,9 @@ class IntelTbb(CMakePackage, MakefilePackage):
# https://github.com/oneapi-src/oneTBB/commit/86f6dcdc17a8f5ef2382faaef860cfa5243984fe.patch?full_index=1
patch("macos-arm64.patch", when="@:2021.0")
+ # build older tbb with %oneapi
+ patch("intel-tbb.2020.3-icx.patch", when="@2020.3 %oneapi")
+
# Support for building with %nvhpc
# 1) remove flags nvhpc compilers do not recognize
patch("intel-tbb.nvhpc-remove-flags.2017.patch", when="@2017:2018.9 %nvhpc")