| 48 | |
| 49 | public: |
| 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) |
nothing calls this directly
no test coverage detected