I am trying to execute a piece of code in an intel Xeon Phi accelerator without any success. I am obtaining this error a lot of times: *** OPENCL MIC DEVICE HW EXCEPTION ***: Segmentation fault (Address not mapped to object [0x7fcafd726640]) (the mapped adrress is different every time). I am pretty sure that the cl_variables have the correct bounds, i.e., I am not writing out of bounds and the memory should not have been corrupted.
Besides, I have two Xeon Phi accelerators mounted in the same host, but the openCL driver recognizes just one of them. Is there anything I have missed?
I have to clarify that this very same code runs without troubles using the openCL driver from nVidia on nVidia GPUs.
Thanks in advance.