Extend patch for XL to also support XL+cuda. (#19116)

This commit is contained in:
Kelly (KT) Thompson 2020-10-05 19:21:17 -06:00 committed by GitHub
parent 9bd83636e4
commit e36bb89b33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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