about CUDA code

Could I see the CUDA code gernerated by PGI Accelerator compiler? and how?

You can compile with -ta=nvidia,keepgpu,keepptx

keepptx → you can see the PTX generated code.
keepgpu-> you can see the high level cuda generated code.

keepgpu-> you can see the high level cuda generated code.

It’s actually a very low level, highly optimized CUDA C. It’s more akin to assembly code on the CPU. So while you’re more then welcome to view it, you probably don’t want to.

  • Mat