Граф коммитов

66 Коммитов

Автор SHA1 Сообщение Дата
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
SrinivasaRao 812234df9e SWDEV-416343 - [catch2][dtest] Functional test cases for the hipDeviceGetUuid() API
Change-Id: I6c75f8282d6d78cdee224e018f3e70bfd5512a03


[ROCm/hip-tests commit: be7fdcb72c]
2023-11-17 06:26:35 -05:00
Todd tiantuo Li e474534ce7 SWDEV-422544 - remove the check for hipDeviceAttributeUnifiedAddressing as a fixed value
Change-Id: I682eeb194903e4b74cd41597164f3622975daea6


[ROCm/hip-tests commit: 79d1fd1170]
2023-11-01 21:49:15 -04:00
mbhiutra bc93528aa2 SWDEV-415965 - [catch2][dtest] Added test for newly added member hipDeviceAttributeHostRegisterSupported
Change-Id: I89f716f1be9c5a36d5ffdb24e056a13cc4a493ca


[ROCm/hip-tests commit: 6bc9d607ac]
2023-11-01 21:37:07 -04:00
Rahul Garg 422d70ffb0 SWDEV-415029 - [ABI Break] Remove hcc symbols
This reverts commit 81a120a5c5.

Reason for revert: Bring back original change.

Change-Id: I15c5f288bc50107831a494a81d1f16df4c2ade27


[ROCm/hip-tests commit: cf3df12106]
2023-10-16 17:23:01 +05:30
mbhiutra 1593c69807 SWDEV-415965 - [catch2][dtest] Added test for newly added member of hipDeviceProp_t
Move the test of AMD specific attribute into proper section

Change-Id: Id35e604e68123eee623a616ba6cd680097f6556d


[ROCm/hip-tests commit: cc35feba07]
2023-10-12 12:07:49 -04:00
Rakesh Roy 81a120a5c5 SWDEV-425967, SWDEV-425968 - Revert "SWDEV-415029 - [ABI Break] Remove hcc symbols"
This reverts commit de3d24df97.

Reason for revert: This causes build failure in hipBLASLt & hipSPARSELt

Change-Id: Ifb1ee519971c6183eb53634d6d8901a9e94cc9cc


[ROCm/hip-tests commit: fe5206e50a]
2023-10-09 06:31:52 -04:00
jiabaxie bcd3cfeafe SWDEV-400002 - [ABI Break] remove unsupported hip enums
Change-Id: Ic8bd02a7a2385c06d55a8ee01b950cd6d372f5ce


[ROCm/hip-tests commit: 6dc7b081cc]
2023-10-05 02:18:24 -04:00
taosang2 de3d24df97 SWDEV-415029 - [ABI Break] Remove hcc symbols
Change-Id: Ic0082d3960aadbb7bc559141b6e84bd29a75b5cf


[ROCm/hip-tests commit: 403afae98f]
2023-09-28 12:36:05 -04:00
Jatin Chaudhary acf40cd6df SWDEV-306642 - remove gcnArch from tests
Change-Id: Ibc16aa1bc3507fb583ac9c68394b1ab9b2ba7af4


[ROCm/hip-tests commit: 2c17edbced]
2023-09-26 05:34:34 -04:00
Jatin Chaudhary 668bcece7a SWDEV-411064 - fix device mem size to accurately match memory size from same device
Change-Id: I9caee84c58312053a7b387c8516b386d53c2197f


