According to the CUDA programming guide, the L1 cache on a Fermi GPU can be disabled (I’m using a GTX 580) by setting the nvcc compiler flag -Xptxas -dlcm=cg. There is no problem when compiling CUDA code with the flag set, however, if I am using OpenCL, can I do it in the same way? If yes, how shall I do it? I’m not sure if the flag are only available for CUDA compilation at present.
Since I am a newbie to both OpenCL and Fermi, this question might be silly to you. Anyway, any suggestion or clarification is welcome!