FourierFlows / FourierFlows.jl

Tools for building fast, hackable, pseudospectral partial differential equation solvers on periodic domains
https://bit.ly/FourierFlows
MIT License
202 stars 29 forks source link

Always load the GPU functionality #331

Closed navidcy closed 1 year ago

navidcy commented 1 year ago

Up to now GPU functionality was only loaded if CUDA was enabled. But this was creating trouble because it was only done during first precompilation and if you happened to precompile on a machine without GPU or on a cluster on a login node that didn't see the GPU then GPU functionality was not loaded.

This was a leftover from an era when using CUDA would break on a machine without GPU. This era is long gone now.

This PR loads GPU functionality regardless!

@liasiegelman I believe this will solve some of the problems both of us have had in the past.