summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDylan Simon <dylan@dylex.net>2021-07-26 13:39:35 -0400
committerGitHub <noreply@github.com>2021-07-26 10:39:35 -0700
commit1c350854f8cf058acb8f5e504d110323e73763b3 (patch)
tree123048d57710c53b8a1ebad909fec5a898e715c1 /lib
parent98549ddbe5ffebe363369b4a5feb672b632af921 (diff)
downloadspack-1c350854f8cf058acb8f5e504d110323e73763b3.tar.gz
spack-1c350854f8cf058acb8f5e504d110323e73763b3.tar.bz2
spack-1c350854f8cf058acb8f5e504d110323e73763b3.tar.xz
spack-1c350854f8cf058acb8f5e504d110323e73763b3.zip
intel-oneapi: fix parallel installer errors (#24911)
Intel oneAPI installs maintain a lock file in XDG_RUNTIME_DIR, which by default exists in /tmp (and is shared by all component installs). This prevented multiple oneAPI components from being installed in parallel. This commit sets XDG_RUNTIME_DIR to exist within Spack's installation Stage, so allows multiple components to be installed at the same time.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/oneapi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/oneapi.py b/lib/spack/spack/build_systems/oneapi.py
index c429092cb6..0ff77d729b 100644
--- a/lib/spack/spack/build_systems/oneapi.py
+++ b/lib/spack/spack/build_systems/oneapi.py
@@ -69,6 +69,9 @@ class IntelOneApiPackage(Package):
# Installer writes files in ~/intel set HOME so it goes to prefix
bash.add_default_env('HOME', prefix)
+ # Installer checks $XDG_RUNTIME_DIR/.bootstrapper_lock_file as well
+ bash.add_default_env('XDG_RUNTIME_DIR',
+ join_path(self.stage.path, 'runtime'))
bash(installer_path,
'-s', '-a', '-s', '--action', 'install',