How to give cuda code

Hi
I want to give cuda code , my program write in c or c++ !
Anyone can help me to find Anyway to give cuda code?
A command or …
Thanks

Hi simoliok,

My apologies but I’m unclear on what you’re asking. Can you please restate your question?

Do you wish to view the device code generated by the compiler when compiling an OpenACC compute region? If so, then add the flag “-ta=tesla:keep”. However, we default to generating LLVM code. To see the CUDA equilvent use the flag “-ta=tesla:nollvm,keep”.

  • Mat

Hi Mat
Thanks
This help me
And this link openacc - Can the PGI compilers output the generated Cuda code to a file - Stack Overflow is useful too!
Thanks A lot Mat