SWDEV-301330 - Remove the hard coded driver version on HIP CUDA platform

Change-Id: I0eb10781acc7524174c7ae6fc552c824b7c94b0a
This commit is contained in:
Satyanvesh Dittakavi
2021-09-02 09:03:04 +00:00
parent a2716fa1af
commit 6e7072b980
@@ -1785,12 +1785,7 @@ inline static hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallb
}
inline static hipError_t hipDriverGetVersion(int* driverVersion) {
cudaError_t err = cudaDriverGetVersion(driverVersion);
// Override driver version to match version reported on HCC side.
*driverVersion = 4;
return hipCUDAErrorTohipError(err);
return hipCUDAErrorTohipError(cudaDriverGetVersion(driverVersion));
}
inline static hipError_t hipRuntimeGetVersion(int* runtimeVersion) {