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

Method BenchmarkEnv

dnn/test/rocm/chanwise_convolution.cpp:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49public:
50 BenchmarkEnv(Handle* handle, Handle* handle_cpu) {
51 this->handle = handle;
52 this->handle_cpu = handle_cpu;
53 rng = handle->create_operator<GaussianRNG>();
54 // make cpu handle used
55 handle_cpu->create_operator<Sleep>()->exec();
56
57 for (int i = 0; i < 3; ++i)
58 hipEventCreate(&hip_ev[i]);
59 megcoreGetROCMStream(handle->megcore_computing_handle(), &hip_stream);
60 }
61
62 ~BenchmarkEnv() {
63 for (int i = 0; i < 3; ++i)

Callers

nothing calls this directly

Calls 3

megcoreGetROCMStreamFunction · 0.85
execMethod · 0.45

Tested by

no test coverage detected