diff --git a/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt --- a/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt +++ b/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt @@ -101,6 +101,7 @@ -xc++ -c -std=c++14 + -ffreestanding -target amdgcn -emit-llvm -Xclang -aux-triple -Xclang x86_64-unknown-linux-gnu # see nvptx diff --git a/openmp/libomptarget/deviceRTLs/common/include/target/shuffle.h b/openmp/libomptarget/deviceRTLs/common/include/target/shuffle.h --- a/openmp/libomptarget/deviceRTLs/common/include/target/shuffle.h +++ b/openmp/libomptarget/deviceRTLs/common/include/target/shuffle.h @@ -15,7 +15,6 @@ #ifndef LIBOMPTARGET_DEVICERTL_SHUFFLE_H #define LIBOMPTARGET_DEVICERTL_SHUFFLE_H -#include #include #pragma omp declare target @@ -41,20 +40,14 @@ ///} /// Fallback implementations of the shuffle sync idiom. +/// Unavailable at present (would error at link time if used). /// ///{ -inline int32_t __kmpc_impl_shfl_sync(uint64_t Mask, int32_t Var, - int32_t SrcLane) { - assert(false && - "Fallback version of __kmpc_impl_shfl_sync is not available!"); -} +int32_t __kmpc_impl_shfl_sync(uint64_t Mask, int32_t Var, int32_t SrcLane); -inline int32_t __kmpc_impl_shfl_down_sync(uint64_t Mask, int32_t Var, - uint32_t Delta, int32_t Width) { - assert(false && - "Fallback version of __kmpc_impl_shfl_down_sync is not available!"); -} +int32_t __kmpc_impl_shfl_down_sync(uint64_t Mask, int32_t Var, uint32_t Delta, + int32_t Width); ///}