60 کامیت‌ها

مولف SHA1 پیام تاریخ
Ajay GunaShekar 95ab459a4c Use static catch2.lib instead of catch2.dll (#2419)
* Use static catch2.lib instead of catch2.dll

Using catch2.dll incraeses execution time by 12x

* handle debug option for static catch2

* SWDEV-573539 - skip atomics on windows since its taking a very long time to execute

mlsejenkins needs newer cmake but compiler breaks with newer versions
so skipping on windows can be a workaround for now

---------

Co-authored-by: Joseph Macaranas <145489236+jayhawk-commits@users.noreply.github.com>
2026-01-07 14:35:25 -08:00
Fábio Mestre d4fe3f1cc3 [hip-tests] Update API coverage report generator (#1932)
* [hip-tests] Update API coverage report generator

Updates the HIP API coverage tool. It now takes
extra arguments for the location of the catch test folder
and for the working directory. This avoids issues where the output
of the executable is dependent on the path where it is being
executed from.

Also updates CmakeLists.txt to integrate seamlessly with the
hip-tests project and avoid using commands which rely on
relative paths.

* Remove double new line

* Remove Cmake option to generate coverage

Removes Cmake option to generate coverage. Instead, explicitly removes
the gen_coverage target from all (this is already the default but
doing it explicitly prevents confusion).
2025-12-10 17:53:47 +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
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
Gerardo Hernandez e45c56c0f8 SWDEV-1 - if hipconfig process invocation by cmake fails, produce a readable error and abort
* SWDEV-1 - if platform auto-detection via hipconfig fails, provide a meaningful error and do not try to parse the output
* SWDEV-1 - if getting HIP_VERSION via hipconfig fails, provide a meaningful error and do not try to parse the output
2025-09-26 14:50:57 +01:00
Branislav Brzak b7f9ee2330 SWDEV-447357 - Implement test coverage report integration
Change-Id: I2dd0d375517e421493713106ab436b63222be5d6


[ROCm/hip-tests commit: fc1066ca9f]
2025-02-05 04:17: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
David Salinas ee8d7c8896 HIPCC Perl Clean up:
SWDEV-467478 - HIPCC Clean up perl

Change-Id: Iaea54b8b49ab51108163d363bbe68823571409d7


[ROCm/hip-tests commit: 4407cf6059]
2024-10-22 04:46:40 -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
Vladana Stojiljkovic e057b9e471 SWDEV-450735 - Add compiler option for using clock64
Change-Id: I9efed88d691ee1b2b4465286b3340b820f7bf627


[ROCm/hip-tests commit: 5b67a2a4a0]
2024-08-29 10:26:11 +02: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
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
Rahul Manocha 4ecda67e71 [SWDEV-438556][SWDEV-451686] - Enable Negative Param hip tests
Change-Id: I7c602ca0109864aac9d18feb31ae90f2a0ef4d36


[ROCm/hip-tests commit: 839b3b21d1]
2024-04-22 13:00:22 -04:00
Branislav Brzak b2f3b86f5b SWDEV-447357 - Implement test coverage report integration
Change-Id: I9daa851dc2b86c3400dea700f01f5ad65bd119a1


[ROCm/hip-tests commit: 5fd4f31995]
2024-03-27 05:58:25 -04:00
Sebastian Luzynski 9682f1becc SWDEV-447358 - Add build_doc target to hip-tests
This change adds a new cmake target to generate test plan documentation using
Doxygen. The target is called build_docs and it's not added to the default
build commands, hence it needs to be called separately.

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


[ROCm/hip-tests commit: 53406684ee]
2024-03-08 04:19:48 -05:00
Jatin Chaudhary b32ac029a8 SWDEV-429802 - change address sanitizer variable name to ENABLE_ADDRESS_SANITIZER
This is to bring scripts in compute/ec/prototype in sync which uses this
particular variable to enable address sanitizer across projects.

Change-Id: Ia620e4fd86338554ee3dd57c5690edb919b6e5a5


[ROCm/hip-tests commit: 508991225f]
2024-01-17 10:09:51 -05:00
Jatin Chaudhary 3057d60aec SWDEV-429802 - add address sanitizer build option to hip-tests
Change-Id: I5662e1d7a08c81239e043ddc7b48853a414a3556


[ROCm/hip-tests commit: 7cfc4a3664]
2023-12-08 10:25:29 -05:00
Ioannis Assiouras d614ceced0 SWDEV-433317 - Added compilation flag to report an error if vla is used
Change-Id: I8a03e1fece88ec52261c53684c9f66bbfc401a12


[ROCm/hip-tests commit: 3ae4d80e86]
2023-12-05 17:53:18 -05:00
Rahul Manocha 9941cb9c48 SWDEV-431064 catch test perf_test target compilation fix
Change-Id: I7de355c0d8ffd60ae05851e94c6e1a08ad655fd8


[ROCm/hip-tests commit: c5fa5e683f]
2023-11-17 06:34:32 -05:00
Todd tiantuo Li aa470f00aa SWDEV-333557 - add catch multiproc to Windows build
Change-Id: Ib1b976c9071527e508703496db234f2623a2cf84


[ROCm/hip-tests commit: 050370661e]
2023-11-06 08:25:50 -05:00
AravindanC 5d0d21dead SWDEV-424997 - Adding -Wno-option-ignored to hip catch test build
Change-Id: Ia4d3d9ee3d5762ce2e8814afcc2846b88306c482


[ROCm/hip-tests commit: 6b5c880d6a]
2023-10-02 06:17:33 -07:00
Maneesh Gupta 57ef4d1147 SWDEV-403773 - catch configuration to auto detect and generate json per arch (#413)
Change-Id: Iad8e93157c3acc6fdecf2603fdf6d90416a3c6e4

[ROCm/hip-tests commit: 06398a85b9]
2023-09-07 17:28:49 +05:30
ROCm CI Service Account 101abc7b39 SWDEV-403471 - [catch2][dtest] Converting perftests-memory files from HIT to catch2 (#342)
Change-Id: I13d2513f31dffe0b280039c888a97cc0d7bba31f

[ROCm/hip-tests commit: cf174d5a47]
2023-08-14 21:17:55 +05:30
ROCm CI Service Account d3b771c91d SWDEV-385161 - Deprecate usage of env vars in HIP samples and tests (#363)
* SWDEV-385161 - Deprecate usage of env vars in HIP samples and tests env vars such as HIP_PATH, ROCM_PATH, HIP_COMPILER, HIP_RUNTIME, HSA_PATH etc are removed.

Change-Id: I280e20b291cfb14675846aae72d97fa5b3ad567d

[ROCm/hip-tests commit: 34976df246]
2023-08-14 12:06:14 +05:30
milos-mozetic 4c7a0c7bef EXSWHTEC-231 - Implement custom Benchmarking tool for Performance tests (#117)
- Introduce performance tests to project.
- Improve benchmarking utilities.
- Delete copy constructors from Timer and Benchmark classes.
- Disable Catch2's benchmarking functionalities.
- Address review comments and add progress bar/display output to the Benchmarking tool
- Add flushing of the buffer on the benchmark name display
- Introduce command line options.
- Add allocation type to string helper function.
- Add output modifier to Benchmark class.
- Fix invalid calculation of deviation
- Update performance_common.hh
- Resolve build error on Windows by adding include for reduce and accumulate

[ROCm/hip-tests commit: 5fbbdcae68]
2023-07-18 12:53:27 +05:30
ROCm CI Service Account 698eadf9e4 SWDEV-385308 - hip-catch packaging issues (#293)
-install location /opt/rocm-xxxx/share/hip/catch_tests
-fix permissions of catch_tests folder

Change-Id: Ibc43a7abc55672eb2d685e5ed107e4c994d27f81


[ROCm/hip-tests commit: 0db4863f86]
2023-06-05 19:28:19 -07:00
ROCm CI Service Account 10ebf61211 SWDEV-357797 - enabling devicelib tests on Windows (#148)
Change-Id: Ic60e2f77fd2dcba0e0e00a58e1a22a1f28fede5c


[ROCm/hip-tests commit: cef4ed8196]
2023-03-14 16:27:52 -07:00
ROCm CI Service Account 2b550e6815 SWDEV-371122 - Package name corrected for hip-catch-amd (#160)
Change-Id: I8ca14f50761e8f332bc0ca096594e241077f4715


[ROCm/hip-tests commit: 66ad40972a]
2023-02-09 19:38:07 -08:00
agunashe 350f0ebada SWDEV-327563 - Enable back the commented tests (#141)
[ROCm/hip-tests commit: 639724a841]
2023-01-26 17:13:57 +05:30
ROCm CI Service Account 75a0931ae9 SWDEV-368632 - hip-tests: HIP_PATH and ROCM_PATH for catch tests (#138)
Change-Id: I855bf73df2914b98fe7f502f3a9837529feed8af


[ROCm/hip-tests commit: e88550d380]
2023-01-24 21:21:50 -08:00
ROCm CI Service Account 0aa84a1454 SWDEV-359379 - Windows catch2: fix for rsp path issue (#137)
MSbuild optimizes long args by writing it to a temp file.
the temp file path was referenced incorrectly.
This patch fixes the path issue of the rsp file

Change-Id: I90e3e46764902025f09d7adddd80d8a7ead3b940


[ROCm/hip-tests commit: 82fdfdb357]
2023-01-24 11:00:02 -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 783685f56b SWDEV-354905 - prioritize -DROCM_PATH over env{ROCM_PATH} in hip tests (#3055)
Change-Id: I943bc705641ceccda95b409d13b4e757c4e5ab23


[ROCm/hip-tests commit: 3229bcbe45]
2022-11-04 17:14:41 -07:00
ROCm CI Service Account 568c361802 SWDEV-353807 - Fixes multiple catch issues (#2912)
- enforcing c++17 for all tests
- Warning as error: ignoring return value

Change-Id: I3d171540403f74222e631d1a8e393386461c9729


[ROCm/hip-tests commit: d0aaed906d]
2022-08-30 16:53:21 -07:00
ROCm CI Service Account d5c78a909c SWDEV-353807 - deviceLib test when build/execution nodes are different (#2905)
Change-Id: I9dd831bbf87999cb3ea65c91b7e86679198357d3


[ROCm/hip-tests commit: ba5a0b9af5]
2022-08-30 12:27:28 -07:00
Jatin Chaudhary fb0006cafe Add tests for hipStreamWaitEvent (#2559)
[ROCm/hip-tests commit: 867f1276b7]
2022-08-03 16:47:34 +05:30
ROCm CI Service Account 655f4dce77 SWDEV-332251 - packaging in windows and multiple arch in catchInfo.txt (#2779)
Change-Id: I627662b59de002e9042f8218478404de0aa73ea5

[ROCm/hip-tests commit: c8c0c67677]
2022-07-08 13:36:41 +05:30
ROCm CI Service Account 20844fd79d SWDEV-332251 - packaging hip catch tests (#2751)
use "make package_test" to create test packages for catch folder

Change-Id: I1dbcfc8d55bb236b1c8c160d47018d57cb9e0534


[ROCm/hip-tests commit: 261d606262]
2022-06-22 11:18:27 -07:00
Fábio 4dc1940119 EXSWCPHIPT-42 - Add HIP RTC support to the test framework (#2719)
* EXSWCPHIPT-42 - Add HIP RTC support to the test framework
* Removed ifdef from hipTestContext class

[ROCm/hip-tests commit: f04fdbd0f7]
2022-06-13 15:35:02 +05:30
Maneesh Gupta d9783ca993 SWDEV-327563 - Windows: enable deviceLib catch tests (#2642)
Change-Id: I10094c31d0f51c311618ecdc193e7411316d00ef

[ROCm/hip-tests commit: cd6fb63981]
2022-04-21 14:34:17 +05:30
ROCm CI Service Account a809035395 SWDEV-314946 - Windows: adding properties to hip tests exe (#2620)
Change-Id: I3bac668345e3168f8a2b2772bf8ca422430803d8


[ROCm/hip-tests commit: 3dab167f5a]
2022-04-13 10:26:25 -07:00
TomSang 555f1b7a78 SWDEV-314867 - Fix clang missing issue in cuda docker (#2446)
Cuda dockers doesn't contain clang. The dependence on clang
will fail catch2 building. Catch2 building actually doesn't
need clang. Remove clang dependence from catch2 cmake file.

Change-Id: I8fd76e99d27ce4f5769baffae0608dd1cf0f4188

[ROCm/hip-tests commit: dbcb198b19]
2022-03-15 14:08:55 -07:00
ROCm CI Service Account f13ebc4e4e SWDEV-321872 - [catch2][dtest] Texture tests migrated to catch2 (#2536)
Change-Id: I4e29001812e2310680c6c24028667eb560194e87

[ROCm/hip-tests commit: 3f4fb28faf]
2022-03-11 16:53:48 +05:30
ROCm CI Service Account 2b8c3d01ef SWDEV-325491 - hip build when rocm_agent_enumerator returns no devices (#2535)
Change-Id: I2fe58d1eaba82a3dab2472bd37a8ab26d105ac1c

[ROCm/hip-tests commit: ef83ae6fd0]
2022-03-11 09:58:52 +05:30
agunashe 1828535524 SWDEV-1 - hip tests: Moving ctest file generation to execution phase (#2522)
Earlier ctest file creation was taking place during build time.
Due to cmake framework issue the file creation had issues,
which in turn failed the test build.
This change moves this logic to the execution phase
and gets rid of the unwanted dependency during build time

Change-Id: Ifbf7e325f1b15a8be12e76560a6d339bc76705ee

[ROCm/hip-tests commit: 4872e70674]
2022-02-28 09:26:33 -08:00
agunashe 6fded87b97 SWDEV-273235 - hip change to build catch tests on Windows (#2472)
* SWDEV-273235 - hip change to build catch tests on Windows

Change-Id: I96de305694609c669cb81480f3572d987ce87d98

* SWDEV-1 - skip failing hipStreamPerThread_DeviceReset_1 test on Linux

[ROCm/hip-tests commit: ec8d624959]
2022-02-09 08:17:45 -08:00
Maneesh Gupta 385d8ae8ef SWDEV-316804 - Fix catch2 standalone build failure
project needs to be defined at the beginning of the cmake file.

[ROCm/hip-tests commit: 160a9dabe9]
2022-01-06 12:02:12 +05:30
agunashe 4564fd3633 SWDEV-273235 - enabling catch2 config file and graph tests (#2437)
Change-Id: Ia9ce9e4b32aaca0986b86a237ff01a030e8da4d5

[ROCm/hip-tests commit: 2e4d43deb1]
2021-12-16 10:11:13 +05:30
agunashe 3971e912aa SWDEV-273235 - catch2 packaging for jenkins build (#2430)
Change-Id: I9686b3e26d4e8a24ce97ac1e1f31a4293678d577

[ROCm/hip-tests commit: 7073499c22]
2021-12-16 10:11:02 +05:30
agunashe 01240ce9ce SWDEV-273235 - catch2 windows build (#2422)
Change-Id: I331c6c2525a65746e2d0799ec8dc2f608af1176a

[ROCm/hip-tests commit: 3ccd6ec300]
2021-11-26 11:52:46 +05:30