PGI cuda code as ...


I have implemented code in PGI. we know that at some point PGI convert the code in cuda to communicate with GPU.

and we also know that we also have cuda language with its own functions like cudaMalloc etc

my question is, is it possible to run PGI cuda extracted code on cuda language ?
I do not know whether I have explained my question clearly or not?
plz let know if its not clear.



Hi MaYa,

You can keep the generated CUDA C code using the “-ta=nvidia,keepgpu” flag. The caveat is that the generated code is highly optimized, very low level CUDA C. Therefore hard to read and follow.

Hope this helps,

Hi Mat

Yes that extracted cuda code is really difficult to understand.
thanks i got my ans :)