can't-compare-pointers error emitted as an assert
This kernel should error out since pointer comparison is not supported in Vulkan 1.0 with variable-pointer.
kernel void foo(global int* A, global int *B) {
const bool same = (A == B);
*A = (int)(same);
}
The compiler does error out, but in an infinte loop.
Pointer equality test is not supported by SPIR-V for Vulkan, in function
(repeat)
whoops. I had an older version of the compiler. After updating clspv, I now get what looks like a failed assert, including a segfault (from the assert macro). I'll change the title of the issue. It's not a bug, but a usability thing at best.
My experience is that even with recent versions, it does occasionally happen. I've found that removing the errs() ... before the llvm_unreachable seems to suppress the infinite loop. Linking #383 as well.
This is now supported