From df06b2b6928c8d9452ee55d3f4b45ba5a4889963 Mon Sep 17 00:00:00 2001 From: "Arandjelovic, Marko" Date: Thu, 29 May 2025 09:32:45 +0200 Subject: [PATCH] =?UTF-8?q?SWDEV-531009=20-=20Revert=20SWDEV-525653=20-=20?= =?UTF-8?q?Make=20hipGetDeviceProperties=20and=20hipChooseDevice=20use=20t?= =?UTF-8?q?h=E2=80=A6=20(#381)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit b006380ff606e33ad4400fdeb2313b1d3887d5f4. --- hipamd/src/hip_device.cpp | 4 ++-- hipamd/src/hip_device_runtime.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hipamd/src/hip_device.cpp b/hipamd/src/hip_device.cpp index 5ceab58676..1fff0b2175 100644 --- a/hipamd/src/hip_device.cpp +++ b/hipamd/src/hip_device.cpp @@ -803,6 +803,6 @@ hipError_t hipGetProcAddress(const char* symbol, void** pfn, int hipVersion, uin } // namespace hip -extern "C" hipError_t hipGetDeviceProperties(hipDeviceProp_tR0600* props, hipDevice_t device) { - return hip::hipGetDevicePropertiesR0600(props, device); +extern "C" hipError_t hipGetDeviceProperties(hipDeviceProp_tR0000* props, hipDevice_t device) { + return hip::hipGetDevicePropertiesR0000(props, device); } diff --git a/hipamd/src/hip_device_runtime.cpp b/hipamd/src/hip_device_runtime.cpp index b53824a423..d878b2ba99 100644 --- a/hipamd/src/hip_device_runtime.cpp +++ b/hipamd/src/hip_device_runtime.cpp @@ -785,6 +785,6 @@ hipError_t hipSetValidDevices(int* device_arr, int len) { } } //namespace hip -extern "C" hipError_t hipChooseDevice(int* device, const hipDeviceProp_tR0600* properties) { - return hip::hipChooseDeviceR0600(device, properties); +extern "C" hipError_t hipChooseDevice(int* device, const hipDeviceProp_tR0000* properties) { + return hip::hipChooseDeviceR0000(device, properties); }