- 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
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
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
New C++ interfaces:
hipOccupancyMaxPotentialBlockSizeVariableSMem() and
hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags()
Change-Id: Ifae9d6b94b159e59cbf616f180028abb18a96527