[ROCm/hip-tests commit: c340f47ac1]
2023-09-21 14:03:02 -04:00
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
ROCm CI Service Account 9f2135d1cf SWDEV-403766 - Pass exclusive flag. (#337)
Change-Id: I83da5356b5874c3c4dc1f0e08d899079d5cfe385

[ROCm/hip-tests commit: 86b522692c]
2023-06-28 21:47:19 +05:30
milos-mozetic 84f4cb0bc1 EXSWHTEC-224 - Test cases ID clean up and documentation for Initialization&Version (#83)
- Test cases ID clean up and documentation for Initialization and Version

[ROCm/hip-tests commit: 1af95c5a2a]
2023-06-28 15:46:40 +05:30
milos-mozetic 16eee59975 EXSWHTEC-224 - Test cases ID clean up and documentation for Device Memory Access (#88)
- Test cases ID clean up and documentation for Device Memory Access
- Added group for deprecated Context Management

[ROCm/hip-tests commit: 15c91808cc]
2023-06-28 09:47:04 +05:30
milos-mozetic a8f65237eb EXSWHTEC-224 - Test cases ID clean up and documentation for Device Management (#70)
- Test cases ID clean up and documentation for Device Management
- Adjust doxygen comments to fix bugs
- Adjust defgroup comments for test modules

[ROCm/hip-tests commit: d0295c4295]
2023-06-28 09:44:00 +05:30
ROCm CI Service Account 1a351b31f4 SWDEV-393637 - Standardize the way to implement wait mechanism (#316)
Change-Id: I59027667806878191f9c641f27ce47e6f85ba40c

[ROCm/hip-tests commit: 5f4af7cde4]
2023-06-21 21:27:36 +05:30
Maneesh Gupta 695870d846 SWDEV-397358 - Fix hipDeviceSetCacheConfig & hipDeviceSetSharedMemConfig tests (#312)
[ROCm/hip-tests commit: efc742a900]
2023-06-21 16:00:42 +05:30
ROCm CI Service Account 9555293fe8 SWDEV-387508 - do not treat uuid as a string (#253)
Change-Id: Ic093384947637fe9242c5840349f6d71aea28e69


[ROCm/hip-tests commit: 9726351ae8]
2023-05-30 12:25:47 -07:00
ROCm CI Service Account 4165fbd085 SWDEV-362365 - Correct error code. (#224)
Change-Id: I329a3296ce56ae741118b4f66294001025d48443


[ROCm/hip-tests commit: 8f296fcc58]
2023-04-20 21:08:34 -07:00
ROCm CI Service Account c634221b82 SWDEV-367689 - [catch2][dtest] UnifiedAddress attribute support for AMD (#204)
Change-Id: Ie820e8d9fb59322fb66380bf676a66362adc0b65

[ROCm/hip-tests commit: d3942fe73b]
2023-03-24 16:00: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 c069927c13 SWDEV-372064 - Check peer access supported before enable or disable it. (#81)
Change-Id: I32263089be3f00f3503422dcb63726eb2a2930bf

[ROCm/hip-tests commit: c051a4395b]
2023-01-10 17:12:42 +05:30
Maneesh Gupta b75decfdc1 Update hipDeviceReset.cc
- Don't destroy the stream after reset since behavior is not consistent.

[ROCm/hip-tests commit: 7edaf99a1c]
2022-12-05 08:56:05 +05:30
Mirza Halilčević 1ebac1664e EXSWHTEC-3 - Implement tests for hipDeviceReset (#2873)
* Implement tests for hipDeviceReset

- Basic test for behaviour validation
- Multithreaded test similar to basic test.

* Update license boilerplate.

Signed-off-by: Dino Music <dino.music@htecgroup.com>

* EXSWHTEC-3 - Add stream and memory checks to hipDeviceReset tests.

* EXSWHTEC-3 - Corrected expected error code for hipStreamDestroy

* EXSWHTEC-3 - Corrected check ordering in
Unit_hipDeviceReset_Positive_Threaded test.

* EXSWHTEC-3 - Exclude hipDeviceSetGetCacheConfig checks for AMD

* EXSWHTEC-3 - Corrected merge error in device/CMakeLists.txt

* EXSWHTEC-3 - Remove NVIDIA guards from tests and relax the code.

* EXSWHTEC-3 - Update tests to take into account unsupported operations on AMD

* EXSWHTEC-3 - Fix bug in Unit_hipDeviceReset_Positive_Threaded test.

* EXSWHTEC-3 - Disable hipDeviceReset tests for AMD.


[ROCm/hip-tests commit: 65ba7da607]
2022-11-30 20:37:20 -08:00
nives-vukovic 29f3e73eb4 EXSWHTEC-64 - Implement tests for hipInit and hipDriverGetVersion (#2971)
- Add simple positive and negative test for hipInit api
- Add simple positive and negative test for hipDriverGetVersion api
- Disable hipInit negative test on AMD

[ROCm/hip-tests commit: 90417c23d1]
2022-11-14 15:05:14 +05:30
Mirza Halilčević 3b31bcc00d EXSWHTEC-10 - Implement additional tests for hipIpcOpenMemHandle (#2880)
- Verify that opening the same handle in different contexts on same device causes an error
- Verify that opening the handle in the process that created it causes an error
- Remove linux guard from test file and exclude test from windows build with cmake.
- Disable Unit_hipIpcOpenMemHandle_Negative_Open_In_Creating_Process for AMD.

[ROCm/hip-tests commit: f9aceabe26]
2022-11-07 16:50:44 +05:30
Mirza Halilčević a96efc3b66 EXSWHTEC-27 - Implement tests for hipDeviceSetSharedMemConfig and hipDeviceGetSharedMemConfig (#2920)
- Negative parameter tests
- Default return value test
- Multithreaded test
- Adjust hipDeviceSetGetSharedMemConfig tests according to new return value.

[ROCm/hip-tests commit: 03f847847e]
2022-11-07 14:01:36 +05:30
Mirza Halilčević f491348bee EXSWHTEC-12 - Implement additional tests for hipIpcGetMemHandle (#2879)
- Verify that unique handles are returned for consecutive calls
- Verify that unique handles are returned for separate allocations at same address
- Verify that freed memory causes an error
- Verify that out of bounds pointer will cause an error.
- Remove linux guard from test file and exclude test from windows build with cmake.
- Fix expected error in hipIpcGetMemHandle negative tests.

[ROCm/hip-tests commit: dca25f3ba4]
2022-11-07 14:01:10 +05:30
nives-vukovic fcdbcd743a EXSWHTEC-65 - Implement additional Initialization and Version tests (#2972)
- Separate hipRuntimeGetVersion and hipDeviceGetUuid tests into positive and negative tests
 - Split Unit_hipDeviceGetUuid into Unit_hipDeviceGetUuid_Positive and Unit_hipDeviceGetUuid_Negative
 - Split Unit_hipRuntimeGetVersion_NegAndValTst into Unit_hipRuntimeGetVersion_Positive and Unit_hipRuntimeGetVersion_Negative
- Modify tests to use hipDevice_t instead of integer for devices in hipDeviceGetUuid negative test
- Implement additional Initialization and Version tests
 - Expand hipDeviceComputeCapability negative test with case when device is invalid
 - Expand hipDeviceGetP2PAttribute negative test with case when src and dst devices are the same
 - Expand hipDeviceGetP2PAttribute negative test with case when device is out of bound
 - Modify hipDeviceTotalMem negative test with case when device is invalid
 - Implement Unit_hipDeviceGetPCIBusId_PartialFill test which validates partial filling the bus id into a char array
- Fix minor formatting issues and change hipDeviceGetPCIBusId partial fill test into negative
- Modify negative tests to use integer device values
- Disable hipDeviceGetPCIBusId negative test on AMD

[ROCm/hip-tests commit: d7fafa8696]
2022-11-04 19:29:26 +05:30
Mirza Halilčević 47050658dc EXSWHTEC-9 - Implement additional tests for hipIpcCloseMemHandle (#2881)
- Verify that memory stays mapped when reference count is non zero
- Verify that memory stays mapped if handle is closed in a second process
- Verify that attempting to close handle in the process that created it causes an error
- Correct header includes.
- Add additional pointer check to reference counting test.
- Disable Unit_hipIpcCloseMemHandle_Negative_Close_In_Originating_Process test for AMD.

[ROCm/hip-tests commit: 86fa9725c4]
2022-11-04 19:26:53 +05:30
Mirza Halilčević 03e871aea5 EXSWHTEC-8 - Implement additional test for hipGetDeviceFlags (#2877)
- Validate that hipGetDeviceFlags returns flags with which the current context was created.
- Disable Unit_hipGetDeviceFlags_Positive_Context on AMD

[ROCm/hip-tests commit: a6bbefbd95]
2022-11-04 19:24:58 +05:30
nives-vukovic 1f0ab7b47f EXSWHTEC-71 - Implement P2P Device Access positive and negative tests (#2980)
- Implemented P2P Device Access positive and negative tests for the following functions:
 - hipDeviceCanAccessPeer
 - hipDeviceEnablePeerAccess
 - hipDeviceDisablePeerAccess
- Expand P2P Device Access negative tests
 - Add hipDeviceEnablePeerAccess negative test when flag is invalid and access is already enabled
 - Add hipDeviceDisablePeerAccess negative test when access is not enabled and when it is disabled twice

[ROCm/hip-tests commit: 79162275d9]
2022-11-04 08:43:33 +05:30
Mirza Halilčević 40680e1c0f EXSWHTEC-28 - Implement tests for hipDeviceSetMemPool and hipDeviceGetMemPool (#2876)
- Test behaviour with valid arguments for both APIs
- Test with invalid parameters.
- Default return value test
- Multithreaded test
- Enable tests for nvidia platform.

[ROCm/hip-tests commit: 44a48a387e]
2022-11-03 10:16:24 +05:30
Mirza Halilčević 39259e08fb EXSWHTEC-26 - Implement tests for hipDeviceSetCacheConfig and hipDeviceGetCacheConfig (#2919)
- Negative parameter tests
- Default return value test
- Multithreaded test
- Reorder tests and generate test cases for all available devices in certain tests.
- Add checks for hipDeviceSetCacheConfig not being supported on AMD.
- Remove NVIDIA guards from tests and disable tests on AMD platform.

[ROCm/hip-tests commit: 77da7331c1]
2022-11-03 08:02:25 +05:30
Mirza Halilčević cd961a741c Implement tests for hipDeviceGetDefaultMemPool (#2875)
- Test that returned mem_pool is not a nullptr
- Tests with invalid parameters.

[ROCm/hip-tests commit: 42681b01c9]
2022-11-02 19:25:37 +05:30
Mirza Halilčević 052ce69ecc EXSWHTEC-2 - Implement additional tests for hipDeviceSynchronize (#2872)
- Test synchronization when no work is enqueued on streams
- Test synchronization on default stream
- Modify tests to run for all devices.
 - Remove unnecessary check in Unit_hipDeviceSynchronize_Positive_Empty_Streams test.

[ROCm/hip-tests commit: 29b9a4a0c0]
2022-11-02 14:41:34 +05:30
ROCm CI Service Account 4756626aab SWDEV-360748 - Disable hipExtGetLinkTypeAndHopCount_Positive_Basic test on Windows (#3034)
Change-Id: I0a1ae08c4f766baf27df115de9257ca8d5533af0

[ROCm/hip-tests commit: 1787d43b70]
2022-10-27 20:24:56 +05:30
Paulius Velesko 65a428aaff Catch2 Test Fixes (#2961)
* test fixes

* address PR comment

* PR comment fixing Nvidia pass

* add additional kernel launch checks

* pr comments


[ROCm/hip-tests commit: da453211ed]
2022-09-30 15:07:25 -07:00
ROCm CI Service Account 0fc914ca05 SWDEV-331160 - [catch2][dtest] Test cases to test api hipDeviceSetLimit() (#2863)
Change-Id: Ifb78392b55b60ce8b3eb7822a0b32c8fac8cc594

[ROCm/hip-tests commit: b95baa3a18]
2022-09-26 19:49:00 +05:30
Mirza Halilčević 68b3eed631 EXSWHTEC-4 - Implement printing of certain device information (#2884)
* Implement printing out of device count to standard output
* Implement printing out of device attributes retrieved by hipDeviceGetAttribute.
* Implement printing of device properties retrieved by hipGetDeviceProperties.

[ROCm/hip-tests commit: 51a22bb085]
2022-09-26 13:46:38 +05:30
Mirza Halilčević 3acafe7451 EXSWHTEC-5 - Implement additional test for hipSetDevice (#2874)
- Test functionality in multithreaded environment.

Signed-off-by: Dino Music <dino.music@htecgroup.com>
Co-authored-by: Mirza Halilcevic <mirza.halilcevic@htecgroup.com>

[ROCm/hip-tests commit: 9e03f14592]
2022-09-19 21:56:03 +05:30
Mirza Halilčević f15e807ba8 EXSWHTEC-11 - Implement tests for hipExtGetLinkTypeAndHopCount (#2878)
- Validate hop count and verify that the API is commutative
- Negative parameter tests.

Signed-off-by: Dino Music <dino.music@htecgroup.com>
Co-authored-by: Mirza Halilcevic <mirza.halilcevic@htecgroup.com>

[ROCm/hip-tests commit: 132a54564e]
2022-09-19 11:28:35 +05:30