Celeritas 0.7.0-dev.242+develop.62c3034b
Loading...
Searching...
No Matches
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.
 
 ScopedLimitSaver (ScopedLimitSaver const &)=delete
 
ScopedLimitSaveroperator= (ScopedLimitSaver const &)=delete
 
 ScopedLimitSaver (ScopedLimitSaver &&)=delete
 
ScopedLimitSaveroperator= (ScopedLimitSaver &&)=delete
 

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. We don't use this with HIP because it's only needed at present for VecGeom.

Constructor & Destructor Documentation

◆ ScopedLimitSaver() [1/2]

celeritas::ScopedLimitSaver::ScopedLimitSaver ( ScopedLimitSaver const )
delete

Prevent copying and moving for RAII class

◆ ScopedLimitSaver() [2/2]

celeritas::ScopedLimitSaver::ScopedLimitSaver ( ScopedLimitSaver &&  )
delete

Prevent copying and moving for RAII class

Member Function Documentation

◆ operator=() [1/2]

ScopedLimitSaver & celeritas::ScopedLimitSaver::operator= ( ScopedLimitSaver &&  )
delete

Prevent copying and moving for RAII class

◆ operator=() [2/2]

ScopedLimitSaver & celeritas::ScopedLimitSaver::operator= ( ScopedLimitSaver const )
delete

Prevent copying and moving for RAII class


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