Celeritas 0.6.0-rc.2.10+develop.de0a3a05
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.
 
 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. We don't use this with HIP because it's only needed at present for VecGeom.

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: