Template Class DevTag
Class Documentation
-
template<class IDType = int, std::enable_if_t<std::is_assignable<IDType&, int>::value, bool> = true>
class DevTag
Utility class to hold device ID and associated stream ID.
Public Functions
-
inline DevTag()
-
inline DevTag(IDType device_id)
-
inline DevTag(IDType device_id, cudaStream_t stream_id)
-
inline DevTag(const DevTag<IDType> &other)
-
inline DevTag &operator=(DevTag<IDType> &&other)
-
inline virtual ~DevTag()
-
inline auto getDeviceID() const -> IDType
-
inline auto getStreamID() const -> cudaStream_t
-
inline bool operator==(const DevTag &other)
-
inline void refresh()
api/classPennylane_1_1LightningGPU_1_1DevTag