Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::ScopedLimitSaver Class Reference

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)
 

Detailed Description

Save and restore CUDA limits inside the current scope.

This is useful for calling poorly behaved external libraries that change CUDA limits unexpectedly.

Member Function Documentation

◆ CELER_DELETE_COPY_MOVE()

celeritas::ScopedLimitSaver::CELER_DELETE_COPY_MOVE ( ScopedLimitSaver  )

Prevent copying and moving for RAII class


The documentation for this class was generated from the following files: