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

Function TEST_F

dnn/test/cuda/local.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace test {
11
12TEST_F(CUDA, LOCAL_FORWARD) {
13 auto args = local::get_args_for_cuda();
14 for (auto&& arg : args) {
15 Checker<LocalForward> checker(handle_cuda());
16 cudaStream_t stream;
17 ASSERT_EQ(
18 megcoreSuccess,
19 megcoreGetCUDAStream(
20 handle_cuda()->megcore_computing_handle(), &stream));
21 pollute_shared_mem(stream);
22 checker.set_param(arg.param).exec(
23 TensorShapeArray{arg.sshape(), arg.fshape(), arg.dshape()});
24 }
25}
26
27TEST_F(CUDA, LOCAL_BACKWARD_DATA) {
28 using namespace local;

Callers

nothing calls this directly

Calls 9

get_args_for_cudaFunction · 0.85
megcoreGetCUDAStreamFunction · 0.85
execMethod · 0.45
sshapeMethod · 0.45
fshapeMethod · 0.45
dshapeMethod · 0.45

Tested by

no test coverage detected