341 Commits

Autor SHA1 Mensaje Fecha
Jaydeep 190d9a8e27 SWDEV-561273 - hip samples on TheRock build using HIP LANGUAGE and hip-lang package. (#1794) 2026-01-29 09:15:58 +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
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
systems-assistant[bot] 05c0a38732 SWDEV-508776 - Validate VGPRs (#620)
Add a test to verify VGPRs.
Make hipInfo show maxAddressableVgprsPerThread.

Change-Id: Ibfc2c912a54ccd1686a3930a1008c472a8465136

Co-authored-by: taosang2 <tao.sang@amd.com>
2025-09-22 11:28:05 -04:00
Danylo Lytovchenko f7338717ae SWDEV-470698 - fix formatting, add format check workflow (#657) 2025-08-20 19:58:06 +05:30
Patel, Jaydeepkumar 6e80f1091d SWDEV-539967 - Include missing assert header. (#337)
[ROCm/hip-tests commit: 2c7c7128ea]
2025-07-01 09:58:10 +05:30
Godavarthy Surya, Anusha 1e71fb6b61 SWDEV-530015 - Override ROCM_PATH with env if it is set (#171)
[ROCm/hip-tests commit: 814b1c81cf]
2025-06-05 15:30:33 +05:30
Deshpande, Chinmay Diwakar 1dc47d1a67 SWDEV-532676 - Pass hip-path instead of rocm-path (#182)
* SWDEV-532676 - Pass hip-path instead of rocm-path

Commit 7b7537c1703db0cc53ee1f36089406b555ae9a9e in llvm-project enforces that no hip-device-lib-path is forwarded by hipcc. To ensure that runtime is found, pass hip-path instead.

* SWDEV-532676 - Fix comment

Co-authored-by: Lambert, Jacob <Jacob.Lambert@amd.com>

---------

Co-authored-by: Lambert, Jacob <Jacob.Lambert@amd.com>

[ROCm/hip-tests commit: 65158bc9f1]
2025-05-19 13:26:03 -07:00
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
Deshpande, Chinmay Diwakar d2b66b08bb SWDEV-530549: Improve README.md (#142)
[ROCm/hip-tests commit: cc43bb230b]
2025-05-07 10:08:06 -07:00
Guan, Zichuan bcdc86805c Fix CMakeLists.txt for square sample (#61)
Co-authored-by: Matthias Knorr <MKKnorr@web.de>

[ROCm/hip-tests commit: 184142b4b6]
2025-04-29 09:59:53 -04: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
kjayapra-amd 56562b37fd SWDEV-504749 - Call hipStreamSynchronize before exiting the program to avoid memleaks.
Change-Id: Icd5d4c8f27b04caaeb315eb93673234f274b5c5b


[ROCm/hip-tests commit: c22b4fdea1]
2025-01-07 15:36:13 -05:00
Pankaj Kumar Divedi d4c3bcdc0f SWDEV-485275 - fix using CUID to host-only compilation
Change-Id: I9f818e045090299714e77132e2a036a804ab1856


[ROCm/hip-tests commit: 754644f16e]
2024-12-20 12:18:20 +05:30
Ioannis Assiouras 05312d2d2c SWDEV-497529 - Link with hip::amdhip64 target in 15_static_library/device_functions
Modified target_link_libraries to link with the hip::amdhip64
target instead of directly linking to the amdhip64 library.
This ensures that all sub-dependent libraries that are necessary
for static build are included.

Change-Id: Idf69477708172604ba9c349735d3230ae765923a


[ROCm/hip-tests commit: ef9558a160]
2024-11-19 05:32:14 -05:00
jofernau 6d5af4fe1f SWDEV-496006 - Update tests according to compiler.
Change-Id: I8870be9f7d1d209e3d9ae07928e8990180e3dd0b


[ROCm/hip-tests commit: 5f6eded274]
2024-11-06 01:30:30 -04:00
Julia Jiang 8034b85e7f SWDEV-452448 - Adding more information for inline_asm sample
Change-Id: I52b3bd804cd323eb862473da9e48a1d4cf58da07


[ROCm/hip-tests commit: edecba21f2]
2024-10-24 13:54:42 -04:00
Ioannis Assiouras eadcf7db13 SWDEV-441237 - Move hipMemcpyHtoD out of the initialization loop in module_api_global
Change-Id: If68b2aadb16fece429fcab2da0a92ce995c437f6


[ROCm/hip-tests commit: 958d0e4d73]
2024-10-18 04:38:05 -04:00
AravindanC cbd270ab58 SWDEV-461080 - Remove Hard Coded Install Permission
Change-Id: Idf14ddbd83b304d7a4830467b1f9d14db38dda58


[ROCm/hip-tests commit: 64eed879df]
2024-10-03 06:47:55 -07:00
Aravindan Cheruvally 9e559345d2 Revert "SWDEV-342167, SWDEV-461080 - Remove Hard Coded Install Permission"
This reverts commit e495390b7f.

Reason for revert: Observing issue SWDEV-488249 due to catch test permission settings. 

Change-Id: Ifdc55e4eb3938c9bc0b9af0a4e9dc9ba366614b3


[ROCm/hip-tests commit: c2671515df]
2024-10-02 10:33:03 -04:00
Ioannis Assiouras 6221aee0af SWDEV-478295 - Set CXX as the project language in 23_cmake_hiprtc
Change-Id: I40c01191e9de1790bbdd42896bdf70c046a70e34


[ROCm/hip-tests commit: 8e62770f50]
2024-10-01 10:57:16 -04:00
Ranjith Ramakrishnan b1e16e76ea SWDEV-437189 - Provide option to enable/disable CPACK_SET_DESTDIR
The variable is set as cache, so that user can override.
But the hard coded setting is preventing override. Removed the same

Change-Id: Ica5f9074a6532f465705a8dd1a8f21c6643ef49e


[ROCm/hip-tests commit: 173abcfba0]
2024-09-23 15:46:24 -04:00
AravindanC e495390b7f SWDEV-342167, SWDEV-461080 - Remove Hard Coded Install Permission
Change-Id: Ie42cf83cc9a665715e76966378237d479202e0a7


[ROCm/hip-tests commit: 38eedf86cf]
2024-09-18 11:48:03 -04:00
Ioannis Assiouras 87c0afcd84 SWDEV-477039 - Disabled samples that directly invoke hipcc for static builds
This commit disables samples that directly call hipcc when
building in a static environment. In its current state, hipcc
requires all static libraries to be explicitly provided
in order to succesfully link the sample binary.

Change-Id: I74c94a57867bc1fe0e6134ddd633b465bd6c0f83


[ROCm/hip-tests commit: 90b441a804]
2024-09-05 05:42:27 -04:00
Jaydeep Patel 370b76407d SWDEV-481860 - Match malloc/hipMalloc calls with free/hipFree calls in all samples.
Change-Id: Ib44551b3f60cd90fa7158e4ed016ef5549a34ef7


[ROCm/hip-tests commit: b89a7c6201]
2024-09-04 10:32:58 -04:00
Jaydeep Patel f06e679b18 SWDEV-481861 - Add hipEventDestory for every hipEventCreate in all samples.
Change-Id: Ib1b860b02ef2640f321d54902b34ecf0e495ed65


[ROCm/hip-tests commit: dac779c834]
2024-08-29 13:22:19 -04:00
Jaydeep Patel 1cd42f33f1 SWDEV-481391 - No need to set GPU_ARCH as it is been set from amdgpu-arch utility for sample 16 & 17.
Change-Id: Icbcc8c2058ecc4b382db51ef9705aab36aa64db0


[ROCm/hip-tests commit: f54ce39eb5]
2024-08-29 11:45:57 -04:00
kjayapra-amd 05770badad SWDEV-478923 - Add targets for code object compilation.
Change-Id: Icef7917cfb1ba53eb3ccbbf9220dd96dcbe8714d


[ROCm/hip-tests commit: 2d2e90a405]
2024-08-22 14:17:31 -04:00
Rahul Manocha 153b9512c2 SWDEV-479073 - Use amdgpu-arch for sample 16 and 17
Change-Id: Ia6a2d7171d0ed296166f3bbf5f40c56305518de3


[ROCm/hip-tests commit: b8a0b33f67]
2024-08-22 14:15:52 -04:00
Ioannis Assiouras 47ae5e353e SWDEV-478295 - Link with hiprtc-builtins for sample 23_cmake_hiprtc in static build
Change-Id: I9ccc1310ea2f38d8624103e198b6fc1077712345


[ROCm/hip-tests commit: e45cbdfaa1]
2024-08-15 16:37:38 -04:00
Julia Jiang 13c5e7a3e4 SWDEV-472723 - Correct file format and remove trailing spaces
Change-Id: Ie40c763e9391fa36d6c890cd0a171659a1502a83


[ROCm/hip-tests commit: 5d042c80fa]
2024-08-01 15:17:39 -04:00
Jaydeep Patel 44e6cc3e7a SWDEV-462616 - Sample 19 is disabled temporarily due to ASAN failure.
Change-Id: I6528095909da1f91dbe7383752deca780a38a231


[ROCm/hip-tests commit: ba83484a8d]
2024-07-04 05:41:15 +00:00
Ranjith Ramakrishnan 17e9b6cedb SWDEV-383837 - Update hip-samples package dependencies
hip-samples package should depends on hip-dev/devel and hipcc rather than hip-runtime-amd
Updated the same for static package as well

DependsOn: Iacab7993dffaa00efd1344d3eafb55f6317d1509
Change-Id: I1470475ddbaf9201ba0e39977aeb48b0382f59c9


[ROCm/hip-tests commit: 0b28ca3f04]
2024-06-17 19:34:13 -04:00
Ranjith Ramakrishnan 1637f46394 SWDEV-467162 - Temporarily disable hip-lang test for static builds
Hip-lang test is failing in static build environment. Disabling it for time being
TODO: Need to renable the test once its fixed

Change-Id: Ie15f02a157a13b3f105596ad673a8a1da6e78b67


[ROCm/hip-tests commit: c7e0c65779]
2024-06-12 14:36:04 -07:00
Ioannis Assiouras e12fc07212 SWDEV-445669 - Made required changes to test static libs
Change-Id: I0fbcdaa9f0b9633d861300c221ac12df1772c6e9


[ROCm/hip-tests commit: 8a24059131]
2024-06-12 05:14:36 -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
Sebastian Luzynski 76107fa745 Adjust cmake target to work with different build tools
This change allows to build smaples repo with different build tools like ninja

Signed-off-by: Sebastian Luzynski <Sebastian.Luzynski@amd.com>
Change-Id: I232efc3f19895e84b9de0d410ea43ec55b913ab4


[ROCm/hip-tests commit: 65512f5872]
2024-05-29 10:26:20 -04:00
Julia Jiang b7d5ec9fec SWDEV-458672 - Fix dead links in hip-tests repos
Change-Id: Iea5b47d2db3b6e33fc18f1ed5bb79be688cce600


[ROCm/hip-tests commit: c8c4faefa2]
2024-05-10 11:31:00 -04:00
Konstantin Zhuravlyov 292a3c53b5 hipcc hacks and workarounds
- force hipcc.bin on windows
    - avoids perl, which randomly can't spawn processes
  - force hipconfig.bat on windows
    - hipconfig.bin does not print hip version for some reason
    - i will file a ticket for this

Change-Id: Ib9fb981844213b038f6d1cc3288148116295b58c


[ROCm/hip-tests commit: 80722e5505]
2024-05-07 10:21:17 -04:00
Jaydeep Patel 2fbfe65f30 SWDEV-452646 - Enabled sample 16 & 17 as compiler change is landed in mainline.
Change-Id: I865c3ab3cb99f32d057fb9f662f358adc9977481


[ROCm/hip-tests commit: ae66ad5d95]
2024-05-03 10:11:04 -04:00
Jaydeep Patel 3c44acec6b SWDEV-452646 - Disable sample 16 & 17 temporarily due to compiler dependency.
Change-Id: I010f019066fa277536270feaef38a2cd5edc63d0


[ROCm/hip-tests commit: 7c12d95667]
2024-04-12 01:10:54 -04:00
Jatin Chaudhary 5b37dc2df5 SWDEV-429802 - Add sanitizer option to hip-samples
Change-Id: I30cb170d466645ea2dfd940b9c6c6748cc010de1


[ROCm/hip-tests commit: 9261110d65]
2024-04-08 05:36:26 -04:00
Vikram 4681ffc8f6 SWDEV-448422 - Fix tests according to latest compiler changes
Recent compiler patch https://github.com/llvm/llvm-project/pull/81700/
introduced changes to certain hip external symbols clang emits. This patch
makes the tests "16_assembly_to_executable" and "17_llvm_ir_to_executable"
follow these changes. I expect comments on whether this is an unintended
compiler behaviour that needs fix in compiler or this is the proper fix.

Change-Id: I3943f5365600f683a65c98c6d17c14a5e4192351


[ROCm/hip-tests commit: fba826fc3c]
2024-03-13 10:41:08 -04:00
Rakesh Roy 96db0dbd8d SWDEV-1 - Delete sample 20_hip_vulkan
- Delete sample 20_hip_vulkan as it contains NVIDIA Copyright

Change-Id: If9638a121bdfcf08813d3ea9eb4a14f78170c2a6


[ROCm/hip-tests commit: 6ce6b54085]
2024-03-08 07:18:38 -05:00
jujiang 855a59c16c SWDEV-444835 - Merge hip-tests changes made in 6.1- to staging
Change-Id: Ib0e926467dce61d3b8ca3bd9e8f0b682b666b0c7


[ROCm/hip-tests commit: 4a2fbe2e1f]
2024-02-29 11:38:04 -05:00
jujiang c9991341dc SWDEV-444390 - Update link in Github for hip-tests
Change-Id: I8e49f88f8f6d9f6d430774bd72f8fdcc522553f6


[ROCm/hip-tests commit: 4c0bf68dd9]
2024-02-21 11:40:09 -05:00
Jaydeep Patel 95eb873d90 SWDEV-442606 - Add gfx90a and gfx942 in GPU arch list.
Change-Id: I0890bd865f22292465614423b94da8c1d1fc56ce


[ROCm/hip-tests commit: cf461b2f8c]
2024-01-24 23:50:29 -05:00
Rahul Manocha 9689afcac7 SWDEV-431345 Cmake for hip sample 22
Change-Id: I9b1149b2e83b2f639882011d75b4fb9e2419ff8d


[ROCm/hip-tests commit: c6d3505d63]
2024-01-18 12:10:03 -05:00
Rahul Manocha b299b79a77 SWDEV-436821 Update hip samples Readme files
Change-Id: I6bf3a72eac4a4242cb2dbf4e6eee73e0e1bef2ef


[ROCm/hip-tests commit: 76dd8ea569]
2023-12-21 14:20:44 -05:00
Rahul Manocha 2d432c1ca6 SWDEV-431345 - CMake build flow for hip samples 16,17
Change-Id: I7bfc8600511c78d8c73aa526f9846cd268651279


[ROCm/hip-tests commit: f0b5b20466]
2023-12-15 09:02:23 -05:00