Bugfix/boost pgi (#4426)

* Added magma package

* Incorporated Serban's change

* boost-pgi: Add support for PGI compiler

There are two patches required:
  (1) general fixes required by PGI
  (2) workaround for a bug in PGI 17.4

Conflicts:
	var/spack/repos/builtin/packages/boost/package.py
This commit is contained in:
serbanmaerean
2017-06-02 12:44:33 -04:00
committed by Adam J. Stewart
parent 23474be4b0
commit 626aa3a8d0
3 changed files with 546 additions and 1 deletions

View File

@@ -150,6 +150,10 @@ class Boost(Package):
patch('call_once_variadic.patch', when='@:1.56.0%gcc@5:')
# Patch fix for PGI compiler
patch('boost_1.63.0_pgi.patch', when='@1.63.0%pgi')
patch('boost_1.63.0_pgi_17.4_workaround.patch', when='@1.63.0%pgi@17.4')
def url_for_version(self, version):
url = "http://downloads.sourceforge.net/project/boost/boost/{0}/boost_{1}.tar.bz2"
return url.format(version.dotted, version.underscored)
@@ -162,7 +166,8 @@ def determine_toolset(self, spec):
'icpc': 'intel',
'clang++': 'clang',
'xlc++': 'xlcpp',
'xlc++_r': 'xlcpp'}
'xlc++_r': 'xlcpp',
'pgc++': 'pgi'}
if spec.satisfies('@1.47:'):
toolsets['icpc'] += '-linux'