| 21 | #if !defined(FLOOR_NO_CUDA) |
| 22 | |
| 23 | cuda_queue::cuda_queue(const compute_device& device_, const cu_stream queue_) : compute_queue(device_, QUEUE_TYPE::ALL), queue(queue_) { |
| 24 | CU_CALL_NO_ACTION(cu_event_create(&prof_start, CU_EVENT_FLAGS::BLOCKING_SYNC), "failed to create profiling event") |
| 25 | CU_CALL_NO_ACTION(cu_event_create(&prof_stop, CU_EVENT_FLAGS::BLOCKING_SYNC), "failed to create profiling event") |
| 26 | } |
| 27 | |
| 28 | cuda_queue::~cuda_queue() { |
| 29 | if(prof_start != nullptr) { |
nothing calls this directly
no outgoing calls
no test coverage detected