108 Commits

Autor SHA1 Mensaje Fecha
vstojilj 9d84e31d23 Fix invalid use of hipEventElapsedTime (#2698) 2026-01-22 17:08:43 +01:00
Filip Jankovic 29cd25df66 Add hipDeviceAttributeExpertSchedMode (#2435)
* Add hipDeviceAttributeExpertSchedMode

---------

Co-authored-by: Stefan Sokolovic <stefan.sokolovic2@amd.com>

* Update hipDeviceAttributeExpertSchedMode unit test

* Move check to ROCr from thunk interface

* Revert unrelated whitespace changes

* Revert version bump

---------

Co-authored-by: Stefan Sokolovic <stefan.sokolovic2@amd.com>
2026-01-15 08:41:39 -08:00
Julia Jiang 88f4bb1988 SWDEV-564412 - fix test failure on hipSetValidDevices_with_hipMemcpyPeer (#2150) 2026-01-05 12:36:31 -05:00
Maneesh Gupta 4a9833e70e Revert "Add HasExpertSchedMode device prop (#2241)" (#2371)
This reverts commit c0b4aef5ad.
2025-12-17 21:26:44 -08:00
Filip Jankovic c0b4aef5ad Add HasExpertSchedMode device prop (#2241)
* Add HasExpertSchedMode device prop

* Add unit tests for HasExpertSchedMode

* Add gfx12 check for HasExpertSchedMode prop

* Update gfx major version check and test for ExpertSchedMode

* Minor fix and ROCr version bump

* Update projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h

* Update projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h

* Apply suggestion from @dayatsin-amd

* Apply suggestion from @dayatsin-amd

---------

Co-authored-by: Stefan Sokolovic <stefan.sokolovic2@amd.com>
Co-authored-by: David Yat Sin <77975354+dayatsin-amd@users.noreply.github.com>
2025-12-17 17:06:08 +01: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
Jatin Chaudhary 68098c4d90 SWDEV-560329 - Fix some tests (#1378) 2025-11-10 18:22:03 +00:00
systems-assistant[bot] e22856b3ac SWDEV-515562 - Fix and enable hipDeviceReset tests (#594) 2025-10-27 15:07:44 +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
Jatin Chaudhary 22b4ff7aae SWDEV-1 fix issues seen due to test sharding (#1134) 2025-10-09 06:26:05 +01:00
systems-assistant[bot] 3a9bf2e9f6 SWDEV-546351 : Added test cases for hipGetDriverEntryPoint api (#525)
* SWDEV-546351 - Added test cases for hipGetDriverEntryPoint api

* SWDEV-546351 - Added test cases for hipGetDriverEntryPoint api

* SWDEV-546351 - Added test cases for hipGetDriverEntryPoint api

* SWDEV-546351 : Added test cases for hipGetDriverEntryPoint api

* addressed review comments Added non-zero check

---------

Co-authored-by: Anavena Venkatesh <Anavena.Venkatesh@amd.com>
Co-authored-by: jainprad <92369414+jainprad@users.noreply.github.com>
2025-10-03 14:12:16 +05:30
systems-assistant[bot] 662ee1c7e1 SWDEV-543997 - Expose numXCC device property in hipGetDevicePropertie… (#527)
* SWDEV-543997 - Expose numXCC device property in hipGetDeviceProperties api

* SWDEV-543997 - Expose numXCC device property in hipGetDeviceProperties api

---------

Co-authored-by: Anavena Venkatesh <Anavena.Venkatesh@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>
2025-09-09 11:27:28 +05:30
systems-assistant[bot] dcc526e1fd SWDEV-545947 - Tests for hipSetValidDevices (#534)
* SWDEV-545947 - Tests for hipSetValidDevices

* SWDEV-546342 - [catch2][dtest] Additional Test cases for hipSetValidDevices

* Address psdb issues

* Correct the negative test case

---------

Co-authored-by: Satyanvesh Dittakavi <Satyanvesh.Dittakavi@amd.com>
Co-authored-by: Rambabu Swargam <rambabu.swargam@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>
2025-09-09 00:05:25 +05:30
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
Swargam, Rambabu 069a405e27 SWDEV-493276 - [catch2][dtest] Additional tests for Scratch limit change (#46)
* SWDEV-493276 - [catch2][dtest] Additional tests for Scratch limit change

* Removed the Kernel wait related scenarios

* Modified kernel operation

* Fixed PSDB NVIDIA build issue

* Restricted for Windows

* Used isSetScratchLimitSupported for all tests and modified isSetScratchLimitSupported

[ROCm/hip-tests commit: f7712bd5a8]
2025-06-10 21:25:06 +05:30
Arandjelovic, Marko 6ed6a3cd09 Remove SetGetCacheConfig tests as APIs are not implemented (#84)
[ROCm/hip-tests commit: 552ed6125e]
2025-05-14 16:27:05 +02:00
GunaShekar, Ajay d3b8eb6ce1 SWDEV-522333 - hipDeviceGetPCIBusId relax format sizes (#33)
[ROCm/hip-tests commit: fd8833cc83]
2025-05-12 12:50:34 -07:00
Patel, Jaydeepkumar 0a42915f18 SWDEV-521135 - Remove Unit_UUID_setEnv_Thread_Lock and correct uuidList.cc (#31)
[ROCm/hip-tests commit: 8abcd95564]
2025-05-12 17:00:46 +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
Jaydeep Patel 78cf74fe18 SWDEV-512585 - Don't use catch2's REQUIRE macro in child/worker thread which might fail.
Change-Id: I513176259eb87879ea2bf557e923b2c2cd6166a2


[ROCm/hip-tests commit: 2356da049c]
2025-03-04 12:38:35 -05:00
Dragoslav Sicarov fc759df55c SWDEV-502224 - Fix HIP catch2 test failure in CPX NPS4 mode
Add dynamic arrays of devices to avoid array overflow.
Fixed the following tests:
Unit_hipDeviceGetByPCIBusId_WrongBusID)
Unit_hipSetDevice_ValidVisibleDeviceList
Unit_hipSetDevice_MinRvdMaxHvdDevicesList

Change-Id: I73d022321609d20ef2bd419f2cff287f6002a4d2


[ROCm/hip-tests commit: c4135a6090]
2025-02-19 11:35:58 -05:00
Vladana Stojiljkovic cfc21116a6 SWDEV-491280 - Create capture tests for Peer APIs
Change-Id: Ib35ab1155b19e00f7f297e6eaf395709d5767d7c


[ROCm/hip-tests commit: 59ace1e080]
2025-01-26 07:56:15 -05:00
Jatin Chaudhary 8f9a96f970 SWDEV-508958 - [6.4 Preview] include some used headers
Change-Id: I540c422a5ac10189af24a516e57fc804ec67797d


[ROCm/hip-tests commit: ddcdfa6b84]
2025-01-22 09:10:44 -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
Jaydeep Patel d43cc9ab7d SWDEV-500201 - UUID deduction logic ends up accessing empty map/nullptr on Phoenix2 APU as it finds GFX-XX which is ignored in logic.
Change-Id: Ieed60dc4665d2b87ea994834457b026a3f58cb49


[ROCm/hip-tests commit: 9be5380d40]
2025-01-13 13:53:08 -05:00
Ioannis Assiouras 12892960c2 SWDEV-474345 - Address potential segmentation fault in Print_Out_Attributes test
Change-Id: Ie507d3da66d9644eea56a510e76564af1970e2c0


[ROCm/hip-tests commit: e4077f827c]
2024-12-05 04:52:04 -05:00
Satyanvesh Dittakavi 30d579a81b SWDEV-487649 - SWDEV-487639 - SWDEV-487636 - Fix memory leaks in catch tests
Change-Id: I7943ecffec6d470789aabde07e6c52d6b871cc13


[ROCm/hip-tests commit: 9cf127697e]
2024-11-26 01:55:39 -05:00
Ioannis Assiouras aff8088c47 SWDEV-492356 - Install artifacts needed by UUID tests at the top level directory
Change-Id: I960efecfdfc7a0c39a8beec6a334e6aa08095f9c


[ROCm/hip-tests commit: b06dda1f09]
2024-11-22 11:02:23 +00:00
SrinivasaRao 90cfd75650 SWDEV-467848-[catch2][dtest] Functional tests for HIP_VISIBLE_DEVICES compatibility with UUIDs
Change-Id: I45eccecee2fd9fdb157be46fad2a37e675acd19c


[ROCm/hip-tests commit: 7348d05b1d]
2024-11-15 07:08:15 -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 ad52c74707 SWDEV-479807 - Skip if peer access is not supported.
Change-Id: I2a40976e7e1a4c86c41ea86e87359c7d4b85c6d8


[ROCm/hip-tests commit: 2f067487d2]
2024-10-23 10:57:23 -04:00
Rahul Manocha 51620a1bb6 [SWDEV-467733] - Set Cache Config Negative Param test fix
Change-Id: I058ca23a05e63aaaa54ea22e2b509593764cd7bc


[ROCm/hip-tests commit: 4e99f68b03]
2024-09-24 12:26:35 -04:00
Ioannis Assiouras 44da955774 SWDEV-472309 - Disable hipGetProcAddress tests for static build
Change-Id: I7018829557f9e7132b7e4a71b31de5e67ed29218


[ROCm/hip-tests commit: 1bd8e9dcf4]
2024-08-08 16:44:12 -04:00
Ioannis Assiouras 16f08a55a1 SWDEV-457944 - Fixed Unit_hipDeviceName_gcnArchName_And_rocm_agent_enumerator
Change-Id: I184af328177ad38072e4a20040a7f5d8b717baf1


[ROCm/hip-tests commit: e68fd92dd2]
2024-05-07 17:43:51 -04:00
kjayapra-amd 5315ad961a SWDEV-437832 - Adding new test to print if the device is APU.
Change-Id: Iab97730e25d565d04a31ce526fbcacfc3c6d84bd


[ROCm/hip-tests commit: 195570e142]
2024-05-07 06:53:44 -04:00
SrinivasaRao 6b27d459e5 SWDEV-449770 - [catch2][dtest] Functional test cases for the hipGetProcAddress API
Change-Id: I15dd2551224f36f4469cf9fc93246de9f30d9588


[ROCm/hip-tests commit: 2a13a47e99]
2024-04-19 12:25:36 -04:00
Rupam Chetia 9378f3b3bc SWDEV-435039 - [catch2][dtest] Verify hipDeviceProp_t gcnArchName and rocm_agent_enumerator details
Change-Id: I1b34a631c45382200979bd5ff40b1aced75b5de4


[ROCm/hip-tests commit: 92292f84eb]
2024-04-03 11:53:46 -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
Jaydeep Patel cab05268fa SWDEV-447525 - Zero-initialize hipMemPoolProps.
Change-Id: Iee71961bd1d679f0a6a9223e6387748602706c2d


[ROCm/hip-tests commit: b45bc412d7]
2024-03-15 14:26:00 +00:00
Mirza Halilcevic f6402bbc10 EXSWHTEC-341 - Refactor tests for hipDeviceSetLimit and hipDeviceGetLimit (#425)
Change-Id: Ib1e6937d0e391ec31fac47b89bb59489cff6a284


[ROCm/hip-tests commit: c6ba00b9de]
2024-02-15 19:41:24 +05:30
Rakesh Roy 484ff1517b SWDEV-388493 - Delete test Unit_hipGetDeviceAttribute_CheckFineGrainSupport
- This test causes build failure when custom HIP_PATH is used
- It doesn't add much value as it verifies hipDeviceAttributeFineGrainSupport against HSA APIs
- In rare case only it can fail, because internally HIP uses the same HSA APIs for hipDeviceAttributeFineGrainSupport.

Change-Id: If3b566d1c784a318e076b640cc2f063b84e25413


[ROCm/hip-tests commit: 569b088eb8]
2024-01-26 14:26:15 -05:00
Rakesh Roy 65f3dd4d0a SWDEV-388493 - Use HSA APIs instead of rocminfo
- Recreation of github PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/217
- For Unit_hipGetDeviceAttribute_CheckFineGrainSupport test, get segment information using HSA APIs instead of rocminfo

Change-Id: I20f4c8a6669684a2326a3ce61735c4fa10433f9d


[ROCm/hip-tests commit: f85b731a5c]
2024-01-18 01:03:12 -05:00
Jatin Chaudhary 06292cfc6a SWDEV-431399 - fix issues highlighted by address sanitizer
Change-Id: I927009a8d408bdf13677ce5cc926908fb4552441


[ROCm/hip-tests commit: a87786f060]
2024-01-15 04:01:36 -05:00
Jatin Chaudhary e473199c50 SWDEV-430619 - fix Unit_hipDeviceGetUuid_From_RocmInfo test
Ignore the iGPU when iterating rocminfo and correct the bounds check
when matching results with HIP API. Also do not compare bytes directly,
use string to do a string compare as it can go out of bounds.
Disabling this test on windows till I get hold of a working windows
machine.

Change-Id: Icf811e0310776567afecea92e1d54e8438b39235


[ROCm/hip-tests commit: af3ac29c40]
2024-01-08 04:21:52 -05:00
vinay birur 33d812e490 SWDEV-388833 - [catch2][dtest] p2p tests migrated from dtests to catch2
Recreation of github PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/319,

Change-Id: I6024fd5172a9765756938601a30ed0469b5f1d5b


[ROCm/hip-tests commit: ea4476770a]
2023-11-24 05:36:34 -05:00
Ioannis Assiouras af570d8d63 SWDEV-433143 - Changes VLA to std::vector in hipDeviceGetUuid
Change-Id: I7251b6a6e8efa7d4051c50422c0022623862d8ae


[ROCm/hip-tests commit: 9c0686dded]
2023-11-20 10:08:16 +00:00
taosang2 e070627ea7 SWDEV-364236 - Add layered texture object tests
Add layered array and texture object tests for all
types.

Change-Id: Ifb4d085a526c1ff7d1b7afe528c194d536b99db8


[ROCm/hip-tests commit: a79d6f8361]
2023-11-17 16:16:08 -05:00