Celeritas 0.6.0-rc.2.10+develop.de0a3a05
|
Save and restore CUDA limits inside the current scope. More...
#include <ScopedLimitSaver.hh>
Public Member Functions | |
ScopedLimitSaver () | |
Save attributes. | |
~ScopedLimitSaver () | |
Restore and possibly warn about changed attributes. | |
CELER_DELETE_COPY_MOVE (ScopedLimitSaver) | |
Save and restore CUDA limits inside the current scope.
This is useful for calling poorly behaved external libraries that change CUDA limits unexpectedly. We don't use this with HIP because it's only needed at present for VecGeom.
celeritas::ScopedLimitSaver::CELER_DELETE_COPY_MOVE | ( | ScopedLimitSaver | ) |
Prevent copying and moving for RAII class