I am trying to compile a simple .cpp file. I have installed PGI Community Edition 17.4 but it is not allowing me to compile the file. I get the message below.
pgCC-Warning-C++ compilation is not supported:
I have read around and believe that it should work?
Specifically, pgCC/pgcpp is no longer supported on Windows or Linux.
On Linux and OS X, pgc++ is a g++ compatible C++ compiler.
For now, the only C++ compiler on Windows we suggest is VC++.
We have customers who use VC++, and call OpenACC routines
that are written in C, and compiled with PGI compilers. This gives them
access to GPUs when they need them.
Thanks for the info. Can you unpack that last statement a bit…
I now have a file in Visual Studio 2015 - and I get a warning that the “pragma acc” is not recognised. I assume this is because I am using the ‘wrong’ compiler e.g. not the PGI compiler. If so how do I force Visual Studio to use PGI compiler?