Skip to content
Snippets Groups Projects
Commit b2b91a1f authored by Kelly (KT) Thompson's avatar Kelly (KT) Thompson Committed by Christoph Junghans
Browse files

Random123 - provide a patch to fix compiles with IBM XL (#11028)

* Newer versions of IBM XL no longer define `__xlC__`, but define `__ibmxl__`
  instead.  This one-line patch fixes this problem in Random123.
* This patch was also provided to the Random123 maintiners
  (Random123@DEShawResearch.com). I don't expect a new release from them for a
  while, so I believe that this patch is the correct path forward (for now).
parent 06e82edf
No related branches found
No related tags found
No related merge requests found
--- a/include/Random123/features/compilerfeatures.h
+++ b/include/Random123/features/compilerfeatures.h
@@ -199,7 +199,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"
...@@ -17,6 +17,8 @@ class Random123(Package): ...@@ -17,6 +17,8 @@ class Random123(Package):
version('1.09', '67ae45ff94b12acea590a6aa04ed1123') version('1.09', '67ae45ff94b12acea590a6aa04ed1123')
patch('ibmxl.patch', when='@1.09')
def install(self, spec, prefix): def install(self, spec, prefix):
# Random123 doesn't have a build system. # Random123 doesn't have a build system.
# We have to do our own install here. # We have to do our own install here.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment