MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / device_id

Method device_id

dnn/src/cuda/handle.h:41–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 const megcore::CudaContext& megcore_context() const { return m_megcore_context; }
40
41 int device_id() const { return m_device_id; }
42
43 cudaStream_t stream() const { return megcore_context().stream; }
44 cudnnHandle_t cudnn_handle() { return m_cudnn_handle; }

Callers 3

make_bundleMethod · 0.45
make_bundleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected