sycl runtime needs umf (#48011)
This commit is contained in:
parent
cb8880b388
commit
ae28528ec7
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
from spack.build_environment import dso_suffix
|
from spack.build_environment import dso_suffix
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
from spack.util.environment import EnvironmentModifications
|
||||||
|
|
||||||
versions = [
|
versions = [
|
||||||
{
|
{
|
||||||
@ -396,6 +397,14 @@ def setup_run_environment(self, env):
|
|||||||
"""
|
"""
|
||||||
super().setup_run_environment(env)
|
super().setup_run_environment(env)
|
||||||
|
|
||||||
|
# umf is packaged with compiler and not available as a standalone
|
||||||
|
if "~envmods" not in self.spec:
|
||||||
|
env.extend(
|
||||||
|
EnvironmentModifications.from_sourcing_file(
|
||||||
|
self.prefix.umf.latest.env.join("vars.sh"), *self.env_script_args
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
env.set("CC", self._llvm_bin.icx)
|
env.set("CC", self._llvm_bin.icx)
|
||||||
env.set("CXX", self._llvm_bin.icpx)
|
env.set("CXX", self._llvm_bin.icpx)
|
||||||
env.set("F77", self._llvm_bin.ifx)
|
env.set("F77", self._llvm_bin.ifx)
|
||||||
|
Loading…
Reference in New Issue
Block a user