[PyOpenCL] “comparison of integers of different signs” Problem

2018-12-03 Thread Devin Ceartas
Also posted at: https://stackoverflow.com/questions/53576439/pyopencl-comparison-of-integers-of-different-signs-problem I'm on a MacBook Pro with Intel graphics. I have extremely limited experience with C code. There's not a lot of code here, but the actual problem is probably in the

Re: [PyOpenCL] “comparison of integers of different signs” Problem

2018-12-03 Thread Sven Warris
Dear Devin, I think this is because you are using an int to index an array. Using the index of an array is pointer arithmetic, which means with a[i] technically you are performing a+i. And the pointer a is of type unsigned long and i of type int, which gives this warning of type conversion