From 929a3317e978712a69a11d381891ed7df28d3866 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Thu, 23 Mar 2017 15:58:12 -0500 Subject: [PATCH] Add env vars for Intel VTune Amplifier (#3531) * Add env vars for Intel VTune Amplifier * Flake8 fix --- .../packages/intel-parallel-studio/package.py | 14 +++++++++----- var/spack/repos/builtin/packages/intel/package.py | 6 +----- 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 @@ 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 @@ def setup_environment(self, spack_env, run_env): 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 @@ def install(self, spec, prefix): 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"