From d75577d6e7921a8bffc7091b5d23a5b8ea43f40f Mon Sep 17 00:00:00 2001 From: "Andrei, Kochin" Date: Wed, 23 Jul 2025 23:47:14 +0400 Subject: [PATCH] Remove deprecated wmic dependency --- amd/hipcc/src/hipBin_base.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/amd/hipcc/src/hipBin_base.h b/amd/hipcc/src/hipBin_base.h index ea37e6fd12fc8..4c0c78c1d60b9 100644 --- a/amd/hipcc/src/hipBin_base.h +++ b/amd/hipcc/src/hipBin_base.h @@ -391,8 +391,9 @@ void HipBinBase::getSystemInfo() const { cout << endl << "== Windows Display Drivers" << endl; cout << "Hostname :"; system("hostname"); - system("wmic path win32_VideoController get AdapterCompatibility," - "InstalledDisplayDrivers,Name | findstr /B /C:\"Advanced Micro Devices\""); + system("powershell -c \"Get-CIMInstance -query 'SELECT * FROM win32_VideoController' | " + "ft AdapterCompatibility,InstalledDisplayDrivers,Name\" | " + "findstr /B /C:\"Advanced Micro Devices\""); } else { assert(os == lnx); cout << endl << "== Linux Kernel" << endl;