| 53 | |
| 54 | public: |
| 55 | BenchmarkEnv(Handle* handle, Handle* handle_cpu) { |
| 56 | this->handle = handle; |
| 57 | this->handle_cpu = handle_cpu; |
| 58 | rng = handle->create_operator<GaussianRNG>(); |
| 59 | // make cpu handle used |
| 60 | handle_cpu->create_operator<Sleep>()->exec(); |
| 61 | |
| 62 | for (int i = 0; i < 3; ++i) |
| 63 | cudaEventCreate(&cuda_ev[i]); |
| 64 | megcoreGetCUDAStream(handle->megcore_computing_handle(), &cuda_stream); |
| 65 | } |
| 66 | |
| 67 | ~BenchmarkEnv() { |
| 68 | for (int i = 0; i < 3; ++i) |
nothing calls this directly
no test coverage detected