From d4275741ba9c0ea5d72294de061f99ab884bf0d4 Mon Sep 17 00:00:00 2001 From: "Brzak, Branislav" Date: Tue, 8 Apr 2025 18:54:05 +0200 Subject: [PATCH] SWDEV-525653 - Make hipGetDeviceProperties and hipChooseDevice use the new API (#159) [ROCm/clr commit: b006380ff606e33ad4400fdeb2313b1d3887d5f4] --- projects/clr/hipamd/src/hip_device.cpp | 4 ++-- projects/clr/hipamd/src/hip_device_runtime.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/clr/hipamd/src/hip_device.cpp b/projects/clr/hipamd/src/hip_device.cpp index fe9a35dcee..650d2d86fd 100644 --- a/projects/clr/hipamd/src/hip_device.cpp +++ b/projects/clr/hipamd/src/hip_device.cpp @@ -800,6 +800,6 @@ hipError_t hipGetProcAddress(const char* symbol, void** pfn, int hipVersion, uin } // namespace hip -extern "C" hipError_t hipGetDeviceProperties(hipDeviceProp_tR0000* props, hipDevice_t device) { - return hip::hipGetDevicePropertiesR0000(props, device); +extern "C" hipError_t hipGetDeviceProperties(hipDeviceProp_tR0600* props, hipDevice_t device) { + return hip::hipGetDevicePropertiesR0600(props, device); } diff --git a/projects/clr/hipamd/src/hip_device_runtime.cpp b/projects/clr/hipamd/src/hip_device_runtime.cpp index 9310a39fd4..a735dd059e 100644 --- a/projects/clr/hipamd/src/hip_device_runtime.cpp +++ b/projects/clr/hipamd/src/hip_device_runtime.cpp @@ -759,6 +759,6 @@ hipError_t hipSetValidDevices(int* device_arr, int len) { } } //namespace hip -extern "C" hipError_t hipChooseDevice(int* device, const hipDeviceProp_tR0000* properties) { - return hip::hipChooseDeviceR0000(device, properties); +extern "C" hipError_t hipChooseDevice(int* device, const hipDeviceProp_tR0600* properties) { + return hip::hipChooseDeviceR0600(device, properties); }