Commit graph

350 Commits

Autor SHA1 Nachricht Datum
ROCm CI Service Account 720de09efd SWDEV-346657 - add more hipStreamAcb test (#3064)
* SWDEV-346657 - add more hipStreamAcb test

Change-Id: If94628ec9c285e9689ce471931b3c40b7d3ece84

[ROCm/hip commit: 955f1e4979]
2022-11-28 20:16:16 +05:30
ROCm CI Service Account e7b29faa2c SWDEV-306122 - [catch2][dtest] Added test for hipUserObjectCreate, hipUserObjectRelease, hipUserObjectRetain, hipGraphReleaseUserObject, hipGraphRetainUserObject API (#3061)
* SWDEV-306122 - [catch2][dtest] Added test for hipUserObjectCreate, hipUserObjectRelease, hipUserObjectRetain, hipGraphReleaseUserObject, hipGraphRetainUserObject API

Change-Id: I7fd25bcc23f0629d92296ab7b20258a6e268a58b

[ROCm/hip commit: d76a487187]
2022-11-28 20:15:49 +05:30
ROCm CI Service Account e86ee86479 SWDEV-306410 - Add Unit_hipEventMGpuMThreads* (#3095)
Change-Id: Ieaaed1d15b4d258103d8341d4b17d9f83a9e4785

[ROCm/hip commit: 8202097629]
2022-11-28 14:04:36 +05:30
ROCm CI Service Account cb69c9393b SWDEV-357759 - [catch2][dtest] Adding additional functional tests for hipStreamBeginCapture() API (#3094)
Change-Id: I7b89dcb6aa24eae0daf2974733ddeb6d3902cafa

[ROCm/hip commit: 8c79142035]
2022-11-28 14:04:25 +05:30
ROCm CI Service Account 97dc389893 SWDEV-367463 - Add unit test for hipMallocManaged call w/ large size (#3089)
Change-Id: I9e9f6687ec837f3aaa1567d8b00f15925b7dd2c2

[ROCm/hip commit: 5e50c01e44]
2022-11-28 14:04:01 +05:30
ROCm CI Service Account 43c7642113 SWDEV-348684 - Fixed catch-2 test failure (#3073)
Change-Id: Ib21c26a3c8e51f0b7f132ecd4ad209dfef1d0689

[ROCm/hip commit: d8efb5fd4d]
2022-11-28 14:03:51 +05:30
ROCm CI Service Account fc2e5db0d3 SWDEV-327563 - deviceLib build fix for nvidia (#3072)
Change-Id: Ic66242caa21f9ba6f41255d84a3fd3e54b481b46

[ROCm/hip commit: 5698fed162]
2022-11-28 14:03:31 +05:30
Maneesh Gupta 292bdcb7e2 Disable wall clock test temporarily
[ROCm/hip commit: 385a114025]
2022-11-23 14:13:59 +05:30
Maneesh Gupta cc80b0631b Better handle failures in CI infra (#3098)
* Update Jenkinsfile
* Update tests/catch/unit/CMakeLists.txt

[ROCm/hip commit: 81c12ab01d]
2022-11-23 12:34:02 +05:30
ROCm CI Service Account 7047e3cb1b SWDEV-348282 - fixed intermittent failure fo hipCGMultiGrid* and hipCGThread* tests, porting over to catch2 in the process (#3067)
Change-Id: Id22dfb4ab2ee8171242fbf6a10886ff3e4abc926


[ROCm/hip commit: 01da3903c5]
2022-11-18 12:14:12 -08:00
ROCm CI Service Account 02a1e1141d SWDEV-346579 - atomics test cases for non MI2xx/MI3xx (#3060)
Replace the internal __builtin__ functions with external APIs

Change-Id: Ia3cf37af004b5b9a4833b18a8771a8864772beb4


[ROCm/hip commit: 0acac9c7db]
2022-11-16 14:01:05 -08:00
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
ROCm CI Service Account cd6b6ca2c3 SWDEV-327563 - Windows Enable fixed tests v5 (#3059)
Change-Id: Ie144e481f38b3e5d462f64d76ab4fd32043f2b46

[ROCm/hip commit: 4fbc08e6c4]
2022-11-07 15:36:09 +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
nives-vukovic c889a9f6f1 EXSWHTEC-17 - Implement additional hipStreamWaitEvent tests (#2910)
- Add simple test that waits for an event - Unit_hipStreamWaitEvent_Default
- Add negative test when stream is uninitialized - Unit_hipStreamWaitEvent_WithUninitializedStream
- Minor modification of Unit_hipStreamWaitEvent_DifferentStreamstxt
- Modify uninitialized stream error code

[ROCm/hip commit: e99b3ef09c]
2022-11-03 08:01:37 +05:30
nives-vukovic 86d274e992 EXSWHTEC-13 - Implement positive test for hipEventCreate (#2901)
- Add hipEventCreate.cc file with a simple positive unit test
- Add newly created file into CMakeLists.txt
- Update hipEventCreate test according to coding guidelines

[ROCm/hip commit: 5664a6299f]
2022-11-02 21:32:58 +05:30
Mirza Halilčević 47306c02c0 EXSWHTEC-7 - Implement tests for error handling APIs (#2883)
- Validate that hipGetErrorName returns a non empty string for all error enumerators
- Validate that hipGetErrorString returns a non empty string for all error enumerators
- Negative parameter test for hipGetErrorName and hipGetErrorString
- Validate expected behaviour of hipGetLastError and hipPeekAtLastError
- Multithreaded tests for hipGetLastError and hipPeekAtLastError
- Remove threaded_zig_zag_test.
- Validate error string for invalid error enumerator
- Remove empty lines from HipGetLastErrorThreadedTest and HipPeekAtLastErrorTest.
- Removed unnecessary check in hipGetErrorString negative test.

[ROCm/hip commit: e4c0cb3fca]
2022-11-02 21:01:54 +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
ROCm CI Service Account 847c6ee3a8 SWDEV-306122 - [catch2][dtest] Additional tests for hipGraphGetNodes/hipGraphGetRootNodes api (#2860)
Change-Id: I4e9a6eadd92b6de4aded0aa96464bfcc59441ac4

[ROCm/hip commit: 60a07fd66f]
2022-11-02 14:42:11 +05:30
ROCm CI Service Account cb6ce17b8d SWDEV-347688 - port compiler folder Dtest (#2858)
Change-Id: I79d505881b23d2f12429609cc8cbf478d19bf944

[ROCm/hip commit: c108e595d1]
2022-11-02 14:41:55 +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 2edf1bea80 SWDEV-306122 - [catch2][dtest] hipGraph tests for hipStreamGetCaptureInfo_V2 api (#2854)
Change-Id: Ia55eae2d04e3d7f229aa571fe94e2e8e0dfd5603

[ROCm/hip commit: 84650ef5aa]
2022-11-02 11:50:51 +05:30
ROCm CI Service Account bd4b8d8b3e SWDEV-352687 - Updated hipMemAdvise_TstAlignedAllocMem test code (#3041)
Change-Id: Ie6690116d18efbb8586c6ab065550a46a134a611

[ROCm/hip commit: a26b219626]
2022-11-02 08:31:55 +05:30
nives-vukovic 1d5763d4fa EXSWHTEC-25 - Update Unit_hipEventCreateWithFlags_Positive test to include hipEventInterprocess flag on AMD (#3036)
* Implement tests for hipEventCreateWithFlags

- Add hipEventCreateWithFlags.cc with a simple positive unit test
- Divide Unit_hipEventCreate_NullCheck into two separate tests
- Add newly created file into CMakeLists.txt
- Update Unit_hipEventCreateWithFlags_Positive test to include hipEventInterprocess flag

[ROCm/hip commit: 2b57acc903]
2022-11-02 08:31:41 +05:30
ROCm CI Service Account 0564c96be3 SWDEV-306122 - [catch2][dtest] Adding following tests for hipGraphAddEventWaitNode() API. (#2591)
1. Functional Tests
2. Negative Tests

Change-Id: I970a41e9c070c74c179818e74bfd93276dcfad10

[ROCm/hip commit: 80626a9c4c]
2022-11-02 08:30:06 +05:30
ROCm CI Service Account d492bdd82c SWDEV-347670 - Enable GPU StreamWrite and StreamWait tests on Windows (#3031)
This patch skips Unit_hipStreamValue_*_Blocking test cases because of a soft hang
Stream write and stream wait passing tests can be enabled in the device
attribute.

Unit_hipStreamValue_*_Blocking tests will be enabled when the hang is fixed

Change-Id: Ieea831162208c4ec172b35a0421c66f6b1a21ed7


[ROCm/hip commit: b0d6892692]
2022-10-31 22:08:38 -07:00
ROCm CI Service Account 8400d97a79 SWDEV-360437 - fix tests with hipGetLastError() (#3040)
Unit_hipFreeImplicitSyncDev*
Unit_hipFreeImplicitSyncHost*
Unit_hipFreeImplicitSyncArray*
Unit_hipStreamCreateWithFlags_DefaultStreamInteraction
Unit_hipStreamSynchronize_NullStreamAndStreamPerThread

Change-Id: I382cf13bfe15bd8b1af657bdbb8c4f9043ea6f17


[ROCm/hip commit: 41acbf98be]
2022-10-31 17:38:26 -07:00
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
ROCm CI Service Account 7f61470cd6 SWDEV-298757 - hipMemRangeGetAttributes.cc Adding test cases based on hipMemRangeGetAttributes() api (#3024)
Change-Id: Ife2b062d6fe45bbf7bd365d0571009b5d77d5135

[ROCm/hip commit: 93a5d92bce]
2022-10-27 20:22:40 +05:30
ROCm CI Service Account dd012065e8 SWDEV-360317 - Correct array creation. (#3023)
Change-Id: I9fd80bc4202a10a83a6c22a813af6cdbb84f3c53

[ROCm/hip commit: 7cc1e219c8]
2022-10-27 20:22:22 +05:30
ROCm CI Service Account 9ef84113f3 SWDEV-286739 - Support hipDeviceAttributeWallClockRate (#2984)
Part 4: Add unit test of wall_clock64()

Change-Id: I52cbba6d67d21cde6da19c5ab533159f426a9bf7

[ROCm/hip commit: fb938a607f]
2022-10-19 19:12:01 +05:30
ROCm CI Service Account 84f8cbed48 SWDEV-350781 - Address Unit_hipMemAdvise_TstAlignedAllocMem catch test failure (#2999)
Change-Id: I79002ac644667f280ee14a07c28547fb878b320d

[ROCm/hip commit: c4efb12f1b]
2022-10-19 17:38:03 +05:30
ROCm CI Service Account 062a53e6a1 SWDEV-318349 - Enable test of graph launched by peer (#2997)
- Enable Unit_hipGraphInstantiateWithFlags_DependencyGraph for AMD.
- Add stream sync for null stream.
- Fix Unit_hipGraphInstantiateWithFlags_DependencyGraph.

change-Id: I5774563fdfed1afd29a43927f3630adbfb75c48a

[ROCm/hip commit: 53599bce3e]
2022-10-19 16:52:06 +05:30
ROCm CI Service Account 5203830518 SWDEV-361129 - [catch2][dtest] Enabling tests hipGraphInstantiateWithFlags for AMD (#2987)
Change-Id: I39227ab51417e55f4ab05c48b61e9735856e58ac

[ROCm/hip commit: 752acff9b2]
2022-10-19 16:49:18 +05:30
ROCm CI Service Account ee7baa1473 SWDEV-337766 - [catch2][dtest]Fix for MI200 failures for tests: Unit_hipMemcpyPeer_Negative and Unit_hipMemcpyPeerAsync_Negative (#2986)
Change-Id: I88aa2580a589f6fcef3a098ee68922e3431aa75a

[ROCm/hip commit: e28f31e1f5]
2022-10-19 16:49:04 +05:30
ROCm CI Service Account 6a87199474 SWDEV-308368 - Fix coherent test bugs (#2985)
1. Remove hipDeviceAttributePageableMemoryAccess checking as it is used to check xnack+ rather than fine-grained synchronization.
Note: hipHostMalloc() will alloc memory with fine-grained access and atomic by default when env HIP_HOST_COHERENT=1. For more information, see hip_programming_guide.
2. Fix some other bugs.

Change-Id: Ieaaed1b15b4d258193d834104b17d9f03a9e4781

[ROCm/hip commit: 15517aaf18]
2022-10-19 16:48:44 +05:30
ROCm CI Service Account 996399531c SWDEV-348820 - Fix hipPointerAttribute_t incompatibility (#2856)
- Mark hipPointerAttribute_t.memoryType deprecated
- Instead add hipPointerAttribute_t.type
- Update testcases & documentation to use hipPointerAttribute_t.type

Change-Id: I3ba58cd2defe82102f9415bbb90cf151e08499dd

[ROCm/hip commit: 96b3b9eaf5]
2022-10-12 08:31:25 +05:30
music-dino e5de7bbf55 EXSWHTEC-94 - Implement helper classes and functions for memory tests (#2978)
- Implement helper classes and functions for memory tests
- Remove c++14 standard constraint on memory tests
- Remove GenerateLinearAllocationFlagCombinations until finished

[ROCm/hip commit: 5219f5707f]
2022-10-12 08:30:51 +05:30
Maneesh Gupta a04eeb66ff SWDEV-1 - Add missing checks in hipMemoryAllocateCoherent.cc
[ROCm/hip commit: a0dfc6a2c8]
2022-10-11 12:01:36 +05:30
Maneesh Gupta 3db4c84176 SWDEV-1 - Add missing checks in hipMemsetSync.cc
[ROCm/hip commit: 1606235b12]
2022-10-11 12:00:23 +05:30
Maneesh Gupta 16b5c5d7a6 SWDEV-1 - Add missing checks in MemUtils.hh
[ROCm/hip commit: 47df29a9d0]
2022-10-11 11:58:41 +05:30
Maneesh Gupta 9083aaa30a SWDEV-1 - Add missing checks in hipDrvMemcpy3D.cc
[ROCm/hip commit: 7fc4b7d6f4]
2022-10-11 11:15:26 +05:30