229 Коммитов

Автор 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
amilanov-amd 738bf16008 [hip-tests] Tag multigpu tests with Catch2 tags (#1315) 2025-11-14 13:00:30 +01:00
systems-assistant[bot] 7450910e53 SWDEV-548241 - Add missing destroy calls in graph tests (#520)
Co-authored-by: Vladana Stojiljkovic <Vladana.Stojiljkovic@amd.com>
2025-11-13 11:13:40 +01:00
systems-assistant[bot] 16334bc15d SWDEV-525244 - Additional graph validation test (#584)
* SWDEV-525244 - Additional graph validation test

* SWDEV-525244 - Change capture mode to relaxed

* SWDEV-525244 - Additional comments

---------

Co-authored-by: Vladana Stojiljkovic <Vladana.Stojiljkovic@amd.com>
2025-11-05 09:32:47 +01:00
marandje 811609c0e1 SWDEV-523137 - Fix and enable a few negative tests on NV (#1157) 2025-11-04 23:28:11 +01:00
systems-assistant[bot] 196086042d SWDEV-523137 - Enable and fix failing tests on NV (#602) 2025-10-24 12:41:54 +02:00
vstojilj bfedf63575 SWDEV-552537 - Fix nvidia build failures (#1125)
* SWDEV-552537 - Fix nvidia build failures

* Add string header to fix hip-tests

---------

Co-authored-by: Branislav Brzak <branislav.brzak@amd.com>
Co-authored-by: Danylo Lytovchenko <danylo.lytovchenko@amd.com>
2025-10-13 09:20:17 +02:00
Godavarthy Surya, Anusha d3cc2c7668 SWDEV-524745 - Part-III Add multi device support for hip graph (#814)
- Retrieve the list of devices linked to each branch using stream ID x.
- Identify the necessary streams for each device to facilitate graph execution.
- Create the necessary streams for each device to ensure successful graph execution.
- Implement support for launching a multi-device, single-branch graph.

Co-authored-by: Anusha GodavarthySurya <Anusha.GodavarthySurya@amd.com>
2025-10-10 10:27:27 +05:30
Ioannis Assiouras 9def133275 SWDEV-555798 - Added sync after graphLaunch for Unit_hipGetProcAddress_GraphAPIs tests (#1052) 2025-09-19 15:10:33 +01:00
Godavarthy Surya, Anusha ce560304a8 SWDEV-548417 - Fix Memleaks in Graph (#713)
Co-authored-by: Anusha GodavarthySurya <Anusha.GodavarthySurya@amd.com>
2025-09-19 17:39:36 +05:30
systems-assistant[bot] ae874b489d SWDEV-515530 - Re-enable passing tests (#592)
* SWDEV-515530 - Re-enable passing tests

* SWDEV-515530 - Revert back windows config file

* SWDEV-515530 - Fix new line

* SWDEV-515530 - Enable a few more tests

* SWDEV-515530 - Enable passing VMM tests

* SWDEV-515530 - Disable failing tests

* SWDEV-515530 - Fix and enable texture tests

* SWDEV-515530 - Minor fixes

* SWDEV-515530 - Disable one more test

---------

Co-authored-by: Marko Arandjelovic <Marko.Arandjelovic@amd.com>
2025-09-02 16:03:07 +02:00
Ioannis Assiouras 1017532916 SWDEV-546631 - Fix hipLaunchHostFunction in stream capture for windows (#654) 2025-08-28 07:51:50 +01: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
Assiouras, Ioannis 5283a114b2 SWDEV-549309 - Ensure that the kernel is issued to a stream that is ass… (#552)
* SWDEV-549309 - Ensure that the kernel is issued to a stream that is associated to the current device

* SWDEV-549309 - Ensure that the kernel is issued to a stream that is associated to the current device in atomic tests

* SWDEV-549309 - Added fix for Unit_hipMallocFromPoolAsync_Multidevice_Concurrent test

* SWDEV-549309 - Added fix for Unit_hipMemcpyPeerAsync_Positive_Default

* SWDEV-549309 - Added fix for Unit_hipStreamAttachMemAsync_Positive_AttachGlobal and Unit_hipGetProcAddress_GraphAPIs_AddMemsetMemcpyNodes

[ROCm/hip-tests commit: d21a95cea8]
2025-08-14 11:50:56 +05:30
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
Chaudhary, Jatin Jaikishan 6ca3502d42 SWDEV-470698 - remove duplicate tests (#316)
Change-Id: Icedf0bd442f9a983fc590b7fde1a0e888472b65a

[ROCm/hip-tests commit: 409b47fec6]
2025-06-23 19:52:44 +05:30
Assiouras, Ioannis fdfe1eaf68 SWDEV-508965 - Remove references to HIP_MEMSET_NODE_PARAMS struct (#195)
[ROCm/hip-tests commit: d1e6f076e2]
2025-05-22 13:08:36 +05:30
Assiouras, Ioannis 103dcd35af SWDEV-533235 - Fix reference counting in Unit_hipGraphUserObj_ClonedGraph (#189)
[ROCm/hip-tests commit: 99f0083a64]
2025-05-21 09:31:39 -07:00
Arandjelovic, Marko 5ad13665eb SWDEV-525066 - Enable hipDeviceGetGraphMemAttribute functional tests (#71)
[ROCm/hip-tests commit: 974d47ad8d]
2025-05-14 16:06:23 +02:00
Gollamandala, Srinivasarao 105f388d54 SWDEV-514396-[catch2][dtest]-Delay the hipUserObjectRelease (#68)
[ROCm/hip-tests commit: d9cb3c7fb1]
2025-05-13 22:16:15 +05:30
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
Brzak, Branislav f63e3e9c0a SWDEV-515519 - Synchronize after mem pool trim (#89)
[ROCm/hip-tests commit: 3f30d6d8ea]
2025-04-30 16:09:15 +02:00
Jaydeep Patel aeae2fcbb1 SWDEV-457316 - Fix tests to use graph's reserve memory instead of hipMemGetInfo.
Change-Id: I839aaec3f502ed8686651fdc05b71c0da3e5dea2


[ROCm/hip-tests commit: b42adb24b4]
2025-03-05 00:48:15 -05:00
Aidan Belton-Schure 007df6e993 SWDEV-491303 - Add_concurrent_stream_error_checking
Change-Id: I70268bfa2b97994e0906ded6bae9885ec540292e


[ROCm/hip-tests commit: 5007b3f5e4]
2025-03-03 04:21:40 -05:00
Pengda Xie 272659ff99 SWDEV-514841 - Remove invalid stream tests which leads to segfault
Change-Id: I230c4ccc0d2f591cbf2cd0e019f910094f4f3f26


[ROCm/hip-tests commit: b46d6abdcb]
2025-02-21 12:08:36 +00:00
Anavena Venkatesh 0ca7f8a65d SWDEV-491363 - [catch2][dtest] Added test cases for missed graph APIs
Change-Id: Ic740c52992b8d0a325f09b1db0adf599561e1a1d


[ROCm/hip-tests commit: e9177bd83b]
2025-01-27 10:45:37 -05:00
SrinivasaRao 8ca1e6634a SWDEV-493282-[catch2][dtest]-Negative Tests for the hipGraphBatchMemOpNodeSetParams API
Change-Id: I4dac4608b054a7c93c2fb94b047f5e0b3f96f74d


[ROCm/hip-tests commit: 01ad9df4b6]
2025-01-22 12:27:33 -05:00
SrinivasaRao bdcfdb57d4 SWDEV-493280-[catch2][dtest]-Negative Tests for the hipGraphAddBatchMemOpNode API
Change-Id: I30e4a6ed8d08247a7edc5fb6b51c5297b22273de


[ROCm/hip-tests commit: ed59886628]
2025-01-22 09:06:54 -05:00
SrinivasaRao 5fcb433508 SWDEV-493287-[catch2][dtest] Functional tests for the hipGraphNodeFindInClone api
Change-Id: I6fa267c942f59985a2d90d5365ad49d93ef30a89


[ROCm/hip-tests commit: 5d5614929c]
2025-01-21 22:59:51 -05:00
SrinivasaRao fa51cf8b3e SWDEV-493289-[catch2][dtest]-Negative Tests for the hipGraphExecBatchMemOpNodeSetParams API
Change-Id: I52fde7f8bf7ab8275d8484aa52685830689df174


[ROCm/hip-tests commit: 87d771b155]
2025-01-21 13:03:41 -05:00
Rambabu Swargam f0e8bcc19b SWDEV-491363 - [catch2][dtest] Add and Enable tests for Graph APIs
Details :
1) Add tests for hipDrvGraphExecMemsetNodeSetParams
2) Enable commented tests for hipDrvGraphMemcpyNodeSetParams

Change-Id: Ia4771e1dea022b5f4316b66c0bd585f0f941ab77


[ROCm/hip-tests commit: c90d83366f]
2025-01-21 12:59:03 -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
Rambabu Swargam 0c242e09cb SWDEV-493285 - [catch2][dtest] Additional testcases for hipGraphInstantiateWithFlags
Change-Id: I5c5261cb908cf4dfa66f4e36312da6befe9fabc0


[ROCm/hip-tests commit: 95167b9d96]
2025-01-13 13:48:39 -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
Rahul Manocha 05e52df05c SWDEV-483107,SWDEV-492076,SWDEV-491371,SWDEV-484940 - hipStreamBeginCaptureToGraph catch exception fix
1) Catch Section should not be used inside host thread call.

Change-Id: I52c1bb80d6f92034dfbe2484d928e66eacf67d4c


[ROCm/hip-tests commit: decf563391]
2024-12-09 12:07:26 -05:00
Jaydeep Patel bb285f0d43 SWDEV-488033 - Add dependency between memcpy node for child graph.
Since 29cc678d8d H2D can't be synced always so it's good to have dependency set.

Change-Id: I7d757a9b6afd3cf7064dc3b7014677cdf754125a


[ROCm/hip-tests commit: 8515ac9b2f]
2024-12-04 10:06:52 -05:00
Rahul Manocha d0d4027db9 SWDEV-479575 - Child Graph dependencies fixed
Change-Id: Iaf2d8f0ae86e6a701d10f5867b742036392e5a43


[ROCm/hip-tests commit: ed5b962e62]
2024-11-19 23:27:30 -05:00
SrinivasaRao 2f2e5fb958 SWDEV-475134-[catch2][dtest] Functional graph tests for hipUserObject
Change-Id: If4dbe6a3cc6a929e2e4a9521f05dfa2836f0855b


[ROCm/hip-tests commit: 68cc5bdd6e]
2024-11-18 04:58:40 -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
Marko Arandjelovic 3481fe67d1 SWDEV-454656 Correct test setup, Unit_hipGraphExecMemcpyNodeSetParams_Positive_Basic
Pitch cannot be lower then width

Change-Id: I929672fad4ca62d21ffd7bfec8bbc837e7bbcee2


[ROCm/hip-tests commit: 6867852a89]
2024-09-17 11:57:29 -04:00
Marko Arandjelovic 5cc4ae3555 SWDEV-454659 - Correct test setup, Unit_hipGraphExecMemcpyNodeSetParams_Negative_Parameters
Pitch cannot be lower then width

Change-Id: Ib42f036f1158b500ce8892643178469a2ec7dc88


[ROCm/hip-tests commit: 27be56f329]
2024-09-13 10:48:14 -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
Branislav Brzak f9bb3c5f74 SWDEV-441600 - Add hipGraphMemFreeNodeGetParams tests
Change-Id: I46cc12e9940cf647e3c3dbe4ce87957eb8aa4e33


[ROCm/hip-tests commit: 2b20d3a9af]
2024-08-01 14:26:32 -04:00
Marko Arandjelovic fb7d2b3d06 SWDEV-454663 Initialize graph node in test setup
Change-Id: Iad44a2d3276e54c7a7d7e58af13e41ff305aa122


[ROCm/hip-tests commit: be2ee3b52d]
2024-07-31 14:45:08 -04:00
Jatin Chaudhary b1f4db2de8 SWDEV-460387 - Use traditional malloc instead of alloc guard
The LinearGuard does not seem to play well with the catch macros.
The entry to device pointers seem to be lost from memory map.

Change-Id: Ib8549052f18bcc847dea25cf268e2bcb59e24b25


[ROCm/hip-tests commit: 8ed0c39549]
2024-07-30 14:34:15 -04:00
taosang2 2a9aa0a14c SWDEV-469331 - Add data verifing after stream sync.
Add data verifing after hipStreamSynchronize() call.
Enable the following in Linux
  Unit_hipStreamBeginCaptureToGraph_CaptureDepGraph
  Unit_hipStreamBeginCaptureToGraph_IndepGraphsThreads
Remove REQUIRE() in data verifying because it generates
too many assertions and makes "-s" very slow

Change-Id: I0fbcdaa9ffb9633d861312c221ac12df1772c6e5


[ROCm/hip-tests commit: 6edae64a1e]
2024-07-30 11:50:16 -04:00
Rahul Manocha 2811e8e349 [SWDEV-454655] - Fix for ExecMempcyNodeSetParams1D Negative testcase
Change-Id: Id24e27fee7a519edeed28bd937fb7ca31195de97


[ROCm/hip-tests commit: d391820895]
2024-07-25 14:37:59 -04:00
Vladana Stojiljkovic 5d51ecfd8b SWDEV-456699 - Fix Unit_hipDrvGraphAddMemcpyNode_Negative_Parameters test case
Change-Id: Ia27362115bbf0e96a7eac5a5ae21c2d504419bc8


[ROCm/hip-tests commit: a3bc534a5f]
2024-07-02 05:03:44 -04:00