HEaaN
Crypto Lab's great homomorphic encryption library
|
Go to the documentation of this file.
13 #include <initializer_list>
41 : type_{type}, device_id_{device_id} {}
43 constexpr
int id()
const {
return device_id_; }
48 return !(*
this == other);
52 return std::tie(device_id_, type_) <
ScopedCudaDeviceSelector & operator=(const ScopedCudaDeviceSelector &)=delete
std::set< Device > DeviceSet
Definition: Device.hpp:66
std::set< int > CudaDeviceIds
Definition: Device.hpp:69
constexpr HEAAN_API Device getDefaultDevice()
Definition: Device.hpp:62
int device_id_
Definition: Device.hpp:59
~ScopedCudaDeviceSelector()
Definition: Device.hpp:84
constexpr DeviceType type() const
Definition: Device.hpp:42
constexpr bool operator<(const Device &other) const
Definition: Device.hpp:51
constexpr bool operator==(const Device &other) const
Definition: Device.hpp:44
Definition: Device.hpp:33
constexpr Device(const DeviceType type, int device_id)
Definition: Device.hpp:40
ScopedCudaDeviceSelector(Device device)
Definition: Device.hpp:77
DeviceType type_
Definition: Device.hpp:57
Device before_
Definition: Device.hpp:97
constexpr int id() const
Definition: Device.hpp:43
bool select_
Definition: Device.hpp:96
DeviceType
Definition: Device.hpp:26
constexpr Device(const DeviceType type)
Definition: Device.hpp:36
HEAAN_API void setCurrentCudaDevice(int device_id)
Definition: Device.hpp:75
#define HEAAN_API
Definition: HEaaNExport.hpp:26
Definition: Bootstrapper.hpp:16
constexpr bool operator!=(const Device &other) const
Definition: Device.hpp:47
HEAAN_API Device getCurrentCudaDevice()