Commit Graph

106 Commits

Author SHA1 Message Date
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
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
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 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
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
Branislav Brzak f9bb3c5f74 SWDEV-441600 - Add hipGraphMemFreeNodeGetParams tests
Change-Id: I46cc12e9940cf647e3c3dbe4ce87957eb8aa4e33


[ROCm/hip-tests commit: 2b20d3a9af]
2024-08-01 14:26:32 -04:00
Rupam Chetia 1fcc33f64e SWDEV-441352 - [catch2][dtest] Added test for hipStreamBeginCaptureToGraph()
Change-Id: I026c34b2c3ff7494787a3e4fc7fb82973893b224


[ROCm/hip-tests commit: 936ec35b7f]
2024-05-14 23:51:10 -04:00
Rahul Manocha 83bc874993 SWDEV-421025 - Catch Tests for Graph Instantiate With Params
Change-Id: I2f2387e3c00807cad5a4a807e289aecc45368d8c


[ROCm/hip-tests commit: 7279e09b73]
2024-03-14 14:30:59 -04:00
Rakesh Roy 8fc1292bc2 SWDEV-1 - Merge github PRs to amd-staging
Change-Id: I2944a63ddc2eec8dc1403d9790ffffbaec343385


[ROCm/hip-tests commit: 57bc68acb1]
2024-03-06 00:12:20 +05:30
Nives Vukovic 60a36b5384 EXSWHTEC-383 - Implement tests for hipGraphAddNode API #456
Change-Id: I91762d23c4a05acc68463402e76cee4e26d27b57


[ROCm/hip-tests commit: 1e15bfca23]
2024-02-27 22:27:07 +05:30
Nives Vukovic 74299ca09d EXSWHTEC-374 - Implement tests for Graph device memory APIs #452
Change-Id: Ic82e3cda60296ec7b2acb9b5755c51ccbdb85c8d


[ROCm/hip-tests commit: 27eeaa29a7]
2024-02-27 16:54:09 +05:30
Nives Vukovic ad4d04fa88 EXSWHTEC-371 - Implement tests for the hipDrvGraphAddMemsetNode API #447
Change-Id: I981e14f34b008054d46e61ebae0099792df446b1


[ROCm/hip-tests commit: 63c93f95a8]
2024-02-27 12:30:54 +05:30
Nives Vukovic f44575fb94 EXSWHTEC-370 - Implement tests for the hipDrvGraph*MemcpyNode APIs #446
Change-Id: I956dc06157324e9d6971348a70b600c4a9105538


[ROCm/hip-tests commit: 6f9f5c07fe]
2024-02-27 12:29:28 +05:30
Mirza Halilčević 4194470cd6 EXSWHTEC-217 - Implement new and update existing tests for the hipGraph*MemcpyNode family of APIs #48
Change-Id: Iae7ac9c855ba6e3288257e99e49f8b16cebb1bac


[ROCm/hip-tests commit: cefbaed5cf]
2024-02-19 22:58:36 +05:30
Mirza Halilčević 6931cb5bfd EXSWHTEC-189 - Implement new and update existing tests for the hipGraph*MemcpyNode1D family of APIs #14
Change-Id: I0f5e936fee6912ea24cc80c1013cf38ed41ff851


