MAC(Mavericks) clang error when compiling CUF code


I’ve installed PGI Workstation using the evaluation period, currently I’m following this tutorial on programming CUDA using Fortran -

I got this error when compiling:
pgfortran -fast matmul.CUF
Command-line error: invalid option: --clang

1 catastrophic error detected in this compilation.
Compilation terminated.
PGF90-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (matmul.CUF: 1)
PGF90/x86-64 OSX 14.1-0: compilation aborted

Any clues?

Thanks in Advance

Hi Kudram,

Try adding “-Mcuda=cuda5.5”.

The default is to use CUDA 5.0, but this doesn’t support the latest xcode. Hence, on Maverick with Xcode 5, you need to use CUDA 5.5 instead.

Hope this helps,

Hey mkcolg,

Thanks a lot…that did the trick!