SWDEV-496634: Revert deprecation of hipHostMalloc and hipHostFree functions (#1186)

Tá an tiomantas seo le fáil i:
itrowbri
2024-11-11 11:47:31 -06:00
tiomanta ag GitHub
tuismitheoir f7c87e455d
tiomantas 0356446654
D'athraigh 3 comhad le 5 breiseanna agus 9 scriosta
+2 -2
Féach ar an gComhad
@@ -70,8 +70,8 @@
}
#if HIP_VERSION >= 60300000
# define HIP_HOST_ALLOC_FUNC hipExtHostAlloc
# define HIP_HOST_FREE_FUNC hipFreeHost
# define HIP_HOST_ALLOC_FUNC hipHostMalloc
# define HIP_HOST_FREE_FUNC hipHostFree
#else
# define HIP_HOST_ALLOC_FUNC hipHostMalloc
# define HIP_HOST_FREE_FUNC hipHostFree
+2 -2
Féach ar an gComhad
@@ -40,8 +40,8 @@
}
#if HIP_VERSION >= 60300000
# define HIP_HOST_ALLOC_FUNC hipExtHostAlloc
# define HIP_HOST_FREE_FUNC hipFreeHost
# define HIP_HOST_ALLOC_FUNC hipHostMalloc
# define HIP_HOST_FREE_FUNC hipHostFree
#else
# define HIP_HOST_ALLOC_FUNC hipHostMalloc
# define HIP_HOST_FREE_FUNC hipHostFree
+1 -5
Féach ar an gComhad
@@ -99,11 +99,7 @@ def test_hip_api_trace_json(json_data):
"hipGetLastError",
]
)
updated_expected_functions = [
func if func != "hipHostMalloc" else "hipExtHostAlloc"
for func in expected_functions
]
assert functions == expected_functions or functions == updated_expected_functions
assert functions == expected_functions
if __name__ == "__main__":