Making GCC 5.1.0 work with CUDA 7.5 as non-root user

70 Views Asked by At

I've done the rounds through Google unsuccessfully. My question is a bit unique - I have a big chunk of code that has a lot of C++11 dependencies, which runs just fine when I compile with GCC 5.1.0 but throws a big bunch of errors on GCC 4.8.3, the latter which works fine with CUDA. I also need to do some work with CUDA, which of course doesn't work because of the GCC 5.1.0 version. This is similar to a number of issues raised before, whose recommendations involved editing the host_config.h file to remove the offending line. However, I'm working on an institution's cluster and cannot edit the file since it was installed by the Sys admin. I can load any GCC version using the module load command but we have the C++11 dependency issues with the code if I downgrade to a lower GCC version. Any advice around this?

1

There are 1 best solutions below

0
On

Thanks to @Pavan Yalamanchili. Copying of the system installed version to a local path allowed me to edit the host_config file, thereby resolving the issue.