Commit Graph

64521 Commits

Author SHA1 Message Date
kjayapra-amd e72d5a4443 SWDEV-439234 - set access for vmm memory on graph/mempool path.
Change-Id: Idfb740dcfe6c7fe0f18231de3074a81d06e6886e
2024-08-19 13:16:30 -04:00
Lancelot Six 3e0d3d6d61 coredump: Improve error handling when reading VRAM
It is possible for the runtime to receive an interrupt while trying to
access VRAM data using /proc/self/mem.  In such case, pread(2) would
return -1 and set errno to -EINTR.  This is not an error case, the
pread(2) call just need to be restarted, however current implementation
would tread it as an error.

This patch changes the the implementation to correctly retry on EINTR.
While at it, this patch also handles cases where pread(2) reads less
data than originally requested.

Change-Id: I6a72fc5eda4afd90319f0d24b35c9eac6d1ff41c
Signed-off-by: David Yat Sin <David.YatSin@amd.com>
2024-08-19 12:20:22 -04:00
Lancelot Six 96545e914b coredump: Improve error handling when reading VRAM
It is possible for the runtime to receive an interrupt while trying to
access VRAM data using /proc/self/mem.  In such case, pread(2) would
return -1 and set errno to -EINTR.  This is not an error case, the
pread(2) call just need to be restarted, however current implementation
would tread it as an error.

This patch changes the the implementation to correctly retry on EINTR.
While at it, this patch also handles cases where pread(2) reads less
data than originally requested.

Change-Id: I6a72fc5eda4afd90319f0d24b35c9eac6d1ff41c
Signed-off-by: David Yat Sin <David.YatSin@amd.com>


[ROCm/ROCR-Runtime commit: 3e0d3d6d61]
2024-08-19 12:20:22 -04:00
David Yat Sin 1d1d402dcc Do not allow default mem_flags
Force mem_flags to be explicit passed in then calling Queue constructor
to avoid ambiguity with calls to Queue constructor trying to only pass
the agent_node_id.

Change-Id: Ib6fedcb9e52d6c9f35f9051dfa989343456ca368
Signed-off-by: David Yat Sin <David.YatSin@amd.com>
2024-08-19 12:19:32 -04:00
David Yat Sin d7a0c72661 Do not allow default mem_flags
Force mem_flags to be explicit passed in then calling Queue constructor
to avoid ambiguity with calls to Queue constructor trying to only pass
the agent_node_id.

Change-Id: Ib6fedcb9e52d6c9f35f9051dfa989343456ca368
Signed-off-by: David Yat Sin <David.YatSin@amd.com>


[ROCm/ROCR-Runtime commit: 1d1d402dcc]
2024-08-19 12:19:32 -04:00
Swati Rawat 4cb5c509f9 Tagging APIs from hsa_ext_amd.h for Doxygen
Change-Id: I2ab2358985442647cedbd99eca5b1140cb0b0680
Signed-off-by: David Yat Sin <David.YatSin@amd.com>
2024-08-19 12:17:20 -04:00
Swati Rawat 68d697cb63 Tagging APIs from hsa_ext_amd.h for Doxygen
Change-Id: I2ab2358985442647cedbd99eca5b1140cb0b0680
Signed-off-by: David Yat Sin <David.YatSin@amd.com>


[ROCm/ROCR-Runtime commit: 4cb5c509f9]
2024-08-19 12:17:20 -04:00
Shweta.Khatri 8176a8830f Adjusted indentation with tabs
No functional change

Change-Id: Ibe97b03f62c4affcb60d3469312c8a0b6eb11391
Signed-off-by: David Yat Sin <David.YatSin@amd.com>
2024-08-19 12:16:58 -04:00
Shweta.Khatri 73197d1dff Adjusted indentation with tabs
No functional change

Change-Id: Ibe97b03f62c4affcb60d3469312c8a0b6eb11391
Signed-off-by: David Yat Sin <David.YatSin@amd.com>


[ROCm/ROCR-Runtime commit: 8176a8830f]
2024-08-19 12:16:58 -04:00
Chris Freehill 2722be7fa9 Add CONTRIBUTING.md file
Change-Id: I8f31240d485aa1cfc259e5882de5d73d55c95409


