![]() |
Taskflow
3.2.0-Master-Branch
|
class to create an RAII-styled context switch More...
#include <cuda_device.hpp>
Public Member Functions | |
| cudaScopedDevice (int device) | |
| constructs a RAII-styled device switcher | |
| ~cudaScopedDevice () | |
| destructs the guard and switches back to the previous device context | |
class to create an RAII-styled context switch
Sample usage:
cudaScopedDevice is neither movable nor copyable.
|
inlineexplicit |
constructs a RAII-styled device switcher
| device | device context to scope in the guard |