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

Este commit está contenido en:
Brzak, Branislav
2025-05-26 16:58:22 +02:00
cometido por GitHub
padre 7f6020d599
commit ee2d4a0358
Se han modificado 5 ficheros con 8 adiciones y 8 borrados
+1 -1
Ver fichero
@@ -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
Ver fichero
@@ -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
Ver fichero
@@ -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) {