[ROCm/rocminfo commit: 08693587d6]
2024-08-19 16:12:31 +00:00
Chris Freehill 08693587d6 Add CONTRIBUTING.md file
Change-Id: I8f31240d485aa1cfc259e5882de5d73d55c95409
2024-08-19 16:12:31 +00:00
Ranjith Ramakrishnan 8df83d6dd6 Removed kmod dependency from rocminfo
kmod dependency is not at all required for rocminfo. Removing the same from the package dependency list

Change-Id: I58f9c4305585c5dd770ea3c6a6298c30c89c31b5


[ROCm/rocminfo commit: 63ff6a4b30]
2024-08-19 16:12:31 +00:00
Ranjith Ramakrishnan 63ff6a4b30 Removed kmod dependency from rocminfo
kmod dependency is not at all required for rocminfo. Removing the same from the package dependency list

Change-Id: I58f9c4305585c5dd770ea3c6a6298c30c89c31b5
2024-08-19 16:12:31 +00:00
James Xu a621bca303 Fix compile errors with musl>=1.2.3
Patch submitted on behalf of user AngryLoki:

The fix repeats common pattern, used for musl, 
e.g: https://github.com/void-linux/void-packages/blob/5ccf1c66a1df2d644e1a0db0a68fca321469c57e/srcpkgs/MangoHud/patches/0001-elfhacks-d_un.d_ptr-is-relative-on-non-glibc-systems.patch#L90.

Quoting:
d_un.d_ptr is relative on non glibc systems

elf(5) documents it this way, glibc diverts from this documentation

Change-Id: I815f88f127ef00c88ae827a8ad48df0d33c92467
2024-08-19 11:02:29 -04:00
James Xu e5d7121245 Fix compile errors with musl>=1.2.3
Patch submitted on behalf of user AngryLoki:

The fix repeats common pattern, used for musl, 
e.g: https://github.com/void-linux/void-packages/blob/5ccf1c66a1df2d644e1a0db0a68fca321469c57e/srcpkgs/MangoHud/patches/0001-elfhacks-d_un.d_ptr-is-relative-on-non-glibc-systems.patch#L90.

Quoting:
d_un.d_ptr is relative on non glibc systems

elf(5) documents it this way, glibc diverts from this documentation

Change-Id: I815f88f127ef00c88ae827a8ad48df0d33c92467


[ROCm/ROCR-Runtime commit: a621bca303]
2024-08-19 11:02:29 -04:00
Julia Jiang d0e10ef592 SWDEV-478511 - Create deprecated memory management section for related APIs
Change-Id: I6d802f61fe787a423e2ef65e645c6395e715fd55


[ROCm/hip commit: 0facebc71d]
2024-08-16 16:45:38 -04:00
Julia Jiang 0facebc71d SWDEV-478511 - Create deprecated memory management section for related APIs
Change-Id: I6d802f61fe787a423e2ef65e645c6395e715fd55
2024-08-16 16:45:38 -04:00
Julia Jiang 7cfa620319 SWDEV-436608 - Un-deprecate hipHostAlloc()
Change-Id: Iad319e8acb13a293911bbd9242fc9ba52ebe7fbb


[ROCm/hip commit: 9f1d4625d2]
2024-08-16 16:37:44 -04:00
Julia Jiang 9f1d4625d2 SWDEV-436608 - Un-deprecate hipHostAlloc()
Change-Id: Iad319e8acb13a293911bbd9242fc9ba52ebe7fbb
2024-08-16 16:37:44 -04:00
kjayapra-amd 30609c2e65 SWDEV-465509 - Save the handle type during import function.
Change-Id: If069abb6cd474a7b071617757041402b53575414


[ROCm/clr commit: 8ddb023512]
2024-08-16 10:55:36 -04:00
kjayapra-amd 8ddb023512 SWDEV-465509 - Save the handle type during import function.
Change-Id: If069abb6cd474a7b071617757041402b53575414
2024-08-16 10:55:36 -04:00
Ioannis Assiouras 16aaab2ab3 SWDEV-470372 - Un-deprecate hipHostAlloc, comply with cuda and introduce hipHostAlloc flags
Change-Id: I0c6910306ff98d97e9f8a6ccf467be6189e1ca86


