| 11 | using namespace xsched::cuda; |
| 12 | |
| 13 | CudaCommand::CudaCommand(preempt::XCommandProperties props) |
| 14 | : HwCommand(GetCudaLv3Implementation() == kCudaLv3ImplementationTsg |
| 15 | ? props | preempt::kCommandPropertyDeactivatable : props) |
| 16 | { |
| 17 | CUDA_ASSERT(Driver::CtxGetCurrent(&ctx_)); |
| 18 | XASSERT(ctx_ != nullptr, "current context of the calling thread is nullptr"); |
| 19 | } |
| 20 | |
| 21 | CudaCommand::~CudaCommand() |
| 22 | { |
nothing calls this directly
no outgoing calls
no test coverage detected