| 10 | namespace test { |
| 11 | |
| 12 | TEST_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 | |
| 27 | TEST_F(CUDA, LOCAL_BACKWARD_DATA) { |
| 28 | using namespace local; |
nothing calls this directly
no test coverage detected