Skip to content

Commit ae28528

Browse files
authored
sycl runtime needs umf (spack#48011)
1 parent cb8880b commit ae28528

File tree

1 file changed

+9
-0
lines changed
  • var/spack/repos/builtin/packages/intel-oneapi-compilers

1 file changed

+9
-0
lines changed

var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from spack.build_environment import dso_suffix
1010
from spack.package import *
11+
from spack.util.environment import EnvironmentModifications
1112

1213
versions = [
1314
{
@@ -396,6 +397,14 @@ def setup_run_environment(self, env):
396397
"""
397398
super().setup_run_environment(env)
398399

400+
# umf is packaged with compiler and not available as a standalone
401+
if "~envmods" not in self.spec:
402+
env.extend(
403+
EnvironmentModifications.from_sourcing_file(
404+
self.prefix.umf.latest.env.join("vars.sh"), *self.env_script_args
405+
)
406+
)
407+
399408
env.set("CC", self._llvm_bin.icx)
400409
env.set("CXX", self._llvm_bin.icpx)
401410
env.set("F77", self._llvm_bin.ifx)

0 commit comments

Comments
 (0)