| 25 | namespace fl { |
| 26 | |
| 27 | cuda_queue::cuda_queue(const device& dev_, const cu_stream queue_) : device_queue(dev_, QUEUE_TYPE::ALL), queue(queue_) { |
| 28 | CU_CALL_NO_ACTION(cu_event_create(&prof_start, CU_EVENT_FLAGS::BLOCKING_SYNC), "failed to create profiling event") |
| 29 | CU_CALL_NO_ACTION(cu_event_create(&prof_stop, CU_EVENT_FLAGS::BLOCKING_SYNC), "failed to create profiling event") |
| 30 | } |
| 31 | |
| 32 | cuda_queue::~cuda_queue() { |
| 33 | if(prof_start != nullptr) { |
nothing calls this directly
no outgoing calls
no test coverage detected