Skip to content

Commit a0d36a6

Browse files
committed
Fix platform adapter query.
1 parent f3d6211 commit a0d36a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unified-runtime/source/adapters/cuda/platform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urPlatformGetInfo(
100100
return ReturnValue(UR_PLATFORM_BACKEND_CUDA);
101101
}
102102
case UR_PLATFORM_INFO_ADAPTER: {
103-
return ReturnValue(&ur::cuda::adapter);
103+
return ReturnValue(ur::cuda::adapter.get());
104104
}
105105
default:
106106
return UR_RESULT_ERROR_INVALID_ENUMERATION;

0 commit comments

Comments
 (0)