11namespace vecmem::cuda::details {
Class with RAII mechanism for selecting a CUDA device.
Definition select_device.hpp:26
select_device(select_device &&)=delete
Don't allow moving the class.
select_device & operator=(select_device &&)=delete
Don't allow move assigning the class.
select_device & operator=(const select_device &)=delete
Don't allow copy assigning the class.
select_device(const select_device &)=delete
Don't allow copying the class.
~select_device()
Deconstructs the object, returning to the device that was selected before constructing this object.
Definition select_device.cpp:24
int device() const
Identifier for the device being seleced.
Definition select_device.cpp:32