63 Коммитов

Автор SHA1 Сообщение Дата
Rahul Manocha af5c453551 hip-tests: Enable standalone test targets with cmake (#2189)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
2025-12-09 11:07:42 -08:00
Jatin Chaudhary 8e1aee62d0 make hip-tests compileable with TheRock (#1624)
## Motivation

Resolved: SWDEV-566226

The current implementation of agents inside of rocprof-systems keeps just the minimal necessary set of information required for populating the `info_agent` table inside of rocpd database. There is a sufficient amount of data that is being left out from database, so this change should fix that and store the additional agent information as an `extdata` row inside of `info_agent` table.

## Technical Details

This PR introduces additional filed inside of `agent` structure inside which is representing the JSON formatted string of all the additional information we can acquire about particular agent. This data is processed and added during the initial fetching of agents, and afterwards pushed inside of the database.

---------

Co-authored-by: David Galiffi <David.Galiffi@amd.com>

* SWDEV-557412 - Incorporate proper chunk offset when remapping virtual memory (#1848)

* SWDEV-557412 - Incorporate proper offset when remapping virtual memory

* Fix condition to check if VMHeap allocation address matches a chunk address

* Move offset calculation outside if/else block

---------

Co-authored-by: JeniferC99 <150404595+JeniferC99@users.noreply.github.com>

* SWDEV-567852 - Clean-up hip::init() (#1948)

* SWDEV-559267 - Use CLPrint to DevLogPrintf with Log Level - detail debug. (#1160)

* SWDEV-548892 - Stop using ocml isinf wrapper (#1854)

* SWDEV-562708 - change default maximum SVM size to 256GB (#1731)

* SWDEV-503089 - Fix and enable disabled HIP tests from math group (#1319)

* SWDEV-503089 - Fix and enable disabled HIP tests from math group

* SWDEV-503089 - Move single precision reduced run to a common function

* SWDEV-548892 - Stop using ockl steadyctr function (#1882)

Directly use the builtin

* Implement PTL support (#1957)

* Implement PTL support

Signed-off-by: adapryor <Adam.pryor@amd.com>
(cherry picked from commit 45bc31292e7940a3b8fca044ef7df22047b95733)

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

---------

Signed-off-by: adapryor <Adam.pryor@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>

* SWDEV-558080 - Add recommended granularity (#1176)

* Add recommended granularity

* Improve granularity testing

* Update based on feedback

* Fix and enable VMM tests on cuda (#1855)

* Fix and enable VMM tests on cuda

* Minor syntax fixes

---------

Co-authored-by: Rahul Manocha <rmanocha@amd.com>

* [rocprofiler-systems] Add support for ompt_callback_thread_begin (#1681)

* Add thread_begin callback

* Make OMPT callbacks that are instant have start_ts = end_ts

* SWDEV-567514: Remove default stream wait (#1977)

- when virtual map command is called

- can create deadlock

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>

* Fix flaky test Unit_hipStreamAddCallback_StrmSyncTiming (#2022)

* Review comments

* skip the 3 failing tests to merge hip-tests rocm-systems PR

---------

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
Signed-off-by: adapryor <Adam.pryor@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Co-authored-by: GunaShekar <agunashe@amd.com>
Co-authored-by: agunashe <ajay.gunashekar@amd.com>
Co-authored-by: Ethan Trinh <Ethan.Trinh@amd.com>
Co-authored-by: JeniferC99 <150404595+JeniferC99@users.noreply.github.com>
Co-authored-by: Victor Zhang <111778801+victzhan@users.noreply.github.com>
Co-authored-by: German Andryeyev <56892148+gandryey@users.noreply.github.com>
Co-authored-by: usrihari123 <srihari.u@amd.com>
Co-authored-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
Co-authored-by: anujshuk-amd <anujshuk@amd.com>
Co-authored-by: itrowbri <Ian.Trowbridge@amd.com>
Co-authored-by: marantic-amd <marantic@amd.com>
Co-authored-by: David Galiffi <David.Galiffi@amd.com>
Co-authored-by: cadolphe-amd <chris.adolphe@amd.com>
Co-authored-by: Karthik Jayaprakash <54370791+kjayapra-amd@users.noreply.github.com>
Co-authored-by: Matt Arsenault <Matthew.Arsenault@amd.com>
Co-authored-by: Todd tiantuo Li <88386084+lttamd@users.noreply.github.com>
Co-authored-by: amilanov-amd <Aleksandar.Milanov@amd.com>
Co-authored-by: Adam Pryor <61172547+adam360x@users.noreply.github.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: AidanBeltonS <abeltons@amd.com>
Co-authored-by: Rahul Manocha <153310294+manocharahul@users.noreply.github.com>
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
Co-authored-by: Kian Cossettini <Kian.Cossettini@amd.com>
Co-authored-by: Shadi Dashmiz <94885391+shadidashmiz@users.noreply.github.com>
Co-authored-by: Ioannis Assiouras <38722728+iassiour@users.noreply.github.com>
Co-authored-by: Ajay GunaShekar <86270081+agunashe@users.noreply.github.com>
2025-12-03 08:53:17 -08:00
vstojilj 259010f2d5 SWDEV-491253 - Create stream capture test for kernel APIs (#1189) 2025-11-27 17:40:11 +01:00
amilanov-amd 738bf16008 [hip-tests] Tag multigpu tests with Catch2 tags (#1315) 2025-11-14 13:00:30 +01:00
systems-assistant[bot] 720a5bcf9a SWDEV-547526 - Add missing free calls (#531)
Co-authored-by: Vladana Stojiljkovic <Vladana.Stojiljkovic@amd.com>
2025-11-13 11:16:41 +01:00
systems-assistant[bot] f99baf5481 SWDEV-519340 - Enable and fix hipModuleLoad test (#607) 2025-11-12 09:28:49 +01:00
vstojilj 18d4fc460b SWDEV-541362 - Fix error code mismatch in test (#1377) 2025-11-05 09:31:30 +01:00
systems-assistant[bot] 196086042d SWDEV-523137 - Enable and fix failing tests on NV (#602) 2025-10-24 12:41:54 +02:00
systems-assistant[bot] 9021b43cd1 SWDEV-546347-Added tests for Module Management APIs (#539)
* SWDEV-546347-Added tests for hipModuleGetFunctionCount

* SWDEV-546347-Added tests for hipModuleLoadFatBinary

* SWDEV-546347-Added 3 more tests for hipModuleLoadFatBinary

* SWDEV-546347-Updated hipModuleLoadFatBinary.cc

* SWDEV-546347-Added test for hipModuleGetLoadingMode API

* SWDEV-546347-Clang-format issues

* SWDEV-546347-Removed tests of hipModuleGetLoadingMode API

* SWDEV-546347 - Updated CMake file

* SWDEV-546347-Addressed review comments

* SWDEV-546347-Updated CmakeLists

* SWDEV-546347-Addressed review comments

* SWDEV-546347-Addressed Review comments

---------

Co-authored-by: SrinivasRao Gollamandala <Srinivasarao.Gollamandala@amd.com>
Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com>
Co-authored-by: jainprad <92369414+jainprad@users.noreply.github.com>
Co-authored-by: Rambabu Swargam <rambabu.swargam@amd.com>
2025-10-10 15:29:20 +05:30
systems-assistant[bot] 774cb67314 SWDEV-489106 - Hip Tests for Linker APIs (#578)
1) Test linking of SPIRV bundled and unbundled code object in runtime
2) Negative Param test for hipLinkAddData API

Change-Id: I7c8167f6d862f5b23f9532f69b6da4fc50e96dcd

Co-authored-by: Rahul Manocha <rmanocha@amd.com>
2025-10-06 08:34:33 -07:00
Ajay GunaShekar 81775169cc SWDEV-1 - hipcc args: --rocm-path to --hip-path in tests (#998) 2025-09-26 15:35:20 -07: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
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] e5c155d3f3 SWDEV-547453 - Resolve memory leaks in module tests (#535) 2025-09-11 01:16:21 +02:00
systems-assistant[bot] 0a1a419191 SWDEV-534394 - Add test for kernel launch stream on different device (#565)
Co-authored-by: Pengda Xie <pengda.xie@amd.com>
2025-08-26 23:24:57 -07:00
Danylo Lytovchenko 2ff2316227 Adjust clang format to the new versions, revert broken macro layout (#714) 2025-08-22 17:23:22 +02:00
Danylo Lytovchenko f7338717ae SWDEV-470698 - fix formatting, add format check workflow (#657) 2025-08-20 19:58:06 +05:30
Betigeri, Sourabh 682bef7754 SWDEV-546579 - Change in no params kernel behavior (#501)
SWDEV-546579 - Modify test to pass size 0

[ROCm/hip-tests commit: 7224ce9378]
2025-08-02 22:12:26 -07:00
Deshpande, Chinmay Diwakar 1ada481219 SWDEV-532676 - Fix hipcc flags for catch tests (#191)
Co-authored-by: Chinmay Deshpande <chdeshpa@amd.com>

[ROCm/hip-tests commit: 1c366ee950]
2025-06-24 21:42:11 -07:00
Manocha, Rahul 91a6727ea6 SWDEV-538600 - Fix error code checks in some tests (#305)
[ROCm/hip-tests commit: b215381bbe]
2025-06-19 21:11:54 +05:30
Gollamandala, Srinivasarao f62fdb7380 SWDEV-526022-[catch2][dtest]-Functional and Negative tests for hipLaunchKernelExC, hipLaunchKernelEx and hipDrvLaunchKernelEx APIs (#156)
* Fntl tests of hipLaunchKernelExC, hipLaunchKernelEx and hipDrvLaunchKernelEx APIs

* Fixed the test failures on windows

[ROCm/hip-tests commit: 60b3aae3c0]
2025-06-03 14:37:25 +05:30
Belton-Schure, Aidan c8a720088f SWDEV-527851 SWDEV-527890 SWDEV-529456 - Update vector types test (#172)
* Update vector types test

* update MakeVector to be host+device function

* Add regression testing

* Add tests for subscript operator

Change-Id: Ifac85aaa6cd6d6bd96c4239414e38f284e2a2d54

* Fix unused vars

Change-Id: I6bc2da76dbf962db5d75ea5a84bf16b66f8ba6ba

---------

Co-authored-by: Aidan Belton <abeltons@amd.com>

[ROCm/hip-tests commit: ef6c95f6ce]
2025-05-29 21:38:20 +05:30
Manocha, Rahul 98c34321f1 SWDEV-460098 - Fix error codes for hipLaunchKernel APIs to match cuda (#206)
Co-authored-by: Branislav Brzak <branislav.brzak@amd.com>

[ROCm/hip-tests commit: ea8a7e1e54]
2025-05-29 13:20:49 +05:30
Dittakavi, Satyanvesh f3da3d39fe SWDEV-508973 - Fix the catch tests failures due to change in kernel validation error codes to match CUDA (#198)
[ROCm/hip-tests commit: 1be3aa8283]
2025-05-26 18:41:58 +05:30
Sang, Tao f0dee29292 SWDEV-508863 - Add generic target in compressed fatbin test (#28)
Change-Id: Iae148c3c998b18247624938512918dbb31bc462d

[ROCm/hip-tests commit: 5a33b33ec8]
2025-05-13 09:34:30 -04:00
Xie, Pengda dd6d3a6cd3 SWDEV-514841 - Remove invalid stream tests on AMD platform
[ROCm/hip-tests commit: 0c1a7bf155]
2025-05-08 16:25:23 -07:00
taosang2 53ddaca565 SWDEV-447973 - Add generic target codeobj test
Add simple tests to verify generic target code
objects.

Change-Id: Iae148c3c938b18247624938512918dbb3cbc462e


[ROCm/hip-tests commit: f581518103]
2025-03-10 17:45:14 -04:00
Jaydeep Patel 1eb66249d6 SWDEV-511890 - Use max grid dim from device prop like block dim in checking for corner cases.
Change-Id: I557c70186b4a695b7c151952bf8cfd8dae54eb20


[ROCm/hip-tests commit: c0fc5426e5]
2025-03-10 00:55:15 -04:00
Marko Arandjelovic 5fa5c5d886 SWDEV-504084 - Corrected CooperativeKernelMultipleDevice testcases
Module and stream should be created on the same device, while hipModuleGetFunction can be called from any device.

Change-Id: I4a424f9631678684292e40e05ffbaf3d887aea55


[ROCm/hip-tests commit: 293ff3a025]
2025-03-04 13:08:30 -05:00
Jaydeep Patel 9f86a5231f SWDEV-465220 - Update Kernel Launch negative cases to match with current CLR code.
Change-Id: I891544cdfdc1092467454189ea348f986fc12818


[ROCm/hip-tests commit: 192528c7f2]
2025-03-03 10:48:18 -05:00
Marko Arandjelovic 2be5ef4dfb SWDEV-504084 - Added multidevice testcases for hipModuleGetFunction/Global
Change-Id: I53d6d63f93c800efa2ec0ff2be5ae593756549e0


[ROCm/hip-tests commit: cddb658314]
2025-02-13 12:52:35 -05:00
Ajay d0d2204a53 SWDEV-465215 - fixes for hipFuncGetAttribute tests
Fixes SWDEV-465215, SWDEV-465213, SWDEV-465212

Change-Id: I08b114bf647366abcf900d6b2a17f77ca608fc46


[ROCm/hip-tests commit: 6059eaa7c1]
2025-01-24 16:08:09 -05:00
Rambabu Swargam 41cf067716 SWDEV-467854 - [catch2][dtest] Functional testcases for hipGetProcAddress API - Part 2
Change-Id: I4619f8e69b75d1193e98adce2707bf7876b1ba59


[ROCm/hip-tests commit: 7fb9301d6b]
2025-01-21 12:53:28 -05:00
Marko Arandjelovic fe9860bd47 SWDEV-485763 - Fix memory leaks in various unit tests
Fix memory leaks by adding missing destroy calls for
events, streams, and graphs at the end of tests.

Ensure that every test case executes destroy calls,
regardless of whether it passes or fails.

Change-Id: I814e35c528d90ed2abb34d77377f1a7fd3f1f11c


[ROCm/hip-tests commit: 9cffda4ebb]
2024-12-10 10:25:08 -05:00
taosang2 225cedd44c SWDEV-459479 - Add compressed codeobj test
Add simple tests to verify compressed code
objects.

Change-Id: Iae148c3c928e18247624937512918dbb3cbc462d


[ROCm/hip-tests commit: 6e1c4c2655]
2024-11-26 12:14:15 -05:00
Rahul Manocha 24eea67593 SWDEV-486443 - Skip managed memory test for windows
Change-Id: Id2d99c80e73979173ff7558bedafa723a1eec813


[ROCm/hip-tests commit: dcc3dd7029]
2024-11-19 23:29:17 -05:00
Michael Xie b3dcbdaaf6 SWDEV-492356 - Install hip-test artifacts into a single folder
Change-Id: Ib2a2c021e2546c0233050f11d3dc84f2ea4ff03d


[ROCm/hip-tests commit: 72450ae7a1]
2024-11-13 18:22:32 -05:00
Jaydeep Patel 83b098f3e0 SWDEV-482400 - Use correct way to add delay/wait on GPU.
Change-Id: Id1610227c97cc43d289f8c3a04c0c53707ccef48


[ROCm/hip-tests commit: 23eead4e7b]
2024-11-04 12:07:52 -05:00
Jaydeep Patel a2031a7006 SWDEV-481514, SWDEV-482400 - Use correct way to add delay/wait on GPU.
Change-Id: I163896333bf741053173d636a499ed6406e77a09


[ROCm/hip-tests commit: 87c8a0417c]
2024-10-23 14:39:35 -04:00
Marko Arandjelovic 0f5eb7e1f1 SWDEV-465204 - Fix Unit_hipModuleLaunchKernel_Negative_Parameters
Change-Id: I754d1835366f131f44d56da05ac24bc152cbfa47


[ROCm/hip-tests commit: ad5b55a2c4]
2024-09-13 10:56:33 -04:00
Marko Arandjelovic 5621df00ef SWDEV-465205 - Fix Unit_hipModuleGetTexRef_Positive_Basic
Change-Id: I221f21b322ec6053edb4b4f229219865fb9e9974


[ROCm/hip-tests commit: d3f42460e8]
2024-08-26 13:41:57 -04:00
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
Rakesh Roy 28cd7da1dc SWDEV-472723 - Correct file format
- Modify line ending to LF

Change-Id: I2bc840070327b204e2abb118276e2d905c29d096


[ROCm/hip-tests commit: 3bec5e988b]
2024-08-05 19:26:31 +05:30
Rambabu Swargam 5a3c71aaea SWDEV-467854 - [catch2][dtest] Functional testcases for hipGetProcAddress API - Part 1
Change-Id: I1da8b0d32f5ae49602b9ff062dc888cc6227b88f


[ROCm/hip-tests commit: 6c35a8cb95]
2024-07-31 12:06:23 -04:00
Rambabu Swargam ac0795fe28 SWDEV-433563 - [catch2][dtest] Functional testcases for hipGetFuncBySymbol API
Change-Id: Ic1bcfe35d124da990e6f1868475ba2ed1752b1d5


[ROCm/hip-tests commit: 73ccc66ca2]
2024-05-06 06:56:41 -04:00
Anusha GodavarthySurya 86f5c107fb SWDEV-448562 - [catch2][dtest] Basic functional and negative testcases for hipHccModuleLaunchKernel API
Change-Id: I77a7101915a6e2c431508edbd997e714f85a7ac4


[ROCm/hip-tests commit: 27d173286c]
2024-05-06 06:53:23 -04:00
Marko Arandjelovic d00346db7b SWDEV-452296 - Unit_hipExtModuleLaunchKernel_Positive_Basic removed
- No guarantees it will always succeed,
   could be a little early or late due to various reasons.

Change-Id: Id4c45555f9f5e05df8fdf0ad39da4c33ac16fcb9


[ROCm/hip-tests commit: ca5e061bf6]
2024-04-18 03:27:54 -04:00
Jaydeep Patel c6bf27e246 SWDEV-453487 - Check if image is supported for hipModuleGetTexRef.
Change-Id: I7eadf6997f8f8363e449c590763e0c20b5b26ff7


[ROCm/hip-tests commit: 821d66bd52]
2024-04-17 11:50:27 -04:00
Satyanvesh Dittakavi c52ea5a129 SWDEV-444021 - Add unit test for hipGetFuncBySymbol
Change-Id: Ie349ce7a8a8470a3ffff21d62f62c19d6e56ad0f


[ROCm/hip-tests commit: bd8fe4133b]
2024-04-15 13:22:22 -04:00
Branislav Brzak 35c7d3e1c6 SWDEV-448163 - Fix Doxygen warnings
Change-Id: If72e312461a72920b6a482009c9aef4cf92f2e1b


[ROCm/hip-tests commit: 6c23e25c86]
2024-03-25 05:18:34 -04:00