SWDEV-320901 - Added HIP_INIT_API_NO_RETURN

Change-Id: Ic79acc21f6a92fcb24527d4f121ae96b13192f75


[ROCm/clr commit: 3e2cc04da5]
このコミットが含まれているのは:
Sarbojit Sarkar authored and Sarbojit Sarkar committed 2022-01-31 23:29:29 -05:00
1 親 3b13118ea8
コミット 2d5abacc5e
2ファイル変更
+6 -2

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -196,7 +196,7 @@ hipError_t hipCtxGetSharedMemConfig(hipSharedMemConfig* pConfig) {
}
hipError_t hipRuntimeGetVersion(int *runtimeVersion) {
HIP_INIT_API(hipRuntimeGetVersion, runtimeVersion);
HIP_INIT_API_NO_RETURN(hipRuntimeGetVersion, runtimeVersion);
if (!runtimeVersion) {
HIP_RETURN(hipErrorInvalidValue);
@@ -264,7 +264,7 @@ hipError_t hipCtxPushCurrent(hipCtx_t ctx) {
}
hipError_t hipDriverGetVersion(int* driverVersion) {
HIP_INIT_API(hipDriverGetVersion, driverVersion);
HIP_INIT_API_NO_RETURN(hipDriverGetVersion, driverVersion);
if (!driverVersion) {
HIP_RETURN(hipErrorInvalidValue);