1.Remove clock functions from some tests that don't need them.
2.In some memory pool tests and coherency tests, timer-based kernel
delay isn't reliable, use pinned host based notification instead.
3.Add CHECK_PCIE_ATOMICS_SUPPORT before some tests.
4.catch/unit/memory/hipMemoryAllocateCoherent.cc is removed
as it is useless and originally excluded in building.
5.Some tests can still pass even if clock rate =0, thus they
will be kept as is.
6.Some logic and format improvement in some tests.
Change-Id: I6b3c6bf54c61cffd45cd6f17c75998f751b75725
[ROCm/hip-tests commit: ec8ff45a1d]
* SWDEV-493276 - [catch2][dtest] Additional tests for Scratch limit change
* Removed the Kernel wait related scenarios
* Modified kernel operation
* Fixed PSDB NVIDIA build issue
* Restricted for Windows
* Used isSetScratchLimitSupported for all tests and modified isSetScratchLimitSupported
[ROCm/hip-tests commit: f7712bd5a8]
* Fntl tests of hipLaunchKernelExC, hipLaunchKernelEx and hipDrvLaunchKernelEx APIs
* Fixed the test failures on windows
[ROCm/hip-tests commit: 60b3aae3c0]
Unit_hipMalloc_AllocateMoreThanTotalRAM is an invalid test. hipMalloc is able to allocate more than RAM size if VRam is larger, unless the test is meant to only allocate on host device.
Previously this test may have passed because of an incorrect check on hipMalloc limit: we had incorrectly limited allocation to physical ram size. This is no longer correct. We could always allocate Vram limit or sometimes system ram limit if Vram is full, fixed in https://github.com/AMD-ROCm-Internal/clr/pull/122
Co-authored-by: Jimbo Xie <jiabaxie@amd.com>
[ROCm/hip-tests commit: e25680e4d1]
The test wrongly assumed that the reserved memory should always
be equal to the allocation size. However, suballocations are possible
Change-Id: I1d1f3c3cdb231188f8b35ed64ffe4e2a3a2f16f9
[ROCm/hip-tests commit: 168312b97f]
* This also removes test that is invalid on GPUs
- As it requires releasing memory on the device (which it does not do)
- Copying back the kernel argument to the host
- It is also a NO-OP as the queue has no pushes to pop
Change-Id: I8050cd400d34f78d5afce71bf0e3d57d1878bef0
[ROCm/hip-tests commit: 714cc594e7]
Unit_hipMemPoolApi_BasicAlloc expects to work on device 0, but other
tests will set not-0 devices in mgpu. This leads to hang of
Unit_hipMemPoolApi_BasicAlloc. Fix by set device 0 in head code
of Unit_hipMemPoolApi_BasicAlloc.
SWDEV-508872 - Fix Perf_hipPerfMemFill_test
When mem size is 2G, the test is so slow that it looks like stuckness.
Set top mem size to 1G can make the test pass in an acceptiable time.
Change-Id: Ie26dbf597e5ba8cb898d1aae5ed5ecf0267c3228
[ROCm/hip-tests commit: 94eea4db59]
The test sets the hipMemCreate and hipMemSetAccess properties
to device but accesses the mapped memory directly from the host.
Change-Id: I2ae51a2658acc01aff39fc371ba97191cc9b3878
[ROCm/hip-tests commit: d33a0fa75a]
Module and stream should be created on the same device, while hipModuleGetFunction can be called from any device.
Change-Id: I4a424f9631678684292e40e05ffbaf3d887aea55
[ROCm/hip-tests commit: 293ff3a025]