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

Function megcoreGetCUDAStream

dnn/include/megcore_cuda.h:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static inline megcoreStatus_t megcoreGetCUDAStream(
39 megcoreComputingHandle_t handle, cudaStream_t* stream) {
40 megcore::CudaContext ctx;
41 auto ret = megcore::getCUDAContext(handle, &ctx);
42 *stream = ctx.stream;
43 return ret;
44}
45
46#include "megdnn/internal/visibility_epilogue.h"
47

Callers 5

BenchmarkEnvMethod · 0.85
TEST_FFunction · 0.85
BenchmarkEnvMethod · 0.85
BenchmarkerMethod · 0.85
TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by 5

BenchmarkEnvMethod · 0.68
TEST_FFunction · 0.68
BenchmarkEnvMethod · 0.68
BenchmarkerMethod · 0.68
TEST_FFunction · 0.68