This code is all a direct copy from c10/cuda/HIPGuardMasqueradingAsCUDA.h, but with the correct InlineDeviceGuard burned in. More...
#include <HIPGuardImplMasqueradingAsCUDA.h>
Public Member Functions | |
HIPGuardMasqueradingAsCUDA (DeviceIndex device_index) | |
HIPGuardMasqueradingAsCUDA (Device device) | |
HIPGuardMasqueradingAsCUDA (const HIPGuardMasqueradingAsCUDA &)=delete | |
HIPGuardMasqueradingAsCUDA & | operator= (const HIPGuardMasqueradingAsCUDA &)=delete |
HIPGuardMasqueradingAsCUDA (HIPGuardMasqueradingAsCUDA &&other)=delete | |
HIPGuardMasqueradingAsCUDA & | operator= (HIPGuardMasqueradingAsCUDA &&other)=delete |
void | set_device (Device device) |
void | reset_device (Device device) |
void | set_index (DeviceIndex device_index) |
Device | original_device () const |
Device | current_device () const |
This code is all a direct copy from c10/cuda/HIPGuardMasqueradingAsCUDA.h, but with the correct InlineDeviceGuard burned in.
Sorry about the copy-pasting.
Definition at line 106 of file HIPGuardImplMasqueradingAsCUDA.h.