Celeritas
0.5.0-56+6b053cd
|
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.
celeritas::ScopedLimitSaver::CELER_DELETE_COPY_MOVE | ( | ScopedLimitSaver | ) |
Prevent copying and moving for RAII class