GalSim-developers / GalSim

The modular galaxy image simulation toolkit. Documentation:
http://galsim-developers.github.io/GalSim/
Other
224 stars 105 forks source link

Support GPU offloading when building with gcc #1222

Closed jamesp-epcc closed 1 year ago

jamesp-epcc commented 1 year ago

This PR adds support for GPU offloading when building with gcc, in addition to the previous clang support. Tested on the Cirrus cluster in Edinburgh with both a version of gcc that supports offloading and one that doesn't.

I also removed the -stdlib=libc++ stuff from the GPU detection function. I realised that was pointless because neither of the GPU compilers have that flag in the first place.