summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly (KT) Thompson <KineticTheory@users.noreply.github.com>2020-07-16 18:35:33 -0600
committerGitHub <noreply@github.com>2020-07-16 19:35:33 -0500
commitd69c32d7efb83020f094f6b729bc38959b8ec605 (patch)
treed22dc59063553a23801586ccc31167958fa166be
parent27aaff3dc29e53d51ab1bc395ebda9b79b14ecb5 (diff)
downloadspack-d69c32d7efb83020f094f6b729bc38959b8ec605.tar.gz
spack-d69c32d7efb83020f094f6b729bc38959b8ec605.tar.bz2
spack-d69c32d7efb83020f094f6b729bc38959b8ec605.tar.xz
spack-d69c32d7efb83020f094f6b729bc38959b8ec605.zip
Version 1.13.2 still needs the XL patch. (#17561)
-rw-r--r--var/spack/repos/builtin/packages/random123/package.py1
-rw-r--r--var/spack/repos/builtin/packages/random123/v1132-xl161.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/random123/package.py b/var/spack/repos/builtin/packages/random123/package.py
index 7cc754a5bd..bc958abe38 100644
--- a/var/spack/repos/builtin/packages/random123/package.py
+++ b/var/spack/repos/builtin/packages/random123/package.py
@@ -21,6 +21,7 @@ class Random123(Package):
patch('ibmxl.patch', when='@1.09')
patch('arm-gcc.patch', when='@1.09')
+ patch('v1132-xl161.patch', when='@1.13.2')
def install(self, spec, prefix):
# Random123 doesn't have a build system.
diff --git a/var/spack/repos/builtin/packages/random123/v1132-xl161.patch b/var/spack/repos/builtin/packages/random123/v1132-xl161.patch
new file mode 100644
index 0000000000..398de3cc2a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/random123/v1132-xl161.patch
@@ -0,0 +1,13 @@
+diff --git a/include/Random123/features/compilerfeatures.h b/include/Random123/features/compilerfeatures.h
+index 2341a7a..3c5d999 100644
+--- a/include/Random123/features/compilerfeatures.h
++++ b/include/Random123/features/compilerfeatures.h
+@@ -206,7 +206,7 @@ added to each of the *features.h files, AND to examples/ut_features.cpp.
+ #include "nvccfeatures.h"
+ #elif defined(__ICC)
+ #include "iccfeatures.h"
+-#elif defined(__xlC__)
++#elif defined(__xlC__) || defined(__ibmxl__)
+ #include "xlcfeatures.h"
+ #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+ #include "sunprofeatures.h"