76333 Коммитов

Автор SHA1 Сообщение Дата
SaleelK 149dc17c90 clr: Optimize doorbell ring (#1030)
*Lay foundation to batch packets efficiently for graphs
*Dynamically copy packets with max threshold set with
DEBUG_HIP_GRAPH_BATCH_SIZE, if not stagger packet copy with pow2
*Default threshold for DEBUG_HIP_GRAPH_BATCH_SIZE is 256
*If TS are not collected for a signal for reuse, create a new signal.
This can potentially increase signal footprint if the handler doesn't run
fast enough.
2025-09-18 15:02:10 -07:00
corey-derochie-amd ebcc75f118 Moved latency_profiler license into subdirs and updated NOTICES. (#1918)
[ROCm/rccl commit: ed095cad35]
2025-09-18 12:54:39 -06:00
corey-derochie-amd ed095cad35 Moved latency_profiler license into subdirs and updated NOTICES. (#1918) 2025-09-18 12:54:39 -06:00
JC 0cf70e85cf Always run post-job cleanup step if test fail (#1049)
coincides with https://github.com/ROCm/TheRock/pull/1521
2025-09-18 12:53:14 -04:00
Swati Rawat 4d74be5d55 Update install.rst (#1035) 2025-09-18 11:51:36 -04:00
Atul Kulkarni 980392b279 Updated tests based on NCCL 2.27.3-1 sync (#1892)
[ROCm/rccl commit: 9839d1c7c8]
2025-09-18 09:56:09 -05:00
Atul Kulkarni 9839d1c7c8 Updated tests based on NCCL 2.27.3-1 sync (#1892) 2025-09-18 09:56:09 -05:00
xuchen-amd d41e115916 [rocprofiler-compute][webui] bug fix (#1047) 2025-09-18 10:48:01 -04:00
Yiltan 722a8de453 [GDA] Implement fetching atomics for BNXT (#253)
* Indent driver script
* Implemented fetching atomics BNXT

[ROCm/rocshmem commit: f5aefd15f3]
2025-09-18 09:50:42 -04:00
Yiltan f5aefd15f3 [GDA] Implement fetching atomics for BNXT (#253)
* Indent driver script
* Implemented fetching atomics BNXT
2025-09-18 09:50:42 -04:00
Yiltan ff10d2b575 Improve Error Messages (#257)
[ROCm/rocshmem commit: 758c4a43f6]
2025-09-18 09:49:32 -04:00
Yiltan 758c4a43f6 Improve Error Messages (#257) 2025-09-18 09:49:32 -04:00
Venkateshwar Reddy Kandula 1a0657f347 due nccl api sync update RCCL_API_TRACE_VERSION_PATCH to 2 (#1916)
[ROCm/rccl commit: 0cc896910e]
2025-09-18 07:36:50 -06:00
Venkateshwar Reddy Kandula 0cc896910e due nccl api sync update RCCL_API_TRACE_VERSION_PATCH to 2 (#1916) 2025-09-18 07:36:50 -06:00
Ioannis Assiouras 5ac163a811 SWDEV-548770 - Added system scope acquire for all packets in gfx12 (#966) 2025-09-18 14:33:17 +01:00
lancesix 45b48fb987 SWDEV-555043 - Do not wait on signal if gpu in error state (#1023)
During a process tear-down we wait on all signals before releasing them:

    VirtualGPU::HwQueueTracker::~HwQueueTracker() {
      for (auto& signal : signal_list_) {
        CpuWaitForSignal(signal);
        signal->release();
      }
      [...]
    }

In the case where we exit the process after a GPU error that did not
cause an abort (ulimit -c == 0), waiting for the signal can be skipped.
With the device on the error state, no progress is made, and the signal
is probably never going to be modified again:

    inline bool WaitForSignal(hsa_signal_t signal, bool active_wait = false, bool yield = false) {
          [...]
          if (HIP_SKIP_ABORT_ON_GPU_ERROR && amd::Device::IsGPUInError()) {
            ClPrint(amd::LOG_ERROR, amd::LOG_SIG,
                    "Device not Stable, while waiting for Signal ="
                    "(0x%lx) for %d ns",
                    signal.handle, kTimeout4Secs);
            return true;
          }
          [...]
    }

However, after calling CpuWaitForSignal, when calling "release", we can
end-up on a signal dtor which also tries to wait on the signal.  Because
the GPU is the error state, we never receive the signal, and hang the
process during tear down.  This happens with the ProfilingSignal dtor:

    ProfilingSignal::~ProfilingSignal() {
      if (signal_.handle != 0) {
        if (hsa_signal_load_relaxed(signal_) > 0) {
          LogError("Runtime shouldn't destroy a signal that is still busy!");
          if (hsa_signal_wait_scacquire(signal_, HSA_SIGNAL_CONDITION_LT, kInitSignalValueOne,
                                        kUnlimitedWait, HSA_WAIT_STATE_BLOCKED) != 0) {
          }
        }
        hsa_signal_destroy(signal_);
      }
    }

This dtor should check that the GPU is not in the error state before
trying to wait, which is what this patch implements.

Bug: SWDEV-555043
Bug: SWDEV-553435
Bug: SWDEV-553679
Bug: SWDEV-555119
2025-09-18 14:32:04 +01:00
David Yat Sin b192a84396 build: update CMake file (#1015)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2025-09-18 09:27:11 -04:00
Sunday Clement 7c8e575f5d Fix Undefined behavior from signed bit shifts (#871)
* libhsakmt: fix UB due to signed integer literal in 1 << 31

Bit shift operations on signed numbers should not shift into or beyond
the signed bit as this results in Undefined Behaviour.

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>

* libhsakmt: Fix UB due to signed integer literal in 1 << x

Bit Shifting an unsigned integer is undefined behavior.

BUG: SWDEV-532853

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>

* rocr: Fix UB in various places due signed integer in bit shift

Bit shifting signed integers into or beyond the sign bit is undefined.

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>

* rocr: Change signed integer literals to unsigned

Changing the signed integers in the macro expressions throughout the file
to avoid overflow.

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>

---------

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>
Co-authored-by: Flora Cui <flora.cui@amd.com>
2025-09-18 09:09:30 -04:00
Surya Periaswamy ebbcb16cca Add speriaswamy-amd to CODEOWNERS (#1921)
[ROCm/rccl commit: 389f794d9a]
2025-09-18 07:15:21 -05:00
Surya Periaswamy 389f794d9a Add speriaswamy-amd to CODEOWNERS (#1921) 2025-09-18 07:15:21 -05:00
Ioannis Assiouras 5c1eebab84 SWDEV-543723 - Change agentInfo parameter in hostAlloc to void* (#995) 2025-09-18 11:43:15 +01:00
spolifroni-amd a71b562530 Docs - removing SP6 (#181)
[ROCm/rocjpeg commit: 1e7daf880d]
2025-09-17 20:06:25 -07:00
spolifroni-amd 1e7daf880d Docs - removing SP6 (#181) 2025-09-17 20:06:25 -07:00
Nilesh M Negi d354caecb9 [INIT] Use rocm-smi API instead of CLI for querying FW version (#1920)
[ROCm/rccl commit: da06c69cb8]
2025-09-17 19:17:19 -05:00
Nilesh M Negi da06c69cb8 [INIT] Use rocm-smi API instead of CLI for querying FW version (#1920) 2025-09-17 19:17:19 -05:00
Kanangot Balakrishnan, Bindhiya 6715c5aa92 [SWDEV-534605] Increase max devices supported and drm test link type (#625)
Increased the AMDSMI_MAX_DEVICES to 64 to accomodate all
devices in CPX mode. The link type has been modified in
amd-smi to match with rocm-smi types, updated the same
for drm tests.

---------

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
2025-09-17 16:30:04 -05:00
Kanangot Balakrishnan, Bindhiya e0995ce7a0 [SWDEV-534605] Increase max devices supported and drm test link type (#625)
Increased the AMDSMI_MAX_DEVICES to 64 to accomodate all
devices in CPX mode. The link type has been modified in
amd-smi to match with rocm-smi types, updated the same
for drm tests.

---------

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>

[ROCm/amdsmi commit: 6715c5aa92]
2025-09-17 16:30:04 -05:00
Mario Limonciello 902667db3c Fix compilation with gcc 15
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
2025-09-17 16:29:38 -05:00
Mario Limonciello e9fdf65aa2 Fix compilation with gcc 15
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>


[ROCm/amdsmi commit: 902667db3c]
2025-09-17 16:29:38 -05:00
Williams, Justin 2a1f9a6e4a CI - Added New ABI Labeling Logic (#695)
* CI - Added New ABI Labeling Logic

Signed-off-by: Justin Williams <Justin.Williams@amd.com>
2025-09-17 16:29:22 -05:00
Williams, Justin 587b844c2f CI - Added New ABI Labeling Logic (#695)
* CI - Added New ABI Labeling Logic

Signed-off-by: Justin Williams <Justin.Williams@amd.com>

[ROCm/amdsmi commit: 2a1f9a6e4a]
2025-09-17 16:29:22 -05:00
Maisam Arif a29e1d08d4 Remove SLES SP (#891) 2025-09-17 13:18:04 -04:00
amd-hsivasun fa0d88f475 Update rocprofiler-sdk.yml (#1036) 2025-09-17 13:17:35 -04:00
Julia Jiang 5db71b8e4c SWDEV-551652 - Adding one change in 7.0 changelog (#960)
Co-authored-by: Istvan Kiss <istvan.kiss@amd.com>
2025-09-17 09:22:26 -07:00
systems-assistant[bot] 0018a4e70c SWDEV-541623 - cuda parity hipLaunchCooperativeKernelMultiDevice and hipExtLaunchMultiKernelMultiDevice (#415)
* SWDEV-541623 - cuda parity hipLaunchCooperativeKernelMultiDevice and hipExtLaunchMultiKernelMultiDevice

numDevices does not match the system devices

* SWDEV-541623 -  enable Unit_hipExtLaunchMultiKernelMultiDevice_Negative_MultiKernelSameDevice

---------

Co-authored-by: agunashe <ajay.gunashekar@amd.com>
2025-09-17 08:33:59 -07:00
Swati Rawat e655bb37a7 Update installation.rst (#1034) 2025-09-17 11:10:55 -04:00
cfreeamd 7ca8881862 rocminfo: move header comment after opening # line (#1025) 2025-09-16 22:19:26 -07:00
nawrinsu 266067920f Add nawrinsu to CODEOWNERS (#1917)
[ROCm/rccl commit: 0b03bb718a]
2025-09-16 23:40:51 -05:00
nawrinsu 0b03bb718a Add nawrinsu to CODEOWNERS (#1917) 2025-09-16 23:40:51 -05:00
Laura Promberger b9be197d53 Bump minimum cmake version to 3.16 to enable cmake 4 (#1909)
Minimum required cmake version of test/CMakeList.txt is bumped from 2.8
to 3.16. This alignes with the version used in CMakeList.txt and will
enable building with cmake 4.

[ROCm/rccl commit: 0f6fec1553]
2025-09-16 23:10:22 -05:00
Laura Promberger 0f6fec1553 Bump minimum cmake version to 3.16 to enable cmake 4 (#1909)
Minimum required cmake version of test/CMakeList.txt is bumped from 2.8
to 3.16. This alignes with the version used in CMakeList.txt and will
enable building with cmake 4.
2025-09-16 23:10:22 -05:00
spolifroni-amd 37c112e23c Docs - removing SP6 (#653)
[ROCm/rocdecode commit: 92bf931295]
2025-09-16 17:09:59 -07:00
spolifroni-amd 92bf931295 Docs - removing SP6 (#653) 2025-09-16 17:09:59 -07:00
Saeed, Oosman ea225b459b Python_Cli_Examples (#696)
* Adjusted Python CLI examples

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2025-09-16 18:53:07 -05:00
Saeed, Oosman d3fbbb4d36 Python_Cli_Examples (#696)
* Adjusted Python CLI examples

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>

[ROCm/amdsmi commit: ea225b459b]
2025-09-16 18:53:07 -05:00
Julia Jiang 7ab2e49c57 SWDEV-554072 - Update description for hipModuleLoadData (#929) 2025-09-16 17:10:06 -04:00
systems-assistant[bot] 605be4bebc SWDEV-505930 - Avoid static initialization of ModuleGuard (#604)
This is to prevent calling catch2 macros from outside catch2 TEST_CASE
that can lead to undefined bahavior. This change also disables
hipGetProcAddress tests that are not supported on static build.

Co-authored-by: Ioannis Assiouras <Ioannis.Assiouras@amd.com>
2025-09-16 21:06:24 +01:00
SaleelK ec5e9673ad clr: Use current device copy engine for inter-dev copy (#945)
* For inter-device copies always use the SDMA engine of current device
* ROCr uses srcAgent SDMA engine, and it could be a remote device
2025-09-16 12:56:07 -07:00
systems-assistant[bot] ce9fe34c92 SWDEV-549705 - Fixed memleak in Unit_hipExtLaunchMultiKernelMultiDevice_Functional (#521)
Co-authored-by: Ioannis Assiouras <Ioannis.Assiouras@amd.com>
2025-09-16 12:18:59 -07:00
systems-assistant[bot] 5f2ef0fc4f SWDEV-549707 - Fix for mem leak in Unit_hipMemImportFromShareableHandle_Positive_Basic (#523)
Co-authored-by: Ioannis Assiouras <Ioannis.Assiouras@amd.com>
2025-09-16 12:18:34 -07:00