diff options
author | Mario Melara <maamelara@gmail.com> | 2017-04-14 07:56:51 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-04-14 07:56:51 -0700 |
commit | 0405505e21115bb0d4c3cbf24f834418c2fb7c46 (patch) | |
tree | 7dcafcf5114fb9ad51363b386fe3cb07dfb0e5a3 /lib/spack | |
parent | 91d82c44e623737a4f23838c7e390169ba0768d1 (diff) | |
download | spack-0405505e21115bb0d4c3cbf24f834418c2fb7c46.tar.gz spack-0405505e21115bb0d4c3cbf24f834418c2fb7c46.tar.bz2 spack-0405505e21115bb0d4c3cbf24f834418c2fb7c46.tar.xz spack-0405505e21115bb0d4c3cbf24f834418c2fb7c46.zip |
Quick fix for #3153 (#3822)
Diffstat (limited to 'lib/spack')
-rw-r--r-- | lib/spack/spack/build_environment.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index a20a7b4db8..705e845440 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -225,6 +225,9 @@ def set_compiler_environment_variables(pkg, env): env.set('SPACK_COMPILER_SPEC', str(pkg.spec.compiler)) for mod in compiler.modules: + # Fixes issue https://github.com/LLNL/spack/issues/3153 + if os.environ.get("CRAY_CPU_TARGET") == "mic-knl": + load_module("cce") load_module(mod) compiler.setup_custom_environment(pkg, env) |