What happens if there is a memory access violation inside a kernel?
Example: Let's assume param is an array of size 32.
__kernel void myKernel ( __constant float *param) {
...
temp = param[37];
...
}
Originally posted by: MicahVillmow The result of the load is undefined.
A question... are you testing ptr outbounds/buffer underrun in the CPU implementation? That will be good to debug.
Thanks for reply, Micah.
What happens if I use pinned memory (CL_MEM_COPY_HOST_PTR). Do I get a memory violation in the host code?
E.g. param is an array of size 32.
__kernel void myKernel ( __global float *param) {
...
param[37] = 23;
...
}
It's a HD6970.
What would happen with the pinned memory example on a HD6970 ?