[ROCm/hipother commit: 335bb33f1b]
2024-08-16 06:33:28 -04:00
Ioannis Assiouras 335bb33f1b SWDEV-470372 - Un-deprecate hipHostAlloc, comply with cuda and introduce hipHostAlloc flags
Change-Id: I0c6910306ff98d97e9f8a6ccf467be6189e1ca86
2024-08-16 06:33:28 -04:00
Ioannis Assiouras 1110a2f345 SWDEV-470372 - Un-deprecate hipHostAlloc, comply with cuda and introduce hipHostAlloc flags
Change-Id: I8165342825dfe07b6e9edc492d0166d0a03be62d


[ROCm/clr commit: 1e4c60f286]
2024-08-15 18:25:22 -04:00
Ioannis Assiouras 1e4c60f286 SWDEV-470372 - Un-deprecate hipHostAlloc, comply with cuda and introduce hipHostAlloc flags
Change-Id: I8165342825dfe07b6e9edc492d0166d0a03be62d
2024-08-15 18:25:22 -04:00
Joseph Macaranas c7860b58f3 SWDEV-458516 - External CI: Pipeline case sensitivity fix
Change-Id: I6501cce7847b4f8bfaa435b143369362d2b8c249


[ROCm/hipother commit: 6222fa632d]
2024-08-15 17:25:21 -04:00
Joseph Macaranas 6222fa632d SWDEV-458516 - External CI: Pipeline case sensitivity fix
Change-Id: I6501cce7847b4f8bfaa435b143369362d2b8c249
2024-08-15 17:25:21 -04:00
Ioannis Assiouras 47ae5e353e SWDEV-478295 - Link with hiprtc-builtins for sample 23_cmake_hiprtc in static build
Change-Id: I9ccc1310ea2f38d8624103e198b6fc1077712345


