SWDEV-518962 - Match hipCtxGetApiVersion signature with Cuda (#327)

This commit is contained in:
Brzak, Branislav
2025-05-26 16:58:22 +02:00
committed by GitHub
parent 7f6020d599
commit ee2d4a0358
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ hipError_t hipCtxCreate(hipCtx_t* ctx, unsigned int flags, hipDevice_t device);
hipError_t hipCtxDestroy(hipCtx_t ctx);
hipError_t hipCtxDisablePeerAccess(hipCtx_t peerCtx);
hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags);
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int* apiVersion);
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, unsigned int* apiVersion);
hipError_t hipCtxGetCacheConfig(hipFuncCache_t* cacheConfig);
hipError_t hipCtxGetCurrent(hipCtx_t* ctx);
hipError_t hipCtxGetDevice(hipDevice_t* device);
+1 -1
View File
@@ -317,7 +317,7 @@ hipError_t hipCtxGetDevice(hipDevice_t* device) {
HIP_RETURN(hipErrorInvalidContext);
}
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int* apiVersion) {
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, unsigned int* apiVersion) {
HIP_INIT_API(hipCtxGetApiVersion, apiVersion);
HIP_RETURN(hipErrorNotSupported);
}
+1 -1
View File
@@ -144,7 +144,7 @@ hipError_t hipCtxDisablePeerAccess(hipCtx_t peerCtx) {
hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags) {
return hip::GetHipDispatchTable()->hipCtxEnablePeerAccess_fn(peerCtx, flags);
}
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int* apiVersion) {
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, unsigned int* apiVersion) {
return hip::GetHipDispatchTable()->hipCtxGetApiVersion_fn(ctx, apiVersion);
}
hipError_t hipCtxGetCacheConfig(hipFuncCache_t* cacheConfig) {