ECP-WarpX / picsar

PICSAR is a library of modular physics routines for PIC codes; historically, it is also a Fortran, high performance repository intended to help scientists porting their Particle-In-Cell (PIC) codes
https://picsar.net
Other
31 stars 17 forks source link

Silence CUDA Warning: Host Constant #17

Closed ax3l closed 3 years ago

ax3l commented 3 years ago

CUDA/NVCC is sometimes a bit pedantic when using constexpr in device code. Storing those in a temporary variable silences these warnings.

Fix #16