summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorKelly (KT) Thompson <KineticTheory@users.noreply.github.com>2020-10-05 19:21:17 -0600
committerGitHub <noreply@github.com>2020-10-05 20:21:17 -0500
commite36bb89b330fecf8356568f00d46b4ba560737cb (patch)
tree499df73a0c2914475357a64bffcc9b7b6eefbc74 /var
parent9bd83636e4d51c3ae1c27171cf223fd00a22535c (diff)
downloadspack-e36bb89b330fecf8356568f00d46b4ba560737cb.tar.gz
spack-e36bb89b330fecf8356568f00d46b4ba560737cb.tar.bz2
spack-e36bb89b330fecf8356568f00d46b4ba560737cb.tar.xz
spack-e36bb89b330fecf8356568f00d46b4ba560737cb.zip
Extend patch for XL to also support XL+cuda. (#19116)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/random123/ibmxl.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/random123/ibmxl.patch b/var/spack/repos/builtin/packages/random123/ibmxl.patch
index b074e06e27..a3183486c6 100644
--- a/var/spack/repos/builtin/packages/random123/ibmxl.patch
+++ b/var/spack/repos/builtin/packages/random123/ibmxl.patch
@@ -9,3 +9,16 @@
#include "xlcfeatures.h"
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#include "sunprofeatures.h"
+--- a/include/Random123/features/nvccfeatures.h
++++ b/include/Random123/features/nvccfeatures.h
+@@ -116,7 +116,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ #define R123_ULONG_LONG unsigned long long
+ #endif
+
+-#if defined(__GNUC__)
++#if defined(__xlC__) || defined(__ibmxl__)
++#include "xlcfeatures.h"
++#elif defined(__GNUC__)
+ #include "gccfeatures.h"
+ #elif defined(_MSC_FULL_VER)
+ #include "msvcfeatures.h"