From 706d073969c72424d6f51e4b73e4d169de9e8ee8 Mon Sep 17 00:00:00 2001 From: Michael Kuron <mkuron@icp.uni-stuttgart.de> Date: Wed, 17 Mar 2021 13:37:02 +0000 Subject: [PATCH] Fix some header inclusions --- pystencils/include/philox_rand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pystencils/include/philox_rand.h b/pystencils/include/philox_rand.h index cda6fd0cf..2cc953c4a 100644 --- a/pystencils/include/philox_rand.h +++ b/pystencils/include/philox_rand.h @@ -16,7 +16,7 @@ #include <arm_neon.h> #endif -#ifdef __powerpc__ +#if defined(__powerpc__) && defined(__GNUC__) && !defined(__clang__) && !defined(__ibmxl__) #include <ppu_intrinsics.h> #endif #ifdef __ALTIVEC__ @@ -46,7 +46,7 @@ QUALIFIERS uint32 mulhilo32(uint32 a, uint32 b, uint32* hip) { #ifndef __CUDA_ARCH__ // host code -#ifdef __powerpc__ +#if defined(__powerpc__) && (!defined(__clang__) || defined(__ibmxl__)) *hip = __mulhwu(a,b); return a*b; #else -- GitLab