- Implement negative tests for hipGetSymbolAddress
- Implement negative tests for hipGetSymbolSize
- Reimplement positive test for both apis
- Expand positive test with memcpy to and from symbol
- Disable test sections that cause a segfault in CUDA
Add unit test: Unit_hipGraphKernelNodeGetSetParams_Functional
Add kernel node to graph with certain kernel params, now get kernel node parameters with hipGraphKernelNodeGetParams, then update the kernel node params with hipGraphKernelNodeSetParams, finally check taking effect after launching graph.
Change-Id: I2216f72f4dade6dd37663d3b0d821cb3d35d7856
* SWDEV-306122 - [catch2][dtest] Added test for hipUserObjectCreate, hipUserObjectRelease, hipUserObjectRetain, hipGraphReleaseUserObject, hipGraphRetainUserObject API
Change-Id: I7fd25bcc23f0629d92296ab7b20258a6e268a58b
- Add simple positive and negative test for hipInit api
- Add simple positive and negative test for hipDriverGetVersion api
- Disable hipInit negative test on AMD
* SWDEV-327563 - skip Unit_hipStreamSynchronize_NullStreamAndStreamPerThread.
Since the StreamPerThread is still not fixed
* SWDEV-327563 - skip graph and spt failing tests
- 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.
- Negative parameter tests
- Default return value test
- Multithreaded test
- Adjust hipDeviceSetGetSharedMemConfig tests according to new return value.
- 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.
Issue NMAKE : fatal error U1065: invalid option 'w'
Solution -
Windows to use Ninja but cmake needs to skip compiler test
Change-Id: I1f666254ce5188dff0897815677ce4d9faf55e4c
- 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
- 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.
- 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
- Test behaviour with valid arguments for both APIs
- Test with invalid parameters.
- Default return value test
- Multithreaded test
- Enable tests for nvidia platform.
- 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.
- 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
- Add hipEventCreate.cc file with a simple positive unit test
- Add newly created file into CMakeLists.txt
- Update hipEventCreate test according to coding guidelines
- 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.
- 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.
* 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