All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Methods | List of all members
cub::SwitchDevice Struct Reference

Detailed description

RAII helper which saves the current device and switches to the specified device on construction and switches to the saved device on destruction.

Public Methods

__host__ SwitchDevice (int new_device)
__host__ ~SwitchDevice ()

Constructor & Destructor Documentation

__host__ cub::SwitchDevice::SwitchDevice ( int  new_device)
__host__ cub::SwitchDevice::~SwitchDevice ( )

The documentation for this struct was generated from the following file: