Version 1.13.2 still needs the XL patch. (#17561)

This commit is contained in:
Kelly (KT) Thompson 2020-07-16 18:35:33 -06:00 committed by GitHub
parent 27aaff3dc2
commit d69c32d7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -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.

View File

@ -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"