76333 Commit

Autore SHA1 Messaggio Data
Vladimir Stempen dc98babe34 Fix [Not supported] status for get_compute_process_info_by_pid
On some systems [rocm-smi --showpids] reports
get_compute_process_info_by_pid, Not supported on the given system
[PID] [PROCESS NAME] 1 UNKNOWN UNKNOWN UNKNOWN

get_compute_process_info_by_pid fails because cu_occupancy debugfs method
is not provided on some graphics cards and GFX revisions by design

Proposing a change to return success status when only cu_occupancy debugfs method
is not found and provide cu_occupancy invalidation value to mark only
this parameter as UNKNOWN

Change-Id: Iae37070d9bd19483b4e6c8ee24c7d9a4c92f00d7
Signed-off-by: Vladimir Stempen <Vladimir.Stempen@amd.com>
Reviewed-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rocm_smi_lib commit: 677433b367]
2024-02-13 18:17:47 -05:00
Vladimir Stempen 677433b367 Fix [Not supported] status for get_compute_process_info_by_pid
On some systems [rocm-smi --showpids] reports
get_compute_process_info_by_pid, Not supported on the given system
[PID] [PROCESS NAME] 1 UNKNOWN UNKNOWN UNKNOWN

get_compute_process_info_by_pid fails because cu_occupancy debugfs method
is not provided on some graphics cards and GFX revisions by design

Proposing a change to return success status when only cu_occupancy debugfs method
is not found and provide cu_occupancy invalidation value to mark only
this parameter as UNKNOWN

Change-Id: Iae37070d9bd19483b4e6c8ee24c7d9a4c92f00d7
Signed-off-by: Vladimir Stempen <Vladimir.Stempen@amd.com>
Reviewed-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2024-02-13 18:17:47 -05:00
Galantsev, Dmitrii 32806681ca SWDEV-444700 - CMAKE - Fix RUNPATH
These RUNPATH changes make it so libraries can be found without setting
LD_LIBRARY_PATH.

Mostly tested on installed RDC binaries and libraries. The
build binaries should also work.

Change-Id: Ifd908a5b61d24dfcbb1d08d21b4ee830156d8643
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2024-02-13 16:56:28 -06:00
Galantsev, Dmitrii 3c18db8861 SWDEV-444700 - CMAKE - Fix RUNPATH
These RUNPATH changes make it so libraries can be found without setting
LD_LIBRARY_PATH.

Mostly tested on installed RDC binaries and libraries. The
build binaries should also work.

Change-Id: Ifd908a5b61d24dfcbb1d08d21b4ee830156d8643
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rdc commit: 32806681ca]
2024-02-13 16:56:28 -06:00
German Andryeyev c9bace9b71 SWDEV-311271 - Fix Windows mempool management
Windows path still uses multi threading implementation. Hence, in graphs
all nodes are executed in a queue thread and that requires to manage
mempool in the queue thread. However, the spec allows to destory memory,
allocated in a graph, outside of the graph's execution. That may cause
mempool management to go out of sync.

Change-Id: I0ffb2244b3cb720455ed44d1b3e2487fa8959a77


[ROCm/clr commit: 4f6b0da028]
2024-02-13 17:16:06 -05:00
German Andryeyev 4f6b0da028 SWDEV-311271 - Fix Windows mempool management
Windows path still uses multi threading implementation. Hence, in graphs
all nodes are executed in a queue thread and that requires to manage
mempool in the queue thread. However, the spec allows to destory memory,
allocated in a graph, outside of the graph's execution. That may cause
mempool management to go out of sync.

