summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGregory Lee <lee218@llnl.gov>2017-04-23 06:58:47 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-23 08:58:47 -0500
commit67bf71630b55e4ba31373e4ae8ffbd7b8ae67ae4 (patch)
treefbbb21e02d2de8060ae3039e103102cc7e0d6ba9 /var
parentb2155a568277a34534a7c91eca20c0fced24d338 (diff)
downloadspack-67bf71630b55e4ba31373e4ae8ffbd7b8ae67ae4.tar.gz
spack-67bf71630b55e4ba31373e4ae8ffbd7b8ae67ae4.tar.bz2
spack-67bf71630b55e4ba31373e4ae8ffbd7b8ae67ae4.tar.xz
spack-67bf71630b55e4ba31373e4ae8ffbd7b8ae67ae4.zip
Do not require license for new Intel libraries (#3931)
* new Intel libs do not require license to install * updated Intel library package URLs * disable license_required for new Intel libraries
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/intel-daal/package.py10
-rw-r--r--var/spack/repos/builtin/packages/intel-ipp/package.py6
-rw-r--r--var/spack/repos/builtin/packages/intel/package.py29
3 files changed, 34 insertions, 11 deletions
diff --git a/var/spack/repos/builtin/packages/intel-daal/package.py b/var/spack/repos/builtin/packages/intel-daal/package.py
index 011dec158e..fb76509eae 100644
--- a/var/spack/repos/builtin/packages/intel-daal/package.py
+++ b/var/spack/repos/builtin/packages/intel-daal/package.py
@@ -37,12 +37,14 @@ class IntelDaal(IntelInstaller):
homepage = "https://software.intel.com/en-us/daal"
+ version('2017.2.174', 'f067d5d7b0f70914fba1f78da0361065',
+ url="http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/11308/l_daal_2017.2.174.tgz")
version('2017.0.098', 'b4eb234de12beff4a5cba4b81ea60673',
- url="file://%s/l_daal_2017.0.098.tgz" % os.getcwd())
- version('2016.2.181', 'aad2aa70e5599ebfe6f85b29d8719d46',
- url="file://%s/l_daal_2016.2.181.tgz" % os.getcwd())
+ url="http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/9664/l_daal_2017.0.098.tgz")
version('2016.3.210', 'ad747c0dd97dace4cad03cf2266cad28',
- url="file://%s/l_daal_2016.3.210.tgz" % os.getcwd())
+ url="http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/9099/l_daal_2016.3.210.tgz")
+ version('2016.2.181', 'aad2aa70e5599ebfe6f85b29d8719d46',
+ url="http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/8687/l_daal_2016.2.181.tgz")
provides('daal')
diff --git a/var/spack/repos/builtin/packages/intel-ipp/package.py b/var/spack/repos/builtin/packages/intel-ipp/package.py
index 3c37b2342f..ed5c235ecf 100644
--- a/var/spack/repos/builtin/packages/intel-ipp/package.py
+++ b/var/spack/repos/builtin/packages/intel-ipp/package.py
@@ -37,10 +37,12 @@ class IntelIpp(IntelInstaller):
homepage = "https://software.intel.com/en-us/intel-ipp"
+ version('2017.2.174', '8ad7753ee30c5176c4931070334144bc',
+ url="http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/11307/l_ipp_2017.2.174.tgz")
version('2017.0.098', 'e7be757ebe351d9f9beed7efdc7b7118',
- url="file://%s/l_ipp_2017.0.098.tgz" % os.getcwd())
+ url="http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/9663/l_ipp_2017.0.098.tgz")
version('9.0.3.210', '0e1520dd3de7f811a6ef6ebc7aa429a3',
- url="file://%s/l_ipp_9.0.3.210.tgz" % os.getcwd())
+ url="http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/9067/l_ipp_9.0.3.210.tgz")
provides('ipp')
diff --git a/var/spack/repos/builtin/packages/intel/package.py b/var/spack/repos/builtin/packages/intel/package.py
index 0866360d1b..eec294df88 100644
--- a/var/spack/repos/builtin/packages/intel/package.py
+++ b/var/spack/repos/builtin/packages/intel/package.py
@@ -56,7 +56,6 @@ class IntelInstaller(Package):
homepage = "https://software.intel.com/en-us"
intel_components = "ALL"
- license_required = True
license_comment = '#'
license_files = ['Licenses/license.lic']
license_vars = ['INTEL_LICENSE_FILE']
@@ -64,6 +63,17 @@ class IntelInstaller(Package):
'https://software.intel.com/en-us/articles/intel-license-manager-faq'
@property
+ def license_required(self):
+ # The Intel libraries are provided without requiring a license as of
+ # version 2017.2. Trying to specify the license will fail. See
+ # https://software.intel.com/en-us/articles/free-mkl
+ if (self.spec.satisfies("intel-mkl@2017.2:") or
+ self.spec.satisfies("intel-daal@2017.2:") or
+ self.spec.satisfies("intel-ipp@2017.2:")):
+ return False
+ return True
+
+ @property
def global_license_file(self):
"""Returns the path where a global license file should be stored."""
if not self.license_files:
@@ -84,13 +94,22 @@ PSET_MODE=install
CONTINUE_WITH_INSTALLDIR_OVERWRITE=yes
PSET_INSTALL_DIR=%s
NONRPM_DB_DIR=%s
+CONTINUE_WITH_OPTIONAL_ERROR=yes
+COMPONENTS=%s
+""" % (self.intel_prefix, self.intel_prefix, self.intel_components))
+
+ # The Intel libraries are provided without requiring a license as of
+ # version 2017.2. Trying to specify the license will fail. See
+ # https://software.intel.com/en-us/articles/free-mkl
+ if not (spec.satisfies("intel-mkl@2017.2:") or
+ spec.satisfies("intel-daal@2017.2:") or
+ spec.satisfies("intel-ipp@2017.2:")):
+ with open(silent_config_filename, 'a') as f:
+ f.write("""
ACTIVATION_LICENSE_FILE=%s
ACTIVATION_TYPE=license_file
PHONEHOME_SEND_USAGE_DATA=no
-CONTINUE_WITH_OPTIONAL_ERROR=yes
-COMPONENTS=%s
-""" % (self.intel_prefix, self.intel_prefix, self.global_license_file,
- self.intel_components))
+""" % (self.global_license_file))
install_script = Executable("./install.sh")
install_script('--silent', silent_config_filename)