MCPcopy Create free account
hub / github.com/XpuOS/xsched / CudaCommand

Method CudaCommand

platforms/cuda/hal/src/common/cuda_command.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace xsched::cuda;
12
13CudaCommand::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
21CudaCommand::~CudaCommand()
22{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected