
* 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).
12 lines
448 B
Diff
12 lines
448 B
Diff
--- 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"
|