Change-Id: I0ffb2244b3cb720455ed44d1b3e2487fa8959a77
2024-02-13 17:16:06 -05:00
Wenkai Du 2f14acf770 Fix undefined symbol when nvtx is not enabled (#1082)
[ROCm/rccl commit: 1f0af90206]
2024-02-13 14:03:43 -08:00
Wenkai Du 1f0af90206 Fix undefined symbol when nvtx is not enabled (#1082) 2024-02-13 14:03:43 -08:00
Aryan Salmanpour a154e47639 Update the VideoDEcodePipeline image (#242)
* Update the VideoDEcodePipeline image

* update the file extension

* update the image to add connection between parser and decoder

[ROCm/rocdecode commit: d96afc62e8]
2024-02-13 15:51:45 -05:00
Aryan Salmanpour d96afc62e8 Update the VideoDEcodePipeline image (#242)
* Update the VideoDEcodePipeline image

* update the file extension

* update the image to add connection between parser and decoder
2024-02-13 15:51:45 -05:00
Aryan Salmanpour e4db83d8d9 update the README for tested rocm-core/amdgpu-core configuration (#241)
[ROCm/rocdecode commit: c082303b2d]
2024-02-13 15:40:31 -05:00
Aryan Salmanpour c082303b2d update the README for tested rocm-core/amdgpu-core configuration (#241) 2024-02-13 15:40:31 -05:00
David Yat Sin 5b28a1bc17 Fix compile error on certain gcc versions
Change-Id: I8a4fab76d1dcc576eb7706ab45fc786c0cab274a
2024-02-13 15:25:34 -05:00
David Yat Sin 7a6c962b36 Fix compile error on certain gcc versions
Change-Id: I8a4fab76d1dcc576eb7706ab45fc786c0cab274a


[ROCm/ROCR-Runtime commit: 5b28a1bc17]
2024-02-13 15:25:34 -05:00
David Yat Sin 5257adde87 Add query for memory properties
Change-Id: I07c084c56b15c499ec564860b2a514e909ab7ca4


[ROCm/rocminfo commit: 7e159e6d76]
2024-02-13 14:28:30 -05:00
David Yat Sin 7e159e6d76 Add query for memory properties
Change-Id: I07c084c56b15c499ec564860b2a514e909ab7ca4
2024-02-13 14:28:30 -05:00
David Yat Sin ae16b3e14e Use sysconf pagesize for system pagesize
Provided by user huanggyizhi on github
https://github.com/RadeonOpenCompute/ROCR-Runtime/pull/124

Change-Id: Ia03c45f7a869ae2c804accf8163f8ae36c20dd5a
2024-02-13 14:28:10 -05:00
David Yat Sin 65497f8f2c Use sysconf pagesize for system pagesize
Provided by user huanggyizhi on github
https://github.com/RadeonOpenCompute/ROCR-Runtime/pull/124

Change-Id: Ia03c45f7a869ae2c804accf8163f8ae36c20dd5a


[ROCm/ROCR-Runtime commit: ae16b3e14e]
2024-02-13 14:28:10 -05:00
Gopesh Bhardwaj 4bee0ece8b Adding test for demangling (#467)
* Adding test for demangling

* moving -M option to existing one

* minor typo in script and test correction

[ROCm/rocprofiler-sdk commit: 2b1c11a4f3]
2024-02-13 11:09:27 -06:00
Gopesh Bhardwaj 2b1c11a4f3 Adding test for demangling (#467)
* Adding test for demangling

* moving -M option to existing one

* minor typo in script and test correction
2024-02-13 11:09:27 -06:00
Oliveira, Daniel 78074d7d77 fix: [rocm/amd_smi_lib] amdsmi_get_gpu_activity gfx/memory activity does not update
Checks and forces rereading gpu metrics unconditionally

Code changes related to the following:
  * Device::dev_log_gpu_metrics()
  * amdsmi_get_gpu_metrics_header_info()
    Removed unintentionally during work on 'header cleanup Remove non-unified headers'
  * Examples
  * Unit tests

Change-Id: I83710e173c0f7102d0b7f865c18474c979a95cd8
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>
2024-02-13 10:15:17 -06:00
Oliveira, Daniel e9e246f23d fix: [rocm/amd_smi_lib] amdsmi_get_gpu_activity gfx/memory activity does not update
Checks and forces rereading gpu metrics unconditionally

Code changes related to the following:
  * Device::dev_log_gpu_metrics()
  * amdsmi_get_gpu_metrics_header_info()
    Removed unintentionally during work on 'header cleanup Remove non-unified headers'
  * Examples
  * Unit tests

Change-Id: I83710e173c0f7102d0b7f865c18474c979a95cd8
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>


[ROCm/amdsmi commit: 78074d7d77]
2024-02-13 10:15:17 -06:00
David Galiffi 42b79166bf SWDEV-437287 - Add CODEOWNERS file
Add @gargrahul, @mangupta, and @rakesroy as CODEOWNERS.
This is for GitHub upstream.

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
Change-Id: I24224d460a259acc6159ff0509667c861a4865e0


[ROCm/hip commit: 16b8ca7e49]
2024-02-13 10:36:01 -05:00
David Galiffi 16b8ca7e49 SWDEV-437287 - Add CODEOWNERS file
Add @gargrahul, @mangupta, and @rakesroy as CODEOWNERS.
This is for GitHub upstream.

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
Change-Id: I24224d460a259acc6159ff0509667c861a4865e0
2024-02-13 10:36:01 -05:00
David Galiffi 7a265ee254 SWDEV-437287 - Add CODEOWNERS file
Add @gargrahul, @rakesroy, and @mangupta as CODEOWNERS.

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
Change-Id: I353d56a37cf088a9c8c3a6deebad0eb3de1d99b9


[ROCm/hip-tests commit: aefccff870]
2024-02-13 10:35:51 -05:00
David Galiffi aefccff870 SWDEV-437287 - Add CODEOWNERS file
Add @gargrahul, @rakesroy, and @mangupta as CODEOWNERS.

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
Change-Id: I353d56a37cf088a9c8c3a6deebad0eb3de1d99b9
2024-02-13 10:35:51 -05:00
German Andryeyev bbf1d7c5b5 SWDEV-445692 - Query OS for free memory
Latest VidMM can provide free memory available on the system.
Use PAL interface to report free memory on the system instead
of per process.

Change-Id: I0e78b9d340299c16829177a8c5182d21cc353384


[ROCm/clr commit: bfa469ddc4]
2024-02-13 09:53:36 -05:00
German Andryeyev bfa469ddc4 SWDEV-445692 - Query OS for free memory
Latest VidMM can provide free memory available on the system.
Use PAL interface to report free memory on the system instead
of per process.

Change-Id: I0e78b9d340299c16829177a8c5182d21cc353384
2024-02-13 09:53:36 -05:00
Sylvain Jeaugey 2ab8a3a750 2.20.3-1
Add support for alternating rings, allow for cross-nic rings without
cross-rail communication.
Add support for user buffer registration for network send/recv.
Optimize aggregated operations to better utilize all channels.
Add flattening for BCM PCI gen5 switches.
Add support for inter-node NVLink communication
Add support for port fusion in NET/IB.
Add support for ReduceScatter and AllGather using Collnet.
Update net API to v8.
Fix hang during A2A connection.


[ROCm/rccl commit: b6475625fb]
2024-02-13 04:22:38 -08:00
Sylvain Jeaugey b6475625fb 2.20.3-1
Add support for alternating rings, allow for cross-nic rings without
cross-rail communication.
Add support for user buffer registration for network send/recv.
Optimize aggregated operations to better utilize all channels.
Add flattening for BCM PCI gen5 switches.
Add support for inter-node NVLink communication
Add support for port fusion in NET/IB.
Add support for ReduceScatter and AllGather using Collnet.
Update net API to v8.
Fix hang during A2A connection.
2024-02-13 04:22:38 -08:00
Anusha GodavarthySurya 2c045d12ee SWDEV-445013 - During CaptureAQLPackets correct sentinal value to copy integer size bytes
Read and write int bytes sentinal value to dev_ptr or PCIE connected devices at the tail end of the kernarg surface.

Change-Id: I993d552ac872b3cd56aef4746c4d1d92c58d38b4


[ROCm/clr commit: 853abeb75e]
2024-02-13 07:05:57 +00:00
Anusha GodavarthySurya 853abeb75e SWDEV-445013 - During CaptureAQLPackets correct sentinal value to copy integer size bytes
Read and write int bytes sentinal value to dev_ptr or PCIE connected devices at the tail end of the kernarg surface.

Change-Id: I993d552ac872b3cd56aef4746c4d1d92c58d38b4
2024-02-13 07:05:57 +00:00
mbhiutra 59ef1abbcf SWDEV-412880 - [catch2][dtest] Adding test cases for functions defined inside hip_vector_types.h, hip_fp16.h, texture_types.h and math_functions.h
Change-Id: I5427898303babc1f1f0dc4b15921e9f1cd52c4ad


[ROCm/hip-tests commit: 8d8db1f1bf]
2024-02-13 00:33:10 -05:00
mbhiutra 8d8db1f1bf SWDEV-412880 - [catch2][dtest] Adding test cases for functions defined inside hip_vector_types.h, hip_fp16.h, texture_types.h and math_functions.h
Change-Id: I5427898303babc1f1f0dc4b15921e9f1cd52c4ad
2024-02-13 00:33:10 -05:00
mbhiutra 1ef0dab312 SWDEV-432851 - [catch2][dtest] Add test for hipDrvGraphAddMemcpyNode
Change-Id: Ie2738eecafafa980efe4c33e10426febcf7a6cbd


[ROCm/hip-tests commit: e1aa13c4d4]
2024-02-12 22:32:33 -05:00
mbhiutra e1aa13c4d4 SWDEV-432851 - [catch2][dtest] Add test for hipDrvGraphAddMemcpyNode
Change-Id: Ie2738eecafafa980efe4c33e10426febcf7a6cbd
2024-02-12 22:32:33 -05:00
Galantsev, Dmitrii 3564c1a430 CMAKE - Default to lib instead of lib64
Change-Id: Ib21d41018b091d92c2ed408ff0c4d28e6a74c903
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rocm_smi_lib commit: de9eaaac8c]
2024-02-12 20:16:28 -06:00
Galantsev, Dmitrii de9eaaac8c CMAKE - Default to lib instead of lib64
Change-Id: Ib21d41018b091d92c2ed408ff0c4d28e6a74c903
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2024-02-12 20:16:28 -06:00
Bertan Dogancay bee47d9e91 Add stack size UT (#1081)
* Add stack size UT

[ROCm/rccl commit: dc2d486ba0]
2024-02-12 17:56:15 -07:00
Bertan Dogancay dc2d486ba0 Add stack size UT (#1081)
* Add stack size UT
2024-02-12 17:56:15 -07:00
colramos-amd 6bedf1ebf6 Fix logic for roofline field in sysinfo
Signed-off-by: colramos-amd <colramos@amd.com>


[ROCm/rocprofiler-compute commit: 7bb211a465]
2024-02-12 17:07:55 -06:00
colramos-amd 7bb211a465 Fix logic for roofline field in sysinfo
Signed-off-by: colramos-amd <colramos@amd.com>
2024-02-12 17:07:55 -06:00
Maisam Arif f831cf49f7 Renamed amdsmi_get_metrics_table to amdsmi_get_cpu_metrics_table
Renamed structs to be more conistent with what they are calling

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I6f2be2fcb76f004aa592f0dad8545565700ccd4b
2024-02-12 16:30:18 -06:00
Maisam Arif b6f62bb651 Renamed amdsmi_get_metrics_table to amdsmi_get_cpu_metrics_table
Renamed structs to be more conistent with what they are calling

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I6f2be2fcb76f004aa592f0dad8545565700ccd4b


[ROCm/amdsmi commit: f831cf49f7]
2024-02-12 16:30:18 -06:00
Aryan Salmanpour bc48060ff0 Fix a segmentation fault on some samples when the memory type is 3 (OUT_SURFACE_MEM_NOT_MAPPED) and attempting to save the output (which is not supported) (#239)
* Fix a segmentation fault on some samples when the memory type is 3 (OUT_SURFACE_MEM_NOT_MAPPED) and attempting to save the output (which is not supported)

* update the videoDecodeMultiFiles sample

* update the readme for videoDecodeMultiFiles

* add comments

* use OUT_SURFACE_MEM_NOT_MAPPED instead of integer number 3

[ROCm/rocdecode commit: 31c7c7c104]
2024-02-12 16:50:17 -05:00
Aryan Salmanpour 31c7c7c104 Fix a segmentation fault on some samples when the memory type is 3 (OUT_SURFACE_MEM_NOT_MAPPED) and attempting to save the output (which is not supported) (#239)
* Fix a segmentation fault on some samples when the memory type is 3 (OUT_SURFACE_MEM_NOT_MAPPED) and attempting to save the output (which is not supported)

* update the videoDecodeMultiFiles sample

* update the readme for videoDecodeMultiFiles

* add comments

* use OUT_SURFACE_MEM_NOT_MAPPED instead of integer number 3
2024-02-12 16:50:17 -05:00
Maisam Arif 7a19dbbfe6 SWDEV-439217 - Updated amdsmi_get_gpu_asic_info python api
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iafcfb10bec9a9a04574afdd95f10971f537e433b
2024-02-12 15:37:45 -05:00
Maisam Arif aa633783aa SWDEV-439217 - Updated amdsmi_get_gpu_asic_info python api
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iafcfb10bec9a9a04574afdd95f10971f537e433b


[ROCm/amdsmi commit: 7a19dbbfe6]
2024-02-12 15:37:45 -05:00
Kiriti Gowda 18e32ff6c8 OS - Support updates (#240)
[ROCm/rocdecode commit: f9ebe34662]
2024-02-12 11:51:55 -08:00
Kiriti Gowda f9ebe34662 OS - Support updates (#240) 2024-02-12 11:51:55 -08:00