Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rocminfo for openSUSE:Factory checked in at 2026-09-21 14:29:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rocminfo (Old) and /work/SRC/openSUSE:Factory/.rocminfo.new.383539 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rocminfo" Mon Sep 21 14:29:22 2026 rev:2 rq:1378491 version:7.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rocminfo/rocminfo.changes 2025-09-22 16:40:53.756477364 +0200 +++ /work/SRC/openSUSE:Factory/.rocminfo.new.383539/rocminfo.changes 2026-09-21 14:30:07.544905024 +0200 @@ -2 +2 @@ -Sat Sep 20 00:58:20 UTC 2025 - Tom Rix <[email protected]> +Thu Jul 16 00:00:00 UTC 2026 - Fedora Release Engineering <[email protected]> @@ -4 +4,48 @@ -- Fix python head in rocm_agent_enumerator +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +------------------------------------------------------------------- +Tue Jun 2 00:00:00 UTC 2026 - Tom Rix <[email protected]> + +- merge compat changes + +------------------------------------------------------------------- +Thu Mar 5 00:00:00 UTC 2026 - Tom Rix <[email protected]> + +- Add --with preview + +------------------------------------------------------------------- +Thu Feb 12 00:00:00 UTC 2026 - Tom Rix <[email protected]> + +- Update license + +------------------------------------------------------------------- +Mon Jan 26 00:00:00 UTC 2026 - Tom Rix <[email protected]> + +- Update to 7.2.0 + +------------------------------------------------------------------- +Sat Jan 17 00:00:00 UTC 2026 - Fedora Release Engineering <[email protected]> + +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +------------------------------------------------------------------- +Thu Jan 1 00:00:00 UTC 2026 - Tom Rix <[email protected]> + +- Fix OpenSUSE + +------------------------------------------------------------------- +Tue Dec 16 00:00:00 UTC 2025 - Tom Rix <[email protected]> + +- Add --with compat + +------------------------------------------------------------------- +Thu Oct 30 00:00:00 UTC 2025 - Tom Rix <[email protected]> + +- Update to 7.1.0 + Remove: 0002-fix-buildtype-detection.patch + +------------------------------------------------------------------- +Thu Sep 18 00:00:00 UTC 2025 - Tom Rix <[email protected]> + +- Update to 7.0.1 +- Fix python path on SUSE @@ -34,0 +82 @@ + Add: 0001-adjust-CMAKE_CXX_FLAGS.patch Old: ---- 0001-adjust-CMAKE_CXX_FLAGS.patch 0002-fix-buildtype-detection.patch rocminfo-6.4.0.tar.gz New: ---- rocminfo-7.2.0.tar.gz ----------(Old B)---------- Old:- Stub for tumbleweed Add: 0001-adjust-CMAKE_CXX_FLAGS.patch Old:- Update to 7.1.0 Remove: 0002-fix-buildtype-detection.patch ----------(Old E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rocminfo.spec ++++++ --- /var/tmp/diff_new_pack.OYn2mK/_old 2026-09-21 14:30:08.378939936 +0200 +++ /var/tmp/diff_new_pack.OYn2mK/_new 2026-09-21 14:30:08.379939978 +0200 @@ -1,6 +1,19 @@ # # spec file for package rocminfo # +# Copyright (c) 2026 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# # Copyright Fedora Project Authors. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -21,36 +34,53 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. # -# Copyright (c) 2025 SUSE LLC and contributors -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via https://bugs.opensuse.org/ -# %global upstreamname rocminfo -%global rocm_release 6.4 + +%bcond_with preview +%if %{with preview} +%global rocm_release 7.14 +%global rocm_patch 0 +%global pkg_src therock-%{rocm_release} +%else +%global rocm_release 7.2 %global rocm_patch 0 +%global pkg_src rocm-%{rocm_release}.%{rocm_patch} +%endif + %global rocm_version %{rocm_release}.%{rocm_patch} -Name: rocminfo +%bcond_with compat +%if %{with compat} +%global pkg_prefix %{_prefix}/lib64/rocm/rocm-%{rocm_release} +%global pkg_skip_rpath OFF +%global pkg_rpath %{_prefix}/lib64/rocm/rocm-%{rocm_release}/lib +%global pkg_suffix %{rocm_release} +%else +%global pkg_prefix %{_prefix} +%global pkg_skip_rpath ON +%global pkg_rpath %{nil} +%global pkg_suffix %{nil} +%endif +%global pkg_name rocminfo%{pkg_suffix} + +Name: %{pkg_name} Version: %{rocm_version} -Release: 3%{?dist} +%if %{with preview} +Release: 0%{?dist} +%else +Release: 5%{?dist} +%endif + Summary: ROCm system info utility -License: NCSA -URL: https://github.com/ROCm/rocminfo -Source0: %{url}/archive/rocm-%{version}.tar.gz#/%{upstreamname}-%{rocm_version}.tar.gz -Patch0: 0001-adjust-CMAKE_CXX_FLAGS.patch -Patch1: 0002-fix-buildtype-detection.patch +License: MIT AND NCSA +# Main license is NCSA +# This file is MIT +# rocm_agent_enumerator +URL: https://github.com/ROCm/rocm-systems +Source0: %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz ExclusiveArch: x86_64 @@ -58,16 +88,18 @@ BuildRequires: gcc-c++ BuildRequires: make BuildRequires: python3-devel -BuildRequires: rocm-runtime-devel >= %{rocm_release}.0 +BuildRequires: rocm-runtime%{pkg_suffix}-devel # rocminfo calls lsmod to check the kernel mode driver status Requires: kmod +Requires: rocm-filesystem%{pkg_suffix} +Requires: rocm-runtime%{pkg_suffix} %description ROCm system info utility %prep -%autosetup -n %{name}-rocm-%{version} -p1 +%autosetup -p1 -n %{upstreamname} %if 0%{?fedora} || 0%{?rhel} %{__python3} %{_rpmconfigdir}/redhat/pathfix.py -i %{__python3} rocm_agent_enumerator @@ -77,20 +109,28 @@ %endif %build -%cmake -DROCM_DIR=/usr +%cmake \ + -DROCM_DIR=%{pkg_prefix} \ + -DCMAKE_INSTALL_PREFIX=%{pkg_prefix} \ + -DCMAKE_INSTALL_RPATH=%{pkg_rpath} \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_SKIP_INSTALL_RPATH=%{pkg_skip_rpath} + %cmake_build %install %cmake_install #FIXME: -chmod 755 %{buildroot}%{_bindir}/* +chmod 755 %{buildroot}%{pkg_prefix}/bin/* + +# Extra licenses +rm -f %{buildroot}%{pkg_prefix}/share/doc/*/License.txt +rm -f %{buildroot}%{pkg_prefix}/share/doc/*/*/License.txt %files %doc README.md %license License.txt -%{_bindir}/rocm_agent_enumerator -%{_bindir}/rocminfo -#Duplicated files: -%exclude %{_docdir}/*/License.txt +%{pkg_prefix}/bin/rocm_agent_enumerator +%{pkg_prefix}/bin/rocminfo ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.OYn2mK/_old 2026-09-21 14:30:08.424941861 +0200 +++ /var/tmp/diff_new_pack.OYn2mK/_new 2026-09-21 14:30:08.429942071 +0200 @@ -1,6 +1,6 @@ -mtime: 1758330123 -commit: 5c7873ebfe4a377a74facf50a62d68bdf3830f78f596b0e8b7a0ac924c67435d -url: https://src.opensuse.org/ROCm/rocminfo.git -revision: 5c7873ebfe4a377a74facf50a62d68bdf3830f78f596b0e8b7a0ac924c67435d +mtime: 1789607208 +commit: d651b2e15254d06e0b75470d84d89c45d489202e20f0cd219c9160eb6428f664 +url: https://src.opensuse.org/ROCm/rocminfo +revision: d651b2e15254d06e0b75470d84d89c45d489202e20f0cd219c9160eb6428f664 projectscmsync: https://src.opensuse.org/ROCm/_ObsPrj ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-09-17 03:06:48.000000000 +0200 @@ -0,0 +1,7 @@ +sources +README.md +_buildconfig* +_buildinfo* +debian +.osc +changelog ++++++ rocminfo-6.4.0.tar.gz -> rocminfo-7.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rocminfo-rocm-6.4.0/.azuredevops/rocm-ci.yml new/rocminfo/.azuredevops/rocm-ci.yml --- old/rocminfo-rocm-6.4.0/.azuredevops/rocm-ci.yml 2025-02-18 01:48:07.000000000 +0100 +++ new/rocminfo/.azuredevops/rocm-ci.yml 2026-01-21 21:45:04.162199500 +0100 @@ -21,7 +21,7 @@ branches: include: - amd-staging - - amd-master + - amd-mainline paths: exclude: - .github @@ -33,7 +33,7 @@ branches: include: - amd-staging - - amd-master + - amd-mainline paths: exclude: - .github diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rocminfo-rocm-6.4.0/.github/palamida.yml new/rocminfo/.github/palamida.yml --- old/rocminfo-rocm-6.4.0/.github/palamida.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/rocminfo/.github/palamida.yml 2026-01-21 21:45:04.162199500 +0100 @@ -0,0 +1,5 @@ +disabled: false +scmId: gh-emu-rocm +branchesToScan: + - amd-staging + - amd-mainline diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rocminfo-rocm-6.4.0/.github/workflows/kws_caller.yml new/rocminfo/.github/workflows/kws_caller.yml --- old/rocminfo-rocm-6.4.0/.github/workflows/kws_caller.yml 2025-02-18 01:48:07.000000000 +0100 +++ new/rocminfo/.github/workflows/kws_caller.yml 2026-01-21 21:45:04.162199500 +0100 @@ -1,7 +1,7 @@ name: Rocm Validation Suite KWS on: push: - branches: [amd-staging] + branches: [amd-staging , amd-mainline] pull_request: types: [opened, synchronize, reopened] workflow_dispatch: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rocminfo-rocm-6.4.0/.github/workflows/rocm_ci_caller.yml new/rocminfo/.github/workflows/rocm_ci_caller.yml --- old/rocminfo-rocm-6.4.0/.github/workflows/rocm_ci_caller.yml 2025-02-18 01:48:07.000000000 +0100 +++ new/rocminfo/.github/workflows/rocm_ci_caller.yml 2026-01-21 21:45:04.162199500 +0100 @@ -2,8 +2,10 @@ on: # Commenting below to avoid re-runs of amd smi for trivial rebases pull_request: - branches: [release/rocm-rel-6.4] + branches: [amd-staging, amd-mainline, release/rocm-rel-*] types: [opened, reopened, synchronize] + push: + branches: [amd-mainline] workflow_dispatch: issue_comment: types: [created] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rocminfo-rocm-6.4.0/CMakeLists.txt new/rocminfo/CMakeLists.txt --- old/rocminfo-rocm-6.4.0/CMakeLists.txt 2025-02-18 01:48:07.000000000 +0100 +++ new/rocminfo/CMakeLists.txt 2026-01-21 21:45:04.162199500 +0100 @@ -38,7 +38,7 @@ set(ROCMINFO_EXE "rocminfo") set(PROJECT_NAME ${ROCMINFO_EXE}) -project (${PROJECT_NAME}) +project (${PROJECT_NAME} LANGUAGES CXX) include ( GNUInstallDirs ) if(WIN32) @@ -46,13 +46,16 @@ return() endif() +# Debug by default +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Debug") +endif() + # Generate static package, when BUILD_SHARED_LIBS is set to OFF. # Default to ON option(BUILD_SHARED_LIBS "Build using shared libraries" ON) ## Set default module path if not already set -if(NOT DEFINED CMAKE_MODULE_PATH) - set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/") -endif() +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/") ## Include common cmake modules include(utils) @@ -62,13 +65,15 @@ find_package(hsa-runtime64 1.0 REQUIRED ) -string(TOLOWER "${ROCRTST_BLD_TYPE}" tmp) -if("${tmp}" STREQUAL release) - set(BUILD_TYPE "Release") - set(ISDEBUG 0) -else() - set(BUILD_TYPE "Debug") - set(ISDEBUG 1) +if(DEFINED ROCRTST_BLD_TYPE) + string(TOLOWER "${ROCRTST_BLD_TYPE}" tmp) + if("${tmp}" STREQUAL release) + set(CMAKE_BUILD_TYPE "Release") + set(ISDEBUG 0) + else() + set(CMAKE_BUILD_TYPE "Debug") + set(ISDEBUG 1) + endif() endif() # The following default version values should be updated as appropriate for @@ -100,7 +105,7 @@ # message("") message("Build Configuration:") -message("-----------BuildType: " ${BUILD_TYPE}) +message("-----------BuildType: " ${CMAKE_BUILD_TYPE}) message("------------Compiler: " ${CMAKE_CXX_COMPILER}) message("-------------Version: " ${CMAKE_CXX_COMPILER_VERSION}) message("--------Proj Src Dir: " ${PROJECT_SOURCE_DIR}) @@ -111,10 +116,6 @@ # -# Set the build type based on user input -# -set(CMAKE_BUILD_TYPE ${BUILD_TYPE}) -# # Flag to enable / disable verbose output. # SET( CMAKE_VERBOSE_MAKEFILE on ) @@ -122,7 +123,7 @@ # Compiler pre-processor definitions. # # Define MACRO "DEBUG" if build type is "Debug" -if(${BUILD_TYPE} STREQUAL "Debug") +if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") add_definitions(-DDEBUG) endif() @@ -131,7 +132,7 @@ # # Linux Compiler options # -set(ROCMINFO_CXX_FLAGS -std=c++11) +set(CMAKE_CXX_STANDARD 11) set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -fexceptions) set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -fno-rtti) set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -fno-math-errno) @@ -211,7 +212,7 @@ #Debian package specific variables set(CPACK_DEBIAN_PACKAGE_DEPENDS "hsa-rocr, pciutils, python3, libc6, libgcc-s1 | libgcc1, libstdc++6") -set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${CPACK_DEBIAN_PACKAGE_HOMEPAGE} CACHE STRING "https://github.com/RadeonOpenCompute/ROCm") +set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${CPACK_DEBIAN_PACKAGE_HOMEPAGE} CACHE STRING "https://github.com/ROCm/rocm-systems") if (DEFINED ENV{CPACK_DEBIAN_PACKAGE_RELEASE}) set(CPACK_DEBIAN_PACKAGE_RELEASE $ENV{CPACK_DEBIAN_PACKAGE_RELEASE}) else() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rocminfo-rocm-6.4.0/rocm_agent_enumerator new/rocminfo/rocm_agent_enumerator --- old/rocminfo-rocm-6.4.0/rocm_agent_enumerator 2025-02-18 01:48:07.000000000 +0100 +++ new/rocminfo/rocm_agent_enumerator 2026-01-21 21:45:04.162199500 +0100 @@ -1,5 +1,12 @@ #!/usr/bin/env python3 +################################################################################ +# Copyright © 2025 Advanced Micro Devices, Inc., or its affiliates. +# +# SPDX-License-Identifier: MIT +################################################################################ + + import os import re import subprocess @@ -49,6 +56,10 @@ "gfx90a" : [0x7408, 0x740c, 0x740f, 0x7410], # Renoir "gfx90c" : [0x15e7, 0x1636, 0x1638, 0x164c], + + # Instinct MI300 series + "gfx942" : [0x74a1, 0x74a2, 0x74a5, 0x74a9, 0x74b5, 0x74b6, 0x74bd], + # Navi10 "gfx1010" : [0x7310, 0x7312, 0x7318, 0x7319, 0x731a, 0x731b, 0x731e, 0x731f], # Navi12 @@ -71,7 +82,14 @@ # Beige_Goby "gfx1034" : [0x7420, 0x7421, 0x7422, 0x7423, 0x743f], # Yellow_Carp - "gfx1035" : [0x164d, 0x1681] + "gfx1035" : [0x164d, 0x1681], + + # Navi31 + "gfx1100": [0x7448, 0x7449, 0x744a, 0x744c, 0x745e], + # Navi32 + "gfx1101": [0x7470, 0x747e], + # Navi33 + "gfx1102": [0x7480, 0x7483, 0x7489, 0x7499], } def staticVars(**kwargs): @@ -106,7 +124,7 @@ # locate target.lst using environment variable or # it should be placed at the same directory with this script target_lst_path = os.environ.get("ROCM_TARGET_LST"); - if target_lst_path == None: + if target_lst_path is None: target_lst_path = os.path.join(CWD, "target.lst") if os.path.isfile(target_lst_path): target_lst_file = open(target_lst_path, 'r') @@ -131,7 +149,7 @@ t1 = time.time() # quit after retrying rocminfo for a minute. if t1 - t0 > 60.0: - print("Timeout querying rocminfo. Are you compiling with more than 254 threads?") + print("Timeout querying rocminfo. Are you compiling with more than 254 threads?", file=sys.stderr) break # run rocminfo rocminfo_output = subprocess.Popen(rocminfo_executable, stdout=subprocess.PIPE).communicate()[0].decode("utf-8").split('\n') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rocminfo-rocm-6.4.0/rocminfo.cc new/rocminfo/rocminfo.cc --- old/rocminfo-rocm-6.4.0/rocminfo.cc 2025-02-18 01:48:07.000000000 +0100 +++ new/rocminfo/rocminfo.cc 2026-01-21 21:45:04.162199500 +0100 @@ -69,6 +69,8 @@ #define COL_YEL "\x1B[33m" #define COL_RESET "\033[0m" +#define UNUSED(x) (void)(x) + #define RET_IF_HSA_ERR(err) { \ if ((err) != HSA_STATUS_SUCCESS) { \ char err_val[12]; \ @@ -192,6 +194,7 @@ static const uint32_t kIndentSize = 2; static bool wsl_env = false; +static bool dtif_env = false; enum rocmi_int_format { ROCMI_INT_FORMAT_DEC = 1, @@ -238,6 +241,17 @@ } } +static void DetectDTIFEnvironment() { + char *var = getenv("HSA_ENABLE_DTIF"); + if (var == NULL) + return; + + if (0 == strncmp(var, "1", 1)) { + printf("HSA-DTIF environment detected.\n"); + dtif_env = true; + } +} + static void printLabelInt(char const *l, int d, uint32_t indent_lvl = 0) { std::string ind(kIndentSize * indent_lvl, ' '); @@ -265,6 +279,7 @@ } } static void printValueStr(char const *s, bool newline = true) { + UNUSED(newline); printf("%-*s\n", kValueFieldSize, s); } @@ -590,8 +605,7 @@ static void DisplayAgentInfo(agent_info_t *agent_i) { printLabelStr("Name:", agent_i->name, 1); - if (!wsl_env || HSA_DEVICE_TYPE_CPU == agent_i->device_type) - printLabelStr("Uuid:", agent_i->uuid, 1); + printLabelStr("Uuid:", agent_i->uuid, 1); printLabelStr("Marketing Name:", agent_i->device_mkt_name, 1); printLabelStr("Vendor Name:", agent_i->vendor_name, 1); @@ -668,19 +682,18 @@ } printLabelStr("Chip ID:", int_to_string(agent_i->chip_id), 1); - if (!wsl_env) + if (!(wsl_env || dtif_env)) printLabelStr("ASIC Revision:", int_to_string(agent_i->asic_revision), 1); printLabelStr("Cacheline Size:", int_to_string(agent_i->cacheline_size), 1); - if (!wsl_env || HSA_DEVICE_TYPE_GPU == agent_i->device_type) + if (!(wsl_env || dtif_env) || HSA_DEVICE_TYPE_GPU == agent_i->device_type) printLabelInt("Max Clock Freq. (MHz):", agent_i->max_clock_freq, 1); - if (!wsl_env) - printLabelInt("BDFID:", agent_i->bdf_id, 1); + printLabelInt("BDFID:", agent_i->bdf_id, 1); printLabelInt("Internal Node ID:", agent_i->internal_node_id, 1); printLabelInt("Compute Unit:", agent_i->compute_unit, 1); printLabelInt("SIMDs per CU:", agent_i->simds_per_cu, 1); printLabelInt("Shader Engines:", agent_i->shader_engs, 1); printLabelInt("Shader Arrs. per Eng.:", agent_i->shader_arrs_per_sh_eng, 1); - if (!wsl_env) + if (!(wsl_env || dtif_env)) printLabelInt("WatchPts on Addr. Ranges:", agent_i->max_addr_watch_pts, 1); if (agent_i->device_type == HSA_DEVICE_TYPE_GPU) @@ -873,6 +886,8 @@ hsa_status_t err; pool_info_t pool_i; + UNUSED(indent); + err = AcquirePoolInfo(pool, &pool_i); RET_IF_HSA_ERR(err); @@ -1024,6 +1039,8 @@ hsa_status_t err; isa_info_t isa_i; + UNUSED(indent); + isa_i.name_str = nullptr; err = AcquireISAInfo(isa, &isa_i); RET_IF_HSA_ERR(err); @@ -1294,15 +1311,21 @@ // acccumulate information about those objects. Corresponding to each // Acquire-type function is a Display* function which display the // accumulated data in a formatted way. -int main(int argc, char* argv[]) { +int main() { hsa_status_t err; DetectWSLEnvironment(); + DetectDTIFEnvironment(); - if (!wsl_env && CheckInitialState()) { + if (!(wsl_env || dtif_env) && CheckInitialState()) { return 1; } err = hsa_init(); + if (wsl_env && (err != HSA_STATUS_SUCCESS)) { + printf("%shsa_init Failed, possibly no supported GPU devices%s\n", + COL_RED, COL_RESET); + return 1; + } RET_IF_HSA_ERR(err) // Acquire and display system information
