76333 Коммитов

Автор SHA1 Сообщение Дата
SrinivasaRao 7e49ea7a8b SWDEV-388834 - [catch2][dtest] Module tests migrated from direct to catch2
Change-Id: I9a3fbdd4e52bb69ab428b7cfcd478fa0382e7cc9


[ROCm/hip-tests commit: 304b0ac90b]
2024-08-22 23:39:12 -04:00
SrinivasaRao 304b0ac90b SWDEV-388834 - [catch2][dtest] Module tests migrated from direct to catch2
Change-Id: I9a3fbdd4e52bb69ab428b7cfcd478fa0382e7cc9
2024-08-22 23:39:12 -04:00
Charis Poag a2dc934b05 Fix amdsmi_reg_type_t not defined
Latest updates need to use a wrapper defined value. Breaks basic CLI
functionality.

$ /opt/rocm/bin/amd-smi list
Traceback (most recent call last):
  File "/opt/rocm/bin/amd-smi", line 44, in <module>
    from amdsmi_commands import AMDSMICommands
  File "/opt/rocm/libexec/amdsmi_cli/amdsmi_commands.py", line 30, in <module>
    from amdsmi_helpers import AMDSMIHelpers
  File "/opt/rocm/libexec/amdsmi_cli/amdsmi_helpers.py", line 35, in <module>
    from amdsmi_init import *
  File "/opt/rocm/libexec/amdsmi_cli/amdsmi_init.py", line 35, in <module>
    from amdsmi import amdsmi_interface
  File "/usr/local/lib/python3.8/dist-packages/amdsmi/__init__.py", line 26, in <module>
    from .amdsmi_interface import amdsmi_init
  File "/usr/local/lib/python3.8/dist-packages/amdsmi/amdsmi_interface.py", line 1725, in <module>
    reg_type: amdsmi_reg_type_t,
NameError: name 'amdsmi_reg_type_t' is not defined

Change-Id: I628c811c137f57f3177a718c9bce859bc553bf7d
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2024-08-22 21:57:36 -05:00
Charis Poag 4b308c8d48 Fix amdsmi_reg_type_t not defined
Latest updates need to use a wrapper defined value. Breaks basic CLI
functionality.

$ /opt/rocm/bin/amd-smi list
Traceback (most recent call last):
  File "/opt/rocm/bin/amd-smi", line 44, in <module>
    from amdsmi_commands import AMDSMICommands
  File "/opt/rocm/libexec/amdsmi_cli/amdsmi_commands.py", line 30, in <module>
    from amdsmi_helpers import AMDSMIHelpers
  File "/opt/rocm/libexec/amdsmi_cli/amdsmi_helpers.py", line 35, in <module>
    from amdsmi_init import *
  File "/opt/rocm/libexec/amdsmi_cli/amdsmi_init.py", line 35, in <module>
    from amdsmi import amdsmi_interface
  File "/usr/local/lib/python3.8/dist-packages/amdsmi/__init__.py", line 26, in <module>
    from .amdsmi_interface import amdsmi_init
  File "/usr/local/lib/python3.8/dist-packages/amdsmi/amdsmi_interface.py", line 1725, in <module>
    reg_type: amdsmi_reg_type_t,
NameError: name 'amdsmi_reg_type_t' is not defined

Change-Id: I628c811c137f57f3177a718c9bce859bc553bf7d
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/amdsmi commit: a2dc934b05]
2024-08-22 21:57:36 -05:00
Zhang Ava 8c5942db3a Merge amd-dev into amd-master 20240821
Signed-off-by: Zhang Ava <niandong.zhang@amd.com>
Change-Id: I9e5be746557fc7e3c7fdee2d91d0b3981945a75f
2024-08-23 09:45:42 +08:00
Zhang Ava f214b54d8f Merge amd-dev into amd-master 20240821
Signed-off-by: Zhang Ava <niandong.zhang@amd.com>
Change-Id: I9e5be746557fc7e3c7fdee2d91d0b3981945a75f