[ROCm/hip-tests commit: efddf09082]
2024-02-19 22:36:19 +05:30
Nives Vukovic f434246982 EXSWHTEC-340 - Implement unit tests for MemFree Graph Node APIs (#424)
Change-Id: I3e43144bdbeee94aa5672668d7fea48b039e5001


[ROCm/hip-tests commit: 3831c582d2]
2024-02-15 19:41:24 +05:30
Nives Vukovic 6e5ef40db9 EXSWHTEC-339 - Implement unit tests for MemAlloc Graph Node APIs (#423)
Change-Id: I6fa905982fc5a65bedfb3242ce18590e2ac813c2


[ROCm/hip-tests commit: 37f45585d2]
2024-02-15 19:41:24 +05:30
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
Ajay 3f986eceb2 SWDEV-441112 - fix hip-tests catch build on nvidia platform
hip/hip_runtime.h path was not used correctly in some tests

Change-Id: I1a3f5fba352273ce366404f398bb5c2f7d6f283f


[ROCm/hip-tests commit: 1d9aadbf92]
2024-01-17 11:34:53 -05:00
Nives Vukovic 639ba1e5f3 EXSWHTEC-172 - Hip graph launching and execution tests #36
Change-Id: I2cfadf6335a582f593191860d5084cb79fa411b3


[ROCm/hip-tests commit: 133521b22f]
2023-12-20 10:22:01 +00:00
Nives Vukovic 8c4b2675cc EXSWHTEC-173 - Implement tests for Graph Node dependencies APIs (#50)
Recreation of github PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/50

Change-Id: I65707d9d0bfa12c08d82779c1402215f22d7815b


[ROCm/hip-tests commit: 91ee1399df]
2023-12-08 10:28:47 -05:00
mbhiutra 350b05a9e3 SWDEV-306122 - [catch2][dtest] Added test for hipGraphMemAllocNodeGetParams, hipGraphMemFreeNodeGetParams APIs
Change-Id: I0b68b6d26e91911acb8c14bd95bb62d6d9688ef4


[ROCm/hip-tests commit: 1ef4b7f4ea]
2023-10-12 10:16:52 -04:00
mbhiutra d8a6f2e16e SWDEV-415965 - [catch2][dtest] Added test for Optimize HIPGraph Performance
Change-Id: I46b1f1d5bea884d6cf335f7e4e09cb453f20a3fe


[ROCm/hip-tests commit: 9a802f36ed]
2023-10-10 00:11:46 -04:00
ROCm CI Service Account 0861ca0d21 SWDEV-396687 - [catch2][dtest] mixing manual node adding in combination with Begin/End capture based on hipGraph apis (#326)
Change-Id: Ife7de38956274895d2370b7c9032cf17eef287bc

[ROCm/hip-tests commit: b2041d42d8]
2023-08-14 20:59:59 +05:30
ROCm CI Service Account e93c1dd330 SWDEV-377322- [catch2][dtest] Added functional tests for the API hipGraphAddKernelNode (#344)
Change-Id: I693402be766f9cdc9369a92dc1fa5196ffd4d9b7

[ROCm/hip-tests commit: 8fe180bfdb]
2023-07-08 20:54:08 +05:30
Jatin Chaudhary 362da9a9f1 SWDEV-408621 - Fix windows CI breakage (#343)
Change-Id: I8e7f8b614cee917214c3eec0023fe1c4c68d991a

[ROCm/hip-tests commit: fe9515a99a]
2023-07-04 10:49:19 +05:30
ROCm CI Service Account 56ed440ee5 SWDEV-379359 - [catch2][dtest] hipGraphKernelNodeSetAttribute API test (#325)
Change-Id: Iff63f523301031fc3f01b84475b9ee3c0a5bb236

[ROCm/hip-tests commit: 961435236f]
2023-06-29 08:59:20 +05:30
ROCm CI Service Account 2c456ea6b7 SWDEV-367877 - add test to detect graph topology (#314)
- detect cycle and return error
- check whether cycle is resolved by removing edge
- remove egde from graph check for cycle and correct operation

Change-Id: I8fdab97c8fab6a66b252944f3db04d008bc68aaa

[ROCm/hip-tests commit: c24c6674ae]
2023-06-29 08:57:20 +05:30
ROCm CI Service Account 05426bc22f SWDEV-379359 - [catch2][dtest] hipGraphKernelNodeGetAttribute API test (#246)
Change-Id: Ief701260ec1031019986f6afe87b43777830e5be

[ROCm/hip-tests commit: 1b4f3bbc99]
2023-06-21 15:57:52 +05:30
ROCm CI Service Account e42f621831 SWDEV-368280 - Add Unit_hipStreamCaptureExtModuleLaunchKernel (#105)
For stream capture test of hipExtModuleLaunchKernel.
SWDEV-372824 - Add Unit_hipStreamCaptureRtc
For stream capture test based on RTC

Change-Id: I96ef1395f75189ad751ca637f5c3273d280e849a

[ROCm/hip-tests commit: fd758200e5]
2023-06-21 15:56:36 +05:30
Mirza Halilčević 4b9ecff000 EXSWHTEC-194 - Implement tests for User Object Graph APIs (#30)
- Tidy up hipUserObjectCreate tests
- Tidy up hipUserObjectRelease tests
- Tidy up hipUserObjectRetain tests
- Tidy up hipGraphReleaseUserObject tests
- Tidy up hipGraphRetainUserObject tests
- Separate tests into multiple files.

[ROCm/hip-tests commit: 973109fec0]
2023-06-21 11:52:14 +05:30
ROCm CI Service Account 22fc2dd74b SWDEV-357695 - [catch2][dtest] hipGraphKernelNodeCopyAttributes API test (#90)
Change-Id: I8a7494cbb056df8b2b6b0bf5810f67e4eed4db7b

[ROCm/hip-tests commit: 2cf38e9e33]
2023-03-24 15:59:08 +05:30
Marko Veniger 9d19cc9a57 EXSWHTEC-171 - Hip graph creation and destruction tests (#35)
* EXSWHTEC-171 - Implement positive and negative unit tests for the following API's:
 - hipGraphCreate
 - hipGraphDestroy

[ROCm/hip-tests commit: 42ebc6cd10]
2023-03-06 16:56:24 +05:30
nives-vukovic c365761137 EXSWHTEC-145 - Implement tests for Stream Capture APIs (#11)
Implement tests for hipStreamUpdateCaptureDependencies, hipThreadExchangeStreamCaptureMode and hipLaunchHostFunc
- Refactor existing tests by including more catch2 features
- Reduce code line numbers by using helper guard classes
- Add some positive and negative tests
- Add doxygen test descriptions

[ROCm/hip-tests commit: 4580864fa1]
2023-03-06 13:41:54 +05:30
nives-vukovic 8a7716146e EXSWHTEC-198 - Implement tests for hipStreamGetCaptureInfo, hipStreamGetCaptureInfo_v2 and hipStreamIsCapturing (#195)
- Refactor existing tests by including more catch2 features
- Reduce code line numbers by using helper guard classes
- Add some positive and negative tests
- Add doxygen test descriptions

[ROCm/hip-tests commit: 638e2aabeb]
2023-03-06 13:39:35 +05:30
music-dino c26ed2c1ea EXSWHTEC-192 - Implement new and update existing tests for the hipGraph*MemcpyNode[From|To]Symbol family of APIs (#13)
* EXSWHTEC-192 - Implement new and update existing tests for the hipGraph*MemcpyNode[From|To]Symbol family of APIs
- Generalize from symbol positive test to work for different types
- Implement negative parameter tests
- Extract common code for to/from copy
- Reorganize files

[ROCm/hip-tests commit: f1151e3c6d]
2023-03-06 09:00:35 +05:30
ROCm CI Service Account b428200547 SWDEV-357695 - [catch2][dtest] hipGraphNodeGetEnabled API test case added (#91)
Change-Id: I71a9b9acfdd75403ddd6c4cf1876be2b4ca80eda

[ROCm/hip-tests commit: eaf4403b17]
2023-02-28 11:37:49 +05:30
ROCm CI Service Account f9269a3dc2 SWDEV-357695 - [catch2][dtest] hipGraphNodeSetEnabled API test added (#82)
Change-Id: Ie7af5d79390c7a6529e379f60e57961cdac71684


[ROCm/hip-tests commit: 3d3289b453]
2023-02-23 09:01:16 -08:00
Rahul Garg ca57f979a0 Catch2 standalone exe (#129)
* SWDEV-359379 - catch2: Standalone single exe per file

-workaround for rsp file issue.
-Creates single exe per file
-tests detection is still during execution time and NOT compile time

Change-Id: Iddfb83d57b2d767212f3d9307a276b7d572da6cd

* SWDEV-359379 - Update CMakeList

* Update Catch.cmake

* Temporarily disable failing tests


[ROCm/hip-tests commit: 961245e9f4]
2023-01-19 14:09:14 -08:00
ROCm CI Service Account 6b75a1e06c SWDEV-306122 - [catch2][dtest] Added test for hipGraphUpload API (#89)
Change-Id: If0cd652926c1308d8185648516256e13a7b3e5fd

[ROCm/hip-tests commit: fb919e7995]
2023-01-16 16:31:47 +05:30
ROCm CI Service Account 71eed91199 SWDEV-306122 - [catch2][dtest] hipGraphCreate, hipGraphDestroy and hipGraphExecDestroy APIs test (#79)
Change-Id: I8219122c6c0f85a70a22f66037c0f2920047ab8b

[ROCm/hip-tests commit: b8a83b3cc4]
2023-01-16 16:31:04 +05:30
ROCm CI Service Account 171cca2ad1 SWDEV-306122 - [catch2][dtest] Added test for hipGraphDebugDotPrint API (#103)
Change-Id: I5048bbab3239ae44c674ab7591726cae1654029a

[ROCm/hip-tests commit: b21980bd21]
2023-01-04 18:32:24 -08:00
ROCm CI Service Account db640a0350 SWDEV-367611 - [catch2][dtest] Added function and complex scenarios with hipGraphCloneComplx API (#104)
Change-Id: Icdcd17dc34d31d0de129777d00a65bf6300b5514


[ROCm/hip-tests commit: 88ccea4635]
2023-01-04 17:26:28 -08:00