summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"