Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
c10::hip::HIPGuardMasqueradingAsCUDA Struct Reference

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
 
HIPGuardMasqueradingAsCUDAoperator= (const HIPGuardMasqueradingAsCUDA &)=delete
 
 HIPGuardMasqueradingAsCUDA (HIPGuardMasqueradingAsCUDA &&other)=delete
 
HIPGuardMasqueradingAsCUDAoperator= (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
 

Detailed Description

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.


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