We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1991e03 commit e814b0aCopy full SHA for e814b0a
GPU/Common/GPUCommonMath.h
@@ -138,7 +138,7 @@ GPUhdi() unsigned int GPUCommonMath::Clz(unsigned int x)
138
139
GPUhdi() unsigned int GPUCommonMath::Popcount(unsigned int x)
140
{
141
-#if (defined(__GNUC__) || defined(__clang__) || defined(__CUDACC__) || defined(__HIPCC__)) && (!defined(__OPENCL__) || defined(__OPENCLCPP__))
+#if (defined(__GNUC__) || defined(__clang__) || defined(__CUDACC__) || defined(__HIPCC__)) && (!defined(__OPENCL__) /*|| defined(__OPENCLCPP__)*/) // TODO: remove OPENCLCPP workaround when reported SPIR-V bug is fixed
142
return CHOICE(__builtin_popcount(x), __popc(x), __builtin_popcount(x)); // use builtin if available
143
#else
144
unsigned int retVal = 0;
0 commit comments