[ROCm/hip-tests commit: e45cbdfaa1]
2024-08-15 16:37:38 -04:00
Ioannis Assiouras e45cbdfaa1 SWDEV-478295 - Link with hiprtc-builtins for sample 23_cmake_hiprtc in static build
Change-Id: I9ccc1310ea2f38d8624103e198b6fc1077712345
2024-08-15 16:37:38 -04:00
Giovanni Lenzi Baraldi 11526c0f7c ATT Agent fixes and improvements (#1011)
* Tidying ATT dispatch API. ATT Agent to be initialized with rest of profiler. Removing read_index-based wait.

* Formatting

* Adding some input validation

* Add perf test for agent

* Removing async

[ROCm/rocprofiler-sdk commit: fa1b9e67ab]
2024-08-15 13:57:13 -03:00
Giovanni Lenzi Baraldi fa1b9e67ab ATT Agent fixes and improvements (#1011)
* Tidying ATT dispatch API. ATT Agent to be initialized with rest of profiler. Removing read_index-based wait.

* Formatting

* Adding some input validation

* Add perf test for agent

* Removing async
2024-08-15 13:57:13 -03:00
Chris Freehill 1c6a4a55f1 rocrtst: change const arg to non-const
In rocrtst helper_funcs.h, a function argument that gets
written to was previously incorrectly marked as const.

Change-Id: If8cc6555ebfa974b9665d9d5b93de01bb45fde2c
2024-08-14 08:18:11 -05:00
Chris Freehill cca5b9a960 rocrtst: change const arg to non-const
In rocrtst helper_funcs.h, a function argument that gets
written to was previously incorrectly marked as const.

Change-Id: If8cc6555ebfa974b9665d9d5b93de01bb45fde2c


[ROCm/ROCR-Runtime commit: 1c6a4a55f1]
2024-08-14 08:18:11 -05:00
Rahul Manocha 4ea6eb80a1 SWDEV-454315 - Disable test section that segfaults on windows
Change-Id: Idaac99c433120d98646417318258bfb375d2f367


[ROCm/hip-tests commit: 6cf941c830]
2024-08-14 07:53:29 -04:00
Rahul Manocha 6cf941c830 SWDEV-454315 - Disable test section that segfaults on windows
Change-Id: Idaac99c433120d98646417318258bfb375d2f367
2024-08-14 07:53:29 -04:00
Ioannis Assiouras 3cc948278e SWDEV-449052 - Fix hipMemcpyParam2D when source or destination pitch is set to zero
When source or destination pitch is set to zero in hip_Memcpy2D struct
it should default to WidthInBytes + [src/dst]XInBytes

Change-Id: Id57b53cab40ba72ced231258da9356554c4868c3


[ROCm/clr commit: 7a1e818c82]
2024-08-14 04:46:41 -04:00
Ioannis Assiouras 7a1e818c82 SWDEV-449052 - Fix hipMemcpyParam2D when source or destination pitch is set to zero
When source or destination pitch is set to zero in hip_Memcpy2D struct
it should default to WidthInBytes + [src/dst]XInBytes

Change-Id: Id57b53cab40ba72ced231258da9356554c4868c3
2024-08-14 04:46:41 -04:00
Julia Jiang b449d583b1 SWDEV-447806 - fix for HIP RTC example re-uses kernel variable
Change-Id: I9a1d18868098225012d01515c60b7bcdbe7bc533


[ROCm/hip commit: ffa2f0634f]
2024-08-13 14:52:21 -04:00
Julia Jiang ffa2f0634f SWDEV-447806 - fix for HIP RTC example re-uses kernel variable
Change-Id: I9a1d18868098225012d01515c60b7bcdbe7bc533
2024-08-13 14:52:21 -04:00
Gopesh Bhardwaj ecdc81553c gobhardw/swdev 479013 (#1014)
* test pr for ROCm sdk tests

* SWDEV-479013 doc updates

[ROCm/rocprofiler-sdk commit: 5bec9f66b6]
2024-08-13 23:35:12 +05:30
Gopesh Bhardwaj 5bec9f66b6 gobhardw/swdev 479013 (#1014)
* test pr for ROCm sdk tests

* SWDEV-479013 doc updates
2024-08-13 23:35:12 +05:30
Vladana Stojiljkovic 3abef40e83 SWDEV-477711 - Add mappings for hipTexRefSetMaxAnisotropy and hipTexRefGetMaxAnisotropy
Change-Id: Ifab9ec542edf97c314d1fb47cd14461089902db4


[ROCm/hipother commit: 7b46a48be3]
2024-08-13 12:41:46 -04:00
Vladana Stojiljkovic 7b46a48be3 SWDEV-477711 - Add mappings for hipTexRefSetMaxAnisotropy and hipTexRefGetMaxAnisotropy
Change-Id: Ifab9ec542edf97c314d1fb47cd14461089902db4
2024-08-13 12:41:46 -04:00
Vladana Stojiljkovic c73afcae3a SWDEV-477711 - Add mapping for hipTexRefGetFlags
Change-Id: I008ab15256bde3786d59f2bda4b34a3336dc5edf


[ROCm/hipother commit: 58ec72277f]
2024-08-13 12:41:00 -04:00
Vladana Stojiljkovic 58ec72277f SWDEV-477711 - Add mapping for hipTexRefGetFlags
Change-Id: I008ab15256bde3786d59f2bda4b34a3336dc5edf
2024-08-13 12:41:00 -04:00
amd-jmacaran 7357714040 Enable external CI pipeline triggers
Change-Id: Ifcde2c489e5057b6bc37b02156b6232c299e4808


[ROCm/hipother commit: a44a75a56d]
2024-08-13 11:48:48 -04:00
amd-jmacaran a44a75a56d Enable external CI pipeline triggers
Change-Id: Ifcde2c489e5057b6bc37b02156b6232c299e4808
2024-08-13 11:48:48 -04:00
amd-jmacaran 5dac731f29 SWDEV-458516 - External CI: Align with branch naming convention.
Change-Id: Ie1d874742b804f02ceda68064fa54f5d59c092b7


[ROCm/clr commit: cd4ed0916b]
2024-08-13 11:47:11 -04:00
amd-jmacaran cd4ed0916b SWDEV-458516 - External CI: Align with branch naming convention.
Change-Id: Ie1d874742b804f02ceda68064fa54f5d59c092b7
2024-08-13 11:47:11 -04:00
amd-jmacaran 1ee63d0a15 SWDEV-458516 - External CI: Align with branch naming convention.
Change-Id: I3f1fb1e2c2d32a22a144c5f85d1e34a7c95b29a6


[ROCm/hip-tests commit: c75ed97b6b]
2024-08-13 11:04:47 -04:00