Commit Graph

34 Commits

Author SHA1 Message Date
nives-vukovic 7a9617e9f6 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 commit: 1f06f33d7d]
2022-11-14 15:05:14 +05:30
Mirza Halilčević 6b6d67dd61 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 commit: 809149ecc8]
2022-11-07 16:50:44 +05:30
Mirza Halilčević 822cccfb95 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 commit: cd4a634935]
2022-11-07 14:01:36 +05:30
Mirza Halilčević d1775f330c 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 commit: c504292c54]
2022-11-07 14:01:10 +05:30
nives-vukovic 6500f83b4f 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 commit: 10382f7f58]
2022-11-04 19:29:26 +05:30
Mirza Halilčević ddd1ea09cc 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 commit: dc5d658843]
2022-11-04 19:26:53 +05:30
Mirza Halilčević d872d637ae 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 commit: 7a3fecab50]
2022-11-04 19:24:58 +05:30
nives-vukovic d85184578f 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 commit: cbd52de94b]
2022-11-04 08:43:33 +05:30
Mirza Halilčević 8262f5545d 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 commit: 2db7c8778b]
2022-11-03 10:16:24 +05:30
Mirza Halilčević 5ee70b6d82 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 commit: 60c0251ff1]
2022-11-03 08:02:25 +05:30
Mirza Halilčević be9f0e1c75 Implement tests for hipDeviceGetDefaultMemPool (#2875)
- Test that returned mem_pool is not a nullptr
- Tests with invalid parameters.

[ROCm/hip commit: 6ebe7822cc]
2022-11-02 19:25:37 +05:30
Mirza Halilčević ec7f02b9c7 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 commit: ca2ed9b357]
2022-11-02 14:41:34 +05:30
ROCm CI Service Account a5acadc139 SWDEV-360748 - Disable hipExtGetLinkTypeAndHopCount_Positive_Basic test on Windows (#3034)
Change-Id: I0a1ae08c4f766baf27df115de9257ca8d5533af0

[ROCm/hip commit: d62eaeeda5]
2022-10-27 20:24:56 +05:30
Paulius Velesko 8d371ed6b6 Catch2 Test Fixes (#2961)
* test fixes

* address PR comment

* PR comment fixing Nvidia pass

* add additional kernel launch checks

* pr comments


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

[ROCm/hip commit: 2d53608d49]
2022-09-26 19:49:00 +05:30
Mirza Halilčević 109af3fe8c 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 commit: 8cb701166d]
2022-09-26 13:46:38 +05:30
Mirza Halilčević 8e62d89d92 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 commit: 0213870803]
2022-09-19 21:56:03 +05:30
Mirza Halilčević 91c0f780e8 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 commit: 18fc4f4508]
2022-09-19 11:28:35 +05:30
ROCm CI Service Account 218b075387 SWDEV-339150 - [catch2][dtest] Updating test Unit_hipGetDeviceAttribute_CheckFineGrainSupport: (#2846)
This PR fixes the failure of test Unit_hipGetDeviceAttribute_CheckFineGrainSupport on MI100

[ROCm/hip commit: 90f42bdf82]
2022-08-05 12:19:41 +05:30
Maneesh Gupta 685cc4f6f5 Fix win:setenv/unsetenv tests build failure
[ROCm/hip commit: 08d24c55d9]
2022-08-04 09:32:12 +05:30
Fábio f4ef7cc04f EXSWCPHIPT-123: Added testing for hipDeviceGetP2PAttribute (#2840)
[ROCm/hip commit: c435fd5c47]
2022-08-03 16:49:49 +05:30
Jatin Chaudhary a91894904b EXSWCPHIPT-116 - Adding tests for hipSet/GetDevice and hipDeviceGet (#2726)
[ROCm/hip commit: f9b66dbd16]
2022-07-21 10:43:09 +05:30
agunashe d56dc42fbd SWDEV-327563 - Win:setenv/unsetenv build failure. develop to staging (#2795)
* SWDEV-327563 - Win:setenv/unsetenv build failure. develop to staging

* SWDEV-327563 - Win:setenv/unsetenv build failure2. develop to staging

* SWDEV-327563 - Win:setenv/unsetenv build failure. develop to staging

Linux build failure

[ROCm/hip commit: 87f1090e95]
2022-07-12 09:24:32 -07:00
Jatin Chaudhary cf423dbcd3 EXSWCPHIPT-125 - Add tests for hipGetDeviceCount and restructure some SpawnProc tests (#2765)
[ROCm/hip commit: 9595654ddf]
2022-07-11 15:02:51 +05:30
Jatin Chaudhary 4f0b5d5af5 EXSWCPHIPT-124 - Add tests for hipDeviceTotalMem (#2749)
[ROCm/hip commit: e09f0792c3]
2022-06-28 09:03:03 +05:30
Finlay d1445ff49a EXSWCPHIPT-121 - hipGetSetDeviceFlags tests (#2747)
[ROCm/hip commit: 166173e12d]
2022-06-28 09:01:55 +05:30
ROCm CI Service Account 5980fb069c SWDEV-336538 - Update hipDeviceSetSharedMemConfig test (#2764)
Change-Id: Idc146a77007618454150a974a54b74cb2ef9ea31


[ROCm/hip commit: 334df00d36]
2022-06-22 15:09:24 -07:00
Finlay 6226efa0b6 EXSWCPHIPT-109 - hipDeviceGetName tests (#2731)
[ROCm/hip commit: 7ab1791df3]
2022-06-16 09:27:59 +05:30
Satyanvesh Dittakavi 15f05eb25b SWDEV-317716 - [catch2][dtest] Add test for hipDeviceGetUuid (#2614)
Change-Id: Ic2940cd45cacc32212df7c76ee8f4ca5e7e3740c

[ROCm/hip commit: 03ca05e443]
2022-06-10 21:17:10 +05:30
ROCm CI Service Account 87f24c155a SWDEV-325709 - Testing hipDeviceAttributeFineGrainSupport property (#2637)
Added a test to check hipDeviceAttributeFineGrainSupport property.

Change-Id: I9750ef5494e22f4eb7305e1719be9712a3079c37

[ROCm/hip commit: 9169520aaa]
2022-05-17 12:53:25 +05:30
ROCm CI Service Account cb9a8cfffe SWDEV-321511 - Enable device related disabled tests on Nvidia platform (#2518)
Change-Id: I95a62e9562a638cb3525862b9a5d2e640c10882c

[ROCm/hip commit: 17105259fe]
2022-03-10 16:45:54 +05:30
agunashe 6a5e1ea51e SWDEV-273235 - Linux: catch2 shared lib to executable (#2421)
Change-Id: I17101e39fd05eb35c087ebdf3cb005d428d9f206

[ROCm/hip commit: 6c24531156]
2021-11-26 11:02:29 +05:30
Rahul Garg 0991ef704b SWDEV-293742 - Update copyright year
Change-Id: I4248b2cebd3de056f9d5d417e0697da22fb964ef


[ROCm/hip commit: da2c352eb3]
2021-07-23 07:13:33 -04:00
sumanthtg 9c17929ae4 SWDEV-238517 - [dtest] Catch2 unit tests for device files.
Changes contain Device files under "hip/tests/src/runtimeApi/device" migrated to Catch2 and some additional device tests.

Change-Id: Ie88adc3c32c2079456b14e029cfc6c319b48d8f6


[ROCm/hip commit: 44e1ae449a]
2021-07-19 13:38:30 -04:00