Skip to content

Commit 4a3ec54

Browse files
committed
Fallback to per-element converts for CUDA
1 parent cae57ff commit 4a3ec54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/include/sycl/types.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ template <typename Type, int NumElements> class vec {
678678

679679
// Whole vector conversion can only be done, if:
680680
constexpr bool canUseNativeVectorConvert =
681+
#ifdef __NVPTX__
682+
// - we are on CUDA, see intel/llvm#11840
683+
false &&
684+
#endif // __NVPTX__
681685
// - both vectors are represented using native vector types;
682686
NativeVec && vec<convertT, NumElements>::NativeVec &&
683687
// - it is not a signed to unsigned (or vice versa) conversion

0 commit comments

Comments
 (0)