cuda-api-wrappers icon indicating copy to clipboard operation
cuda-api-wrappers copied to clipboard

Support capture-related API calls

Open eyalroz opened this issue 5 years ago • 0 comments

In CUDA 10 (?), API calls were introduced to capture activity on a stream:

__host__ ​cudaError_t cudaStreamBeginCapture ( cudaStream_t stream, cudaStreamCaptureMode mode );
__host__ ​cudaError_t cudaStreamEndCapture ( cudaStream_t stream, cudaGraph_t* pGraph );
__host__ ​cudaError_t cudaStreamGetCaptureInfo ( cudaStream_t stream, cudaStreamCaptureStatus ** pCaptureStatus, unsigned long long* pId );
__host__ ​cudaError_t cudaStreamIsCapturing ( cudaStream_t stream, cudaStreamCaptureStatus ** pCaptureStatus );
__host__ ​cudaError_t cudaThreadExchangeStreamCaptureMode ( cudaStreamCaptureMode ** mode );

... and we don't support any of these, i.e. the stream wrapper class doesn't have methods for these, nor do we have a RAII wrapper for a "capture session".

eyalroz avatar Aug 19 '20 22:08 eyalroz