summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-03-23 15:58:12 -0500
committerGitHub <noreply@github.com>2017-03-23 15:58:12 -0500
commit929a3317e978712a69a11d381891ed7df28d3866 (patch)
treefc60621fe1ed0aceed0688631f7e1d933135e385 /var
parent10b49fd845c4d877ab6b55d5959ef134a888aad4 (diff)
downloadspack-929a3317e978712a69a11d381891ed7df28d3866.tar.gz
spack-929a3317e978712a69a11d381891ed7df28d3866.tar.bz2
spack-929a3317e978712a69a11d381891ed7df28d3866.tar.xz
spack-929a3317e978712a69a11d381891ed7df28d3866.zip
Add env vars for Intel VTune Amplifier (#3531)
* Add env vars for Intel VTune Amplifier * Flake8 fix
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/intel-parallel-studio/package.py14
-rw-r--r--var/spack/repos/builtin/packages/intel/package.py6
2 files changed, 10 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/intel-parallel-studio/package.py b/var/spack/repos/builtin/packages/intel-parallel-studio/package.py
index 380dfa06a1..98043db400 100644
--- a/var/spack/repos/builtin/packages/intel-parallel-studio/package.py
+++ b/var/spack/repos/builtin/packages/intel-parallel-studio/package.py
@@ -31,11 +31,7 @@ from spack.pkg.builtin.intel import IntelInstaller, filter_pick, \
class IntelParallelStudio(IntelInstaller):
- """Intel Parallel Studio.
-
- Note: You will have to add the download file to a
- mirror so that Spack can find it. For instructions on how to set up a
- mirror, see http://spack.readthedocs.io/en/latest/mirrors.html"""
+ """Intel Parallel Studio."""
homepage = "https://software.intel.com/en-us/intel-parallel-studio-xe"
@@ -383,3 +379,11 @@ class IntelParallelStudio(IntelInstaller):
run_env.prepend_path('MIC_LD_LIBRARY_PATH',
join_path(self.prefix, 'ipp', 'lib', 'mic'))
run_env.set('IPPROOT', join_path(self.prefix, 'ipp'))
+
+ if self.spec.satisfies('+all') or self.spec.satisfies('+tools'):
+ run_env.prepend_path('PATH',
+ join_path(self.prefix, 'vtune_amplifier_xe',
+ 'bin64'))
+ run_env.prepend_path('VTUNE_AMPLIFIER_XE_{0}_DIR'.format(
+ major_ver),
+ join_path(self.prefix, 'vtune_amplifier_xe'))
diff --git a/var/spack/repos/builtin/packages/intel/package.py b/var/spack/repos/builtin/packages/intel/package.py
index 3618f6f263..0866360d1b 100644
--- a/var/spack/repos/builtin/packages/intel/package.py
+++ b/var/spack/repos/builtin/packages/intel/package.py
@@ -97,11 +97,7 @@ COMPONENTS=%s
class Intel(IntelInstaller):
- """Intel Compilers.
-
- Note: You will have to add the download file to a
- mirror so that Spack can find it. For instructions on how to set up a
- mirror, see http://spack.readthedocs.io/en/latest/mirrors.html"""
+ """Intel Compilers."""
homepage = "https://software.intel.com/en-us/intel-parallel-studio-xe"