SWDEV-394488 - cudaStreamGetCaptureInfo_v2 is undefined in CUDA 12.0

hipStreamPerThrdCompilerOptn.cc test fails to build with cudaStreamGetCaptureInfo_v2
in CUDA 12.0.
fix was to change runtime API cudaStreamGetCaptureInfo_v2
to Driver cuStreamGetCaptureInfo_v2

Change-Id: I44a0110770d3246f5345092acae301c9a2f6d520


[ROCm/hipother commit: e5e95946a1]
This commit is contained in:
Ajay
2023-04-13 22:37:16 +00:00
committed by Rahul Garg
vanhempi 04dd3d66b0
commit 5b0467b9a3
@@ -3493,8 +3493,10 @@ inline static hipError_t hipStreamGetCaptureInfo_v2(
hipStream_t stream, hipStreamCaptureStatus* captureStatus_out,
unsigned long long* id_out __dparm(0), hipGraph_t* graph_out __dparm(0),
const hipGraphNode_t** dependencies_out __dparm(0), size_t* numDependencies_out __dparm(0)) {
return hipCUDAErrorTohipError(cudaStreamGetCaptureInfo_v2(
stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out));
return hipCUResultTohipError(cuStreamGetCaptureInfo_v2(
stream, reinterpret_cast<CUstreamCaptureStatus *>(captureStatus_out),
reinterpret_cast<cuuint64_t *>(id_out), graph_out,
dependencies_out, numDependencies_out));
}
#endif