Preprocessor hook for CUDA Fortran

I know when I use -ta=nvidia, that I can use _ACCEL as a preprocessor ifdef hook to add in Accelerator-only code in my drivers. I use this to auto-select MPI processors for specific devices.

My obvious question now: is there a similar variable defined when -Mcuda is used?

Thanks,
Matt

Hi Matt,

There is one yet, but I just put in a request (TPR#16692) and hopefully our engineers can add it to the next release.

Thanks,
Mat

Hi Matt,

FYI, we’ll begin defining the processor macro “_CUDA” for CUDA Fortran programs in the 10.6 release.

  • Mat

Thanks, Mat. This’ll be much more elegant than my current solution, I imagine.