[ROCm/amdsmi commit: 8c5942db3a]
2024-08-23 09:45:42 +08:00
Wenkai Du 157cc5f6ba Add new Rome model (#1304)
* Add another rome model and override

* Fix bug

* Fix typo

* Add ring

* Update ring

* Fix model matching

* Clean up

* Clean up

* Reverse rings for NCCL_RINGS input

* Only reverse NCCL_RINGS for ring graph

* Fix mapping issue when using  NCCL_RINGS

* Add NCCL_RINGS_REMAP to handle inconsistant net names

[ROCm/rccl commit: 532b70afb6]
2024-08-23 08:45:43 +08:00
Wenkai Du 532b70afb6 Add new Rome model (#1304)
* Add another rome model and override

* Fix bug

* Fix typo

* Add ring

* Update ring

* Fix model matching

* Clean up

* Clean up

* Reverse rings for NCCL_RINGS input

* Only reverse NCCL_RINGS for ring graph

* Fix mapping issue when using  NCCL_RINGS

* Add NCCL_RINGS_REMAP to handle inconsistant net names
2024-08-23 08:45:43 +08:00
David Yat Sin cb672ebcd1 Set ELF_GETSHDRSTRNDX when cxx compiler is not loaded
Change-Id: Ia26b8999909f688ce78d9bbe4cb2a7262df2ee02
2024-08-22 17:20:37 -04:00
David Yat Sin 5cb81438c7 Set ELF_GETSHDRSTRNDX when cxx compiler is not loaded
Change-Id: Ia26b8999909f688ce78d9bbe4cb2a7262df2ee02


[ROCm/ROCR-Runtime commit: cb672ebcd1]
2024-08-22 17:20:37 -04:00
Aryan Salmanpour e43acce286 Add support for ROI decode on MI300 (#53)
* Add support for ROI decode on MI300

* Add ROI decode support for batched decoding

* clean up

* clean up

* Fix a typo and update sample's readme

[ROCm/rocjpeg commit: 7b321a86ed]
2024-08-22 17:04:03 -04:00
Aryan Salmanpour 7b321a86ed Add support for ROI decode on MI300 (#53)
* Add support for ROI decode on MI300

* Add ROI decode support for batched decoding

* clean up

* clean up

* Fix a typo and update sample's readme
2024-08-22 17:04:03 -04:00
kjayapra-amd 2af78c954b SWDEV-478097 - Check for parents size in case of VA Mem object.
Change-Id: Icfdeabeb178c0dcc8c3a4bc48eec40067985794e


[ROCm/clr commit: d7b097c994]
2024-08-22 14:18:51 -04:00
kjayapra-amd d7b097c994 SWDEV-478097 - Check for parents size in case of VA Mem object.
Change-Id: Icfdeabeb178c0dcc8c3a4bc48eec40067985794e
2024-08-22 14:18:51 -04:00
kjayapra-amd 05770badad SWDEV-478923 - Add targets for code object compilation.
Change-Id: Icef7917cfb1ba53eb3ccbbf9220dd96dcbe8714d


[ROCm/hip-tests commit: 2d2e90a405]
2024-08-22 14:17:31 -04:00
kjayapra-amd 2d2e90a405 SWDEV-478923 - Add targets for code object compilation.
Change-Id: Icef7917cfb1ba53eb3ccbbf9220dd96dcbe8714d
2024-08-22 14:17:31 -04:00
Rahul Manocha 153b9512c2 SWDEV-479073 - Use amdgpu-arch for sample 16 and 17
Change-Id: Ia6a2d7171d0ed296166f3bbf5f40c56305518de3


[ROCm/hip-tests commit: b8a0b33f67]
2024-08-22 14:15:52 -04:00
Rahul Manocha b8a0b33f67 SWDEV-479073 - Use amdgpu-arch for sample 16 and 17
Change-Id: Ia6a2d7171d0ed296166f3bbf5f40c56305518de3
2024-08-22 14:15:52 -04:00
mberenjk 886b576722 adding all nccl apis to api_support to enable rccl tracing by rocprofv3 (#1297)
* adding all nccl apis to api_support to enable rccl tracing by rocprofv3

Co-authored-by: Marzieh Berenjkoub <mberenjk@amd.com>
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rccl commit: db840f024e]
2024-08-22 12:36:07 -05:00
mberenjk db840f024e adding all nccl apis to api_support to enable rccl tracing by rocprofv3 (#1297)
* adding all nccl apis to api_support to enable rccl tracing by rocprofv3

Co-authored-by: Marzieh Berenjkoub <mberenjk@amd.com>
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
2024-08-22 12:36:07 -05:00
Ioannis Assiouras 78c9afb098 SWDEV-470372 - Added hipExtHostAlloc API
This change adds a new HIP API `hipExtHostAlloc` which preserves
the functionality of `hipHostMalloc`.

Change-Id: I2198ecd7a10a1ceb28b8fd32b16625b1b6d3abaf


[ROCm/hip commit: 83511e0159]
2024-08-22 13:16:55 -04:00
Ioannis Assiouras 83511e0159 SWDEV-470372 - Added hipExtHostAlloc API
This change adds a new HIP API `hipExtHostAlloc` which preserves
the functionality of `hipHostMalloc`.

Change-Id: I2198ecd7a10a1ceb28b8fd32b16625b1b6d3abaf
2024-08-22 13:16:55 -04:00
Jatin Chaudhary 72b0a5abc3 SWDEV-446047 - initial version of fp8 documentation
Change-Id: I9d9d45435534381d22dff4d4860549e861d52c3f


[ROCm/hip commit: 2b362353f6]
2024-08-22 12:51:15 -04:00
Jatin Chaudhary 2b362353f6 SWDEV-446047 - initial version of fp8 documentation
Change-Id: I9d9d45435534381d22dff4d4860549e861d52c3f
2024-08-22 12:51:15 -04:00
Joseph Macaranas be31cca4df External CI: Add support for ROCR+Thunk combined repo.
Change-Id: Ib2305d6ed81f29d146c73a4063e08671c8a8273a
2024-08-22 12:40:28 -04:00
Joseph Macaranas 194432d95e External CI: Add support for ROCR+Thunk combined repo.
Change-Id: Ib2305d6ed81f29d146c73a4063e08671c8a8273a


[ROCm/ROCR-Runtime commit: be31cca4df]
2024-08-22 12:40:28 -04:00
avinashkethineedi 1432a6be71 Add buffers required for collectives
[ROCm/rocshmem commit: a9571ec002]
2024-08-22 09:28:09 -07:00
avinashkethineedi a9571ec002 Add buffers required for collectives 2024-08-22 09:28:09 -07:00
avinashkethineedi 6f8d2df73a Add IPC teams
[ROCm/rocshmem commit: a59bdd4f6b]
2024-08-22 09:15:44 -07:00
avinashkethineedi a59bdd4f6b Add IPC teams 2024-08-22 09:15:44 -07:00
David Yat Sin c8dd4d2b3b rocr: Handle pthread_create returning errors
Rewriting logic to fix issue where pthread_create would return errors
other than EINVAL, and these errors would be ignored.

Change-Id: I573958724dcf886c20e8c14e6a9182303b3ffa06
2024-08-22 12:15:10 -04:00
David Yat Sin de85c5738e rocr: Handle pthread_create returning errors
Rewriting logic to fix issue where pthread_create would return errors
other than EINVAL, and these errors would be ignored.

Change-Id: I573958724dcf886c20e8c14e6a9182303b3ffa06


[ROCm/ROCR-Runtime commit: c8dd4d2b3b]
2024-08-22 12:15:10 -04:00
Rahul Manocha 5b07e0ed91 SWDEV-468039 - add fp8 ocp hip data type
Change-Id: I3466decd096df2b6a1d3430979ff20204596369d


[ROCm/hip commit: 4d4c6a44e9]
2024-08-22 11:37:23 -04:00
Rahul Manocha 4d4c6a44e9 SWDEV-468039 - add fp8 ocp hip data type
Change-Id: I3466decd096df2b6a1d3430979ff20204596369d
2024-08-22 11:37:23 -04:00
Julia Jiang eac092348a SWDEV-479940 - Update the changelog for 6.3
Change-Id: I2b465d297466b9c4884e30649bd2ea12a4c4229c


[ROCm/clr commit: 6576be5602]
2024-08-22 11:28:46 -04:00
Julia Jiang 6576be5602 SWDEV-479940 - Update the changelog for 6.3
Change-Id: I2b465d297466b9c4884e30649bd2ea12a4c4229c
2024-08-22 11:28:46 -04:00
jeffqjiangNew b02ad72146 * rocDecode/Sample script: Sorted the files to enable easy post-procssing of the performance data. (#411)
[ROCm/rocdecode commit: 1a6752fa10]
2024-08-22 10:04:58 -04:00
jeffqjiangNew 1a6752fa10 * rocDecode/Sample script: Sorted the files to enable easy post-procssing of the performance data. (#411) 2024-08-22 10:04:58 -04:00
Shane Xiao 06912065d9 [SWDEV-479204] Fix the hipGraph AQL package fill issue
This patch fixes this potential issue that filling AQL header before
filling the AQL body. The hsa spec specifies "Packet processors may
process AQL packets after the packet format field is updated, but
before the doorbell is signaled."
However, the hipGraph AQL package with valid header will be filled
before fill the body, which may have the potential issue that CP
receive invalid AQL body.

Change-Id: I84af798c19ee2b8805ba19732b0eabdea2958a96


[ROCm/clr commit: 3959b5be1e]
2024-08-21 21:49:11 -04:00
Shane Xiao 3959b5be1e [SWDEV-479204] Fix the hipGraph AQL package fill issue
This patch fixes this potential issue that filling AQL header before
filling the AQL body. The hsa spec specifies "Packet processors may
process AQL packets after the packet format field is updated, but
before the doorbell is signaled."
However, the hipGraph AQL package with valid header will be filled
before fill the body, which may have the potential issue that CP
receive invalid AQL body.

Change-Id: I84af798c19ee2b8805ba19732b0eabdea2958a96
2024-08-21 21:49:11 -04:00
Lancelot SIX d5acab2b39 libhsakmt: Check for KFD 1.13 for debug ioctl interface
Core dump support relies on debugger related KFD ioctl which have been
introduced in version 1.13 of the interface.  However, the code checks
for KFD_IOCTL_MINOR_VERSION (currently 17), making it impossible to
produce core dumps when using some drivers that should support it.

Update the CHECK_KFD_MINOR_VERSION calls in the debugger related ioctl
wrappers and look for KFD 1.13 or above.

Change-Id: I10a7fd03bf8f678b6318d7c25d6a7ded804dac67
2024-08-21 23:45:25 +01:00
Lancelot SIX 38e448df2d libhsakmt: Check for KFD 1.13 for debug ioctl interface
Core dump support relies on debugger related KFD ioctl which have been
introduced in version 1.13 of the interface.  However, the code checks
for KFD_IOCTL_MINOR_VERSION (currently 17), making it impossible to
produce core dumps when using some drivers that should support it.

Update the CHECK_KFD_MINOR_VERSION calls in the debugger related ioctl
wrappers and look for KFD 1.13 or above.

Change-Id: I10a7fd03bf8f678b6318d7c25d6a7ded804dac67


[ROCm/ROCR-Runtime commit: d5acab2b39]
2024-08-21 23:45:25 +01:00
Lancelot SIX 3475a45137 rocr/amd_core_dump: Fix "arithmetic on a pointer to void"
A recent patch introduced a build failure when building with Clang:

    [ 65%] Building CXX object runtime/hsa-runtime/CMakeFiles/hsa-runtime64.dir/libamdhsacode/amd_core_dump.cpp.o
    […]/runtime/hsa-runtime/libamdhsacode/amd_core_dump.cpp:271:29: error: arithmetic on a pointer to void
      271 |       read = pread(fd_, buf + done, buf_size - done,
          |                         ~~~ ^
    1 error generated.

This patch fixes this by making sure the "void *" pointer is converting
to "char *" before doing arithmetic on it.

Change-Id: Ib1663ed30abce76e05f06d042975eccd7d729823
2024-08-21 17:19:28 -04:00
Lancelot SIX 808e8e6900 rocr/amd_core_dump: Fix "arithmetic on a pointer to void"
A recent patch introduced a build failure when building with Clang:

    [ 65%] Building CXX object runtime/hsa-runtime/CMakeFiles/hsa-runtime64.dir/libamdhsacode/amd_core_dump.cpp.o
    […]/runtime/hsa-runtime/libamdhsacode/amd_core_dump.cpp:271:29: error: arithmetic on a pointer to void
      271 |       read = pread(fd_, buf + done, buf_size - done,
          |                         ~~~ ^
    1 error generated.

This patch fixes this by making sure the "void *" pointer is converting
to "char *" before doing arithmetic on it.

Change-Id: Ib1663ed30abce76e05f06d042975eccd7d729823


[ROCm/ROCR-Runtime commit: 3475a45137]
2024-08-21 17:19:28 -04:00
Bill(Shuzhou) Liu 56b08ea7c3 Update the document to install the rdc service
Correct the file path of the rdc.service in the document

Change-Id: Ib161e97abdd5e2a117b2758ff5407b55337ab25b
2024-08-21 12:21:57 -05:00
Bill(Shuzhou) Liu 98ba530267 Update the document to install the rdc service
Correct the file path of the rdc.service in the document

Change-Id: Ib161e97abdd5e2a117b2758ff5407b55337ab25b


[ROCm/rdc commit: 56b08ea7c3]
2024-08-21 12:21:57 -05:00
Rahul Manocha 1b14058283 SWDEV-474617 SWDEV-464679 - Fix segfault in palvirtual due to peer memory access
Change-Id: Ib8b641712d78acf8bc073ca5705dea97af6f944a


[ROCm/clr commit: 432bdd7bf2]
2024-08-21 11:34:15 -04:00
Rahul Manocha 432bdd7bf2 SWDEV-474617 SWDEV-464679 - Fix segfault in palvirtual due to peer memory access
Change-Id: Ib8b641712d78acf8bc073ca5705dea97af6f944a
2024-08-21 11:34:15 -04:00
Sourabh Betigeri d1d6c448c9 SWDEV-462192 SWDEV-459056 - Fixes corruption
SPT is destroyed with hipDeviceReset(). If a
stream is created right after reset, the same
object id could be reused. Later SPT destructor
incorrectly verifies that the stream is valid
referring to the reused object id causing the
corruption.

Change-Id: I3b1f7ffdf8bab874dca7b8fde22318162997b8f6


[ROCm/clr commit: f6a68b3c2e]
2024-08-21 11:33:44 -04:00
Sourabh Betigeri f6a68b3c2e SWDEV-462192 SWDEV-459056 - Fixes corruption
SPT is destroyed with hipDeviceReset(). If a
stream is created right after reset, the same
object id could be reused. Later SPT destructor
incorrectly verifies that the stream is valid
referring to the reused object id causing the
corruption.

Change-Id: I3b1f7ffdf8bab874dca7b8fde22318162997b8f6
2024-08-21 11:33:44 -04:00