MCPcopy Create free account
hub / github.com/RenderKit/oidn / __cudaPopCallConfiguration

Function __cudaPopCallConfiguration

devices/cuda/curtn.cpp:536–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534 }
535
536 cudaError_t CUDARTAPI __cudaPopCallConfiguration(dim3* gridDim,
537 dim3* blockDim,
538 size_t* sharedMem,
539 cudaStream_t* stream)
540 {
541 if (Runtime::callConfigs.empty())
542 return Runtime::setError(cudaErrorUnknown);
543
544 const CallConfig& config = Runtime::callConfigs.back();
545 *gridDim = config.gridDim;
546 *blockDim = config.blockDim;
547 *sharedMem = config.sharedMem;
548 *stream = config.stream;
549
550 Runtime::callConfigs.pop_back();
551 return cudaSuccess;
552 }
553
554 cudaError_t CUDARTAPI cudaGetLastError()
555 {

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected