55 Commits

Author SHA1 Message Date
Tao Sang 163e44d0a8 SWDEV-555889 - Support mipmap on rocr (#2082)
* SWDEV-555889 - Support mipmap on rocr

Support mipmap in hip-rt on rocr backend.
Enable all mipmap tests in Windows.
Some other minor improvement.

Add some SRD logs that will be removed finally.

* Add sampler.mipFilter to fix sampler issues on mipmap in rocr.
Fix format issues of view of leveled image and  mipmap image in blit kernel in rocr.
Enabled disabled mipmap tests.

* Rewrite view logic

* Set word4.f.PITCH = 0 for mipmap SRD on navi31 to fix unstable test issues.
Reset last error in nagative tests.

* Remove SRD dump log from hip-rt
Let Rocr mipmap log be in condition.

* minor format chang

* Exclude mipmap tests for mi200+ which don't support mipmap.
2026-01-21 09:10:29 -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
Ethan Trinh 2042191e23 Suppress deprecated-declaration warnings (#1817)
Co-authored-by: JeniferC99 <150404595+JeniferC99@users.noreply.github.com>
2025-11-25 10:31:30 -05:00
MachineTom 3bb8c2ac50 SWDEV-564392 - Clean up image tests (#1694)
Remove unnecessary checking.
Enable all disabled tests.
Move Mipmap test files into Windows section.
2025-11-06 15:07:53 -05:00
MachineTom 3b1c0c3464 SWDEV-558845 - Support image in rocr on Windows (#1582)
Enable image build in Windows.
Remove some useless codes that fail building in Windows.
Some minor improvement.
Temporarily exclude mipmap test files.
Prevent negative tests affect some tests.
Move some catch info log codes into failed cases.
2025-11-05 09:33:41 -05:00
Sourabh U Betigeri 7926bd593b SWDEV-545245 - Adds new test for hipDeviceGetTExture1DLinearMaxWidth (#763) 2025-10-21 08:22:17 -07:00
Betigeri, Sourabh d3aa32b8cc SWDEV-528351 - Adds hipTexRefSetGet* tests (#183)
* SWDEV-528351 - Adds hipTexRefSetGet* tests

* SWDEV-528351 - Adds hipTexRefSetGet* tests

* SWDEV-528351 - Adds hipTexRefSetGet* tests

[ROCm/hip-tests commit: d6f415cf54]
2025-08-05 20:40:17 +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
Brzak, Branislav ee0e2af0e1 SWDEV-516564 - SWDEV-512817 - Remove mentions of gfx940 and gfx941 (#30)
[ROCm/hip-tests commit: 902988494e]
2025-03-19 15:42:18 +01:00
Marko Arandjelovic fe2597a64c SWDEV-441296 - Add unit test for hipTexObjectCreate
Change-Id: Ibfc2c910a54ccd1686a3939a1008c472a8465137


[ROCm/hip-tests commit: 7ef404621e]
2025-03-05 12:10:14 -05:00
Vladana Stojiljkovic 01094114a7 SWDEV-476836 - Implement tests for hipTexRefGetAddressMode
Change-Id: Ia2003d0a7736145e745a55941ae6927100ba96a6


[ROCm/hip-tests commit: d58018ee1b]
2025-02-12 06:58:10 -05:00
Vladana Stojiljkovic ef6cd43b56 SWDEV-476554 - Implement tests for hipTexRefSetAddressMode
Change-Id: Iaf0e728ff90be12b5fca71786e6c3a18c598b01b


[ROCm/hip-tests commit: 9252a08b27]
2025-02-12 06:58:04 -05:00
Vladana Stojiljkovic 09c23c5a1c SWDEV-477981 - Implement tests for hipTexRefGetFlags
Change-Id: Iaa57185aa190ee44eb4ca54bc96bfac777ba0dd2


[ROCm/hip-tests commit: c1cc0e4ffe]
2025-01-31 04:04:18 -05:00
Vladana Stojiljkovic 3be5c48036 SWDEV-475127 - Implement tests for hipBindTextureToArray
Change-Id: Id9eb92eed120dc214a4bfc9405997e4b706f7a4b


[ROCm/hip-tests commit: 9a41214bba]
2025-01-31 04:03:54 -05:00
Vladana Stojiljkovic 32b07e3262 SWDEV-477597 - Implement tests for hipTexRefSetFlags
Change-Id: I0651882fe2eef1565a4fedfdd2fa4b23e4bb3f0a


[ROCm/hip-tests commit: 5e32a3fcd2]
2025-01-22 10:53:44 -05:00
Vladana Stojiljkovic effe0ff424 SWDEV-475701 Implement tests for hipUnbindTexture
Change-Id: I16565b01c629774d48e8665ffb6901600980e297


[ROCm/hip-tests commit: d617a002eb]
2025-01-22 10:53:24 -05:00
Vladana Stojiljkovic ce1c6cef26 SWDEV-478207 - Implement tests for hipTexRefGetMaxAnisotropy
Change-Id: I18e1aff22d56852c038d643b4527230a7a1ff22c


[ROCm/hip-tests commit: 7fcc9542d6]
2025-01-22 10:53:04 -05:00
Marko Arandjelovic 8a7bdf2e58 SWDEV-478050 - Add unit test for hipTexRefGetFormat and hipTexRefSetFormat
Change-Id: Iee23fdcb20efa9529478180cdb5c28c6be702966


[ROCm/hip-tests commit: d7b38d051f]
2025-01-22 10:52:29 -05:00
Marko Arandjelovic 6898aafa88 SWDEV-476856 - Add unit test for hipGetTextureReference
Change-Id: I4724fb9f9d68c3ab7d4396159e46857f84e35446


[ROCm/hip-tests commit: 7ed4d87974]
2025-01-22 10:52:05 -05:00
Marko Arandjelovic 0d1d0c718e SWDEV-475114 - Add unit test for hipBindTexture2D
Change-Id: I6d7c1b4c7d40433c914dac2b991acf228cef318f


[ROCm/hip-tests commit: 114524f732]
2025-01-22 10:51:15 -05:00
Marko Arandjelovic a8104a0ef4 SWDEV-478520 - Add unit test for hipTexRefSetAddress
Change-Id: I488f6d74f2ded071767c6e785845cc6d489ebe66


[ROCm/hip-tests commit: 89c16b9ded]
2025-01-22 10:50:47 -05:00
Marko Arandjelovic af1e90b83f SWDEV-476825 - Add unit test for hipTexRefGetAddress
Change-Id: I65623737b6ce3cde061f6d5bf4f1c61b20a2c66f


[ROCm/hip-tests commit: e7e07f1fe6]
2025-01-22 10:49:47 -05:00
Marko Arandjelovic 33f65a30e8 SWDEV-475382 - Add unit test for hipGetTextureAlignmentOffset
Change-Id: I6ec65522038ffc3761970542df4570cead3026fe


[ROCm/hip-tests commit: d9162f9abe]
2025-01-13 11:35:02 -05:00
taosang2 43b7d702ff SWDEV-474989 - Fix texture filter test issues
Change-Id: I9b647aff79ba92f07b2ca18eac49d58ae63fa859


[ROCm/hip-tests commit: 8a9ed34f6a]
2024-12-23 07:27:18 -05:00
Marko Arandjelovic 182d514c0d SWDEV-477706 - Add unit test for hipTexRefGetBorderColor and hipTexRefSetBorderColor
Change-Id: I01a3a8c5bd2e8f7396bf55c0d6dd8b7a7d5df9d3


[ROCm/hip-tests commit: a35f7bbad6]
2024-12-18 13:41:04 -05:00
Marko Arandjelovic 625c30fdf7 SWDEV-477070 - Add unit test for hipTexRefGetArray
Change-Id: Ifa4c62d926dd15ce8379b9899ca81d3a39595c8e


[ROCm/hip-tests commit: 533db3b042]
2024-12-10 04:00:33 -05:00
Marko Arandjelovic cee2f8215d SWDEV-477740 - Add unit test for hipTexRefSetArray
Change-Id: I3bd2f9cd956260110e7e5cd6c982769c5752b7d8


[ROCm/hip-tests commit: b346582bff]
2024-12-09 13:52:30 -05:00
Satyanvesh Dittakavi 9cad0a4d59 SWDEV-485372 - Fix texture catch tests to run on appropriate ASICs
Change-Id: I9ef93e37eb29c3d09c6448fe95dba39fa7060464


[ROCm/hip-tests commit: d5028f0c2a]
2024-12-09 10:35:43 -05:00
Marko Arandjelovic 232f8f47e1 SWDEV-473788 - Add unit test for hipBindTexture
Change-Id: Iefb695feb56cb70aff186eb719cbbd366297d91e


[ROCm/hip-tests commit: 18f69cba00]
2024-12-05 04:23:09 -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
Vladana Stojiljkovic f6f7b7cf9c SWDEV-478205 - Implement tests for hipTexRefSetMaxAnisotropy
Change-Id: I0ef580ea9be685ab83c9ee29193eae4aa0813d3a


[ROCm/hip-tests commit: e53b31db23]
2024-11-05 02:47:37 -05:00
Vladana Stojiljkovic a5522a55ef SWDEV-478767 - Implement tests for hipTexRefSetAddress2D
Change-Id: Id5b946c216097c606a1e4b839514f68d351adc19


[ROCm/hip-tests commit: b24e61671a]
2024-10-25 14:43:45 -04:00
Branislav Brzak 402fffac2b SWDEV-465159 - Only compile mipmap tests on Windows
Mipmap APIs are not supported on Linux

Change-Id: I1aedfbd61c282cc0b93edfab1fab75ef6357a136


[ROCm/hip-tests commit: bcd3665ea9]
2024-07-16 05:01:07 -04:00
Ioannis Assiouras 1a525cb854 SWDEV-464648 - code and comment cleanups
Change-Id: I10b462078fa9eed73372d81dff92d7278731f736


[ROCm/hip-tests commit: 38f67d4a0b]
2024-06-12 00:34:10 -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
Mirza Halilčević f2464a3645 EXSWHTEC-359 - Implement tests for 3D mipmapped texture device functions #433
Change-Id: I1933d498f518b352b91b1c37b24c62d0cac309eb


[ROCm/hip-tests commit: 2691895821]
2024-02-27 12:13:39 +05:30
Mirza Halilčević 37195d94b3 EXSWHTEC-358 - Implement tests for 2D mipmapped texture device functions #432
Change-Id: I8d517ef95eeddfcc442f00e331e3ed0d1123d99c


[ROCm/hip-tests commit: 90a783c959]
2024-02-27 12:13:13 +05:30
Mirza Halilčević ca5e764189 EXSWHTEC-320 - Implement tests for cubemap texture device functions #369
Change-Id: I1a247dba4e46ed7e1045dee0467d3fdac1f70cd0


[ROCm/hip-tests commit: 6eec9aa90d]
2024-02-26 15:55:32 +05:30
Mirza Halilčević 8d0525beab EXSWHTEC-319 - Implement tests for 3D texture device functions #368
Change-Id: Ifc7a6feae1a9567df29d35928d8c4328497bfc97


[ROCm/hip-tests commit: 5fe762ae5d]
2024-02-26 15:55:04 +05:30
Mirza Halilčević 3e12244067 EXSWHTEC-318 - Implement tests for 2D texture device functions #367
Change-Id: I5404eae219d23dc058aa6ef150a0764b06ab6de1


[ROCm/hip-tests commit: 37d8529a9b]
2024-02-26 15:54:33 +05:30
Mirza Halilčević 06a23c79b1 EXSWHTEC-317 - Implement tests for 1D texture device functions #366
Change-Id: Iafefada132fb94a1b120d91915e24524e7d766d0


[ROCm/hip-tests commit: da67d77a0c]
2024-02-26 15:53:06 +05:30
Mirza Halilcevic bf5b5f8dc9 EXSWHTEC-361 - Implement tests for Mipmapped Texture Management APIs (#436)
Change-Id: Ia753ddb3bd38b78aca719d321bf33de76ec00ad6


[ROCm/hip-tests commit: 127e056c22]
2024-02-15 18:45:52 +05:30
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
taosang2 960ef27787 SWDEV-393139 - Add mipmap tests
Add 1D/2D/3D mipmap tests covering necessary data types and
config parameters.

Change-Id: I6079d9f3a2ddf4e42b8a6f7f3902322cfca02cff


[ROCm/hip-tests commit: 07ec2d5a0c]
2023-11-06 08:55:40 -05:00
milos-mozetic a2ae1bcb87 EXSWHTEC-224 - Test cases ID clean up and documentation for Texture Management (#92)
- Update hipBindTextureToMipmappedArray.cc
- Fix build error for undeclared identifier 'ret'
- Disable tests which fail in external CI

[ROCm/hip-tests commit: 7c7884a2d9]
2023-08-14 20:45:35 +05:30
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 94c0dbb1e0 SWDEV-354273 - Add unit test of sRGB in 1D (#2968)
Add unit test of sRGB for 1DArray(hipResourceTypeArray) and 1DBuffer(hipResourceTypeLinear).
Note that for 1Dbuffer, AMD devices doesn't support sRGB, thus the test is a negative test.

Change-Id: Ib604cf6f3abd3b90813def1d563c53d42328bace

[ROCm/hip-tests commit: 67c2b50382]
2022-09-27 10:34:57 +05:30
ROCm CI Service Account 55da06237e SWDEV-349490 - Add unit test of sRGB (#2940)
Add unit test of sRGB.
Update helper functions to accomodate uchar4 and float4.
Change-Id: Ib604cf603ab63b908130ef1c562c53d42328bacf


[ROCm/hip-tests commit: 30fcb99268]
2022-09-15 21:04:57 -07:00
ROCm CI Service Account 9309313836 SWDEV-333188 - Port image tests to catch2 (#2793)
- Port image tests to catch2.
- Disable 3D filter test for gfx9a.
- Some other improvement
- Temporarily disable linear filter tests on Windows

Change-Id: Ieeddac9f8c50aa9b6b12ca9d8fd792a51973b8ca

[ROCm/hip-tests commit: 0fc518d281]
2022-07-19 19:26:56 +05:30
ROCm CI Service Account 510bab4931 SWDEV-321874 - [catch2][dtest] Texture dtests migrated from HIT to catch2 framework (#2576)
Change-Id: Ice382bf552fd0a9b41133f2a6ab333e3672b7c28

[ROCm/hip-tests commit: cf3f8d18c4]
2022-05-09 16:41:37 -07:00