We have a cluster that has multiple versions of gcc available, loadable through environment modules. I would like pgi to use the latest version of g++, which is available through the path, rather than the system version, but simply loading the correct module at install time doesn’t seem to work. For example:
$ which g++ /N/soft/rhel6/gcc/4.9.4/bin/g++ $ pgc++ -DUSE_ATOMIC -std=c++11 -acc -ta=multicore,nvidia:cc35 -Minfo=accel accCounter.cpp -o accCounter_w_atomic "/usr/include/c++/4.4.7/c++0x_warning.h", line 31: catastrophic error: #error
Reading back through old posts, it seems that this could be fixed with makelocalrc, but I haven’t managed to get that working yet. Is there an example of how to use it to update to the latest g++ ?