The command which would print warnings on some
platform. Redirect both stdout and stderr to
/dev/null while running the command.
Signed-off-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Change-Id: Ibc377681a31a14a3e306ab4fcb14d8d0c853fa86
[ROCm/rocminfo commit: d1efacb47f]
Specifying root-level pipelines for triggers, to allow engineering or specific-release pipelines to be made for the components/repos with the same name.
Change-Id: I10f55ea490e61251a0c959e5e0ba2faba3d690fb
[ROCm/rocminfo commit: 29dfe7d0fc]
python3, glibc, libgcc/libgcc_s1, libstdc++/libstdc++6 added to the RPM package dependency list
python3, libc6, libgcc-s1, libstdc++6 added to the DEB package dependency list
Change-Id: I4843b1431c0d0edf1b0df1e12c82adb4ff53c8cd
[ROCm/rocminfo commit: 1f4752295e]
Package name will have suffix static-dev/devel
rocminfo static package will depend on hsa static package
Change-Id: I3e72b19403c10e74199067f2c725ed4a007ab150
[ROCm/rocminfo commit: 5e4f64e786]
This includes detecting the running environment,
skipping kfd dependency check if in wsl platform
and disabling unavailable information on wsl.
V2: Use wslinfo to detect the environment.
V3: Add back some queries for wsl, as the not_supported
value shall be returned from hsa_runtime.
Signed-off-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Suggested-by: Tianci Yin <tianci.yin@amd.com>
Change-Id: I686d551c795cb5c5532591623022856f59512205
[ROCm/rocminfo commit: 049ab55393]
Makes all re.compile function calls use raw string to prevent Syntax warning in future, if backslash escape characters are used in regular expressions
https: //github.com/ROCm/rocminfo/pull/66
Suggested-by: Author: Yiyang Wu <xgreenlandforwyy@gmail.com
Change-Id: I6c7aaf016c588bb2ae5a0f979da7d423a78d6ec3
[ROCm/rocminfo commit: e1716642ff]
-m64 only applies to x86-64, it's more reasonable to enable it only on x86_64 host.
It fixes build on some other platforms as well.
Provided by user r-value on github
https: //github.com/RadeonOpenCompute/rocminfo/pull/63
Change-Id: I9c1c40d3fa39b0a61d28041fe4998b5e1ad0cdcd
[ROCm/rocminfo commit: 17de0f9097]
In Python3, unescaped backslashes in regular expressions are deprecated, and these were generating SyntaxWarnings.
Patch submitted by (Tianao Ge <getianao@gmail.com>) on github:
https://github.com/ROCm/rocminfo/pull/55
Change-Id: Icbcf2803291add5b5f3971ac9901a8927d23f225
[ROCm/rocminfo commit: 429baf04fb]
Removing this definition as this should already be defined by compiler.
This is causing compile errors on newer versions of llvm because the
macro is being redefined.
Change-Id: I3bf03617970d4b76dabce36ed980523673afadc5
[ROCm/rocminfo commit: c8db38ede2]
Add query to check whether DMAbuf export is supported on this system
Change-Id: I28caa87b67135d67ffcc94695e4656e7b691d259
[ROCm/rocminfo commit: 2d34dc31f2]
Currently, rocminfo will fail when executed inside a docker container
due to being unable to lsmod inside docker. This has impacts on
rocprofiler use.
Fix this behavior by querying initstate of the amdgpu module from
/sys/module/amdgpu instead. If initstate is marked "live" everything if
fine - error out with either "not loaded" (initstate file does not
exist) or "not live" (initstate file does not contain "live" string).
Change-Id: I6f2e9655942fd4cf840fd3f56b7d69e893fa84d7
[ROCm/rocminfo commit: 94b4b3f0a6]
rocm_agent_enumerator may invoke rocminfo. Rocminfo opens the
GPU device which allocates limited resource. Beyond 254
concurrent processes this resource will be exhausted and rocminfo
will return an error.
This patch loops rocm_agent_enumerator when recieving a failure
message from rocminfo indicating KFD is out of memory.
Change-Id: I8637e214f5fa012642975c28578ae6bf9200eda8
[ROCm/rocminfo commit: b57c02d131]
New versions of amdkfd include the gfx architecture version number
for all GPUs surfaced in the HSA topology. This patch adds this as
the preferred way for rocm_agent_enumerator to check for supported
gfx architecture numbers.
Kernels that are missing this feature will not have the value in
the topology. rocm_agent_enumerator will fall back to checking
against the PCI IDs in this case. If PCI IDs fail, we fall back
to the heavyweight rocminfo method.
Change-Id: I5cf22e1069114675092e97ae52331b829cfafb04
[ROCm/rocminfo commit: f419b81bdf]
rocminfo is a very heavyweight mechanism for learning a lot of
information about the GPUs that are attached to the system.
It opens up the limited /dev/kfd resource to gather lots of
information about each device, while rocm_agent_enumerator really
only wants the gfx number of AMD devices attached to the system.
To avoid this heavyweight lookup in most cases, this patch switches
the order of tests. Rather than starting with rocminfo and then
falling back to a poorly-maintained PCI ID list, this patch changes
the agent enumerator to start by checking in the PCI ID list (fast
case) and then falling back to rocminfo (slow case) if the PCI ID
list is out of date.
Change-Id: If24b8bc3baeeb6adad362abbb288ef3728383bce
[ROCm/rocminfo commit: e9b7de43be]
When building packages, add in pciutils as a dependency because
rocm_agent_enumerator uses this as a mechanism for looking up
what GPUs exist on the system.
Change-Id: I10ac088c461c6d0bca435b61fbc90b685556fdf4
[ROCm/rocminfo commit: 0e1807c72d]