Commit Graph

6685 Commits

Author SHA1 Message Date
Mirza Halilčević e4c0cb3fca 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.
2022-11-02 21:01:54 +05:30
Mirza Halilčević 6ebe7822cc Implement tests for hipDeviceGetDefaultMemPool (#2875)
- Test that returned mem_pool is not a nullptr
- Tests with invalid parameters.
2022-11-02 19:25:37 +05:30
ROCm CI Service Account 60a07fd66f SWDEV-306122 - [catch2][dtest] Additional tests for hipGraphGetNodes/hipGraphGetRootNodes api (#2860)
Change-Id: I4e9a6eadd92b6de4aded0aa96464bfcc59441ac4
2022-11-02 14:42:11 +05:30
ROCm CI Service Account c108e595d1 SWDEV-347688 - port compiler folder Dtest (#2858)
Change-Id: I79d505881b23d2f12429609cc8cbf478d19bf944
2022-11-02 14:41:55 +05:30
Mirza Halilčević ca2ed9b357 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.
2022-11-02 14:41:34 +05:30
ROCm CI Service Account 84650ef5aa SWDEV-306122 - [catch2][dtest] hipGraph tests for hipStreamGetCaptureInfo_V2 api (#2854)
Change-Id: Ia55eae2d04e3d7f229aa571fe94e2e8e0dfd5603
2022-11-02 11:50:51 +05:30
ROCm CI Service Account bd4181a260 SWDEV-349226 - Add missing hipDataTypes (#3039)
Change-Id: I3326f326aebe677a93a55ffd7b56b8f6402e0194
2022-11-02 10:44:22 +05:30
searlmc1 361e0de646 Use llvm-readelf rather than readelf (#2941) 2022-11-02 10:44:04 +05:30
ROCm CI Service Account a26b219626 SWDEV-352687 - Updated hipMemAdvise_TstAlignedAllocMem test code (#3041)
Change-Id: Ie6690116d18efbb8586c6ab065550a46a134a611
2022-11-02 08:31:55 +05:30
nives-vukovic 2b57acc903 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
2022-11-02 08:31:41 +05:30
ROCm CI Service Account 80626a9c4c SWDEV-306122 - [catch2][dtest] Adding following tests for hipGraphAddEventWaitNode() API. (#2591)
1. Functional Tests
2. Negative Tests

Change-Id: I970a41e9c070c74c179818e74bfd93276dcfad10
2022-11-02 08:30:06 +05:30
ROCm CI Service Account 985c42c5ae SWDEV-340007 - Correct hipEventQuery return values (#2852)
Change-Id: Ie59cd0e5a63f37def5fefe444d4ba68a2ba3a382
2022-11-02 08:29:50 +05:30
ROCm CI Service Account b0d6892692 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
2022-10-31 22:08:38 -07:00
ROCm CI Service Account 41acbf98be SWDEV-360437 - fix tests with hipGetLastError() (#3040)
Unit_hipFreeImplicitSyncDev*
Unit_hipFreeImplicitSyncHost*
Unit_hipFreeImplicitSyncArray*
Unit_hipStreamCreateWithFlags_DefaultStreamInteraction
Unit_hipStreamSynchronize_NullStreamAndStreamPerThread

Change-Id: I382cf13bfe15bd8b1af657bdbb8c4f9043ea6f17
2022-10-31 17:38:26 -07:00
ROCm CI Service Account d62eaeeda5 SWDEV-360748 - Disable hipExtGetLinkTypeAndHopCount_Positive_Basic test on Windows (#3034)
Change-Id: I0a1ae08c4f766baf27df115de9257ca8d5533af0
2022-10-27 20:24:56 +05:30
ROCm CI Service Account 88389c4495 SWDEV-332251 - removal of hip-catch* pkg during rocm uninstallation (#3033)
Adds rocm-core dependency

Change-Id: I749aa19bbbccb92f3ae2314d5029a1b96555e851
2022-10-27 20:24:33 +05:30
ROCm CI Service Account 037cc162d0 SWDEV-356567 - Remove notes for limitation of using start & end events of same hipExtLaunchKernelGGL in hipEventElapsedTime. (#3032)
Change-Id: I6041f90f6e3a41d19697a31f31220aedfa5f2fa8
2022-10-27 20:24:17 +05:30
ROCm CI Service Account 5cc1262f21 SWDEV-356182 - Add environment variable GPU_MAX_HW_QUEUES (#3030)
Change-Id: Icfe92e299a029c9a5fa0e07d0b724e2b92b6fcbe
2022-10-27 20:24:03 +05:30
ROCm CI Service Account 5c48962930 SWDEV-354898 - Add document for timer function wall_clock64 (#3029)
Change-Id: I5e4caf6e7db6ce8ed93d92700772b1a682bc11f9
2022-10-27 20:23:51 +05:30
ROCm CI Service Account c74504290b SWDEV-354898, SWDEV-355542 - Update HIP header for mis-spelling and doxygen Index (#3027)
Change-Id: I19f883f9072c8cc7599a4b1002bf221d9fcde7cd
2022-10-27 20:23:40 +05:30
ROCm CI Service Account 192ff329f6 SWDEV-312700 - Fixing memory corruption at the test. (#3026)
Change-Id: I85cec43e1e57ceb3a9972a924aeb4505c055a483
2022-10-27 20:23:22 +05:30
ROCm CI Service Account 0175bfe045 SWDEV-346657 - increase time for random failure (#3025)
- increase the time duration for stream sync to avoid test failure

Change-Id: I36264677f70cd6ca2bd8bcde06c19da0637a0e64
2022-10-27 20:23:04 +05:30
ROCm CI Service Account 93a5d92bce SWDEV-298757 - hipMemRangeGetAttributes.cc Adding test cases based on hipMemRangeGetAttributes() api (#3024)
Change-Id: Ife2b062d6fe45bbf7bd365d0571009b5d77d5135
2022-10-27 20:22:40 +05:30
ROCm CI Service Account 7cc1e219c8 SWDEV-360317 - Correct array creation. (#3023)
Change-Id: I9fd80bc4202a10a83a6c22a813af6cdbb84f3c53
2022-10-27 20:22:22 +05:30
Rakesh Roy d2d2939188 SWDEV-361590 - Fix Palamida scan issue (#3020)
- Don't use  code from Wikipedia (prohibited sources)
2022-10-25 09:08:18 -07:00
Satyanvesh Dittakavi 685390469a SWDEV-350781 - Remove Pagetable validation tests from HIP (#2970) 2022-10-20 07:26:03 +05:30
ROCm CI Service Account fb938a607f SWDEV-286739 - Support hipDeviceAttributeWallClockRate (#2984)
Part 4: Add unit test of wall_clock64()

Change-Id: I52cbba6d67d21cde6da19c5ab533159f426a9bf7
2022-10-19 19:12:01 +05:30
ROCm CI Service Account c4efb12f1b SWDEV-350781 - Address Unit_hipMemAdvise_TstAlignedAllocMem catch test failure (#2999)
Change-Id: I79002ac644667f280ee14a07c28547fb878b320d
2022-10-19 17:38:03 +05:30
ROCm CI Service Account 8baf649ff5 SWDEV-361383 - Fixing compilation issue for stress test files under catch2 framework (#2998)
Change-Id: I4253a6cdb2c10bcb0021f869b7b3c4f1acd28787
2022-10-19 16:52:24 +05:30
ROCm CI Service Account 53599bce3e 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
2022-10-19 16:52:06 +05:30
ROCm CI Service Account acf9688165 SWDEV-356559 - update the note on hipIpcOpenMemHandle showing the different from CUDA (#2988)
Change-Id: I4116eaa3a8f31283dda7d7c0c680acdb954036b9
2022-10-19 16:50:51 +05:30
ROCm CI Service Account 752acff9b2 SWDEV-361129 - [catch2][dtest] Enabling tests hipGraphInstantiateWithFlags for AMD (#2987)
Change-Id: I39227ab51417e55f4ab05c48b61e9735856e58ac
2022-10-19 16:49:18 +05:30
ROCm CI Service Account e28f31e1f5 SWDEV-337766 - [catch2][dtest]Fix for MI200 failures for tests: Unit_hipMemcpyPeer_Negative and Unit_hipMemcpyPeerAsync_Negative (#2986)
Change-Id: I88aa2580a589f6fcef3a098ee68922e3431aa75a
2022-10-19 16:49:04 +05:30
ROCm CI Service Account 15517aaf18 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
2022-10-19 16:48:44 +05:30
ROCm CI Service Account 24c0cb92b3 SWDEV-353686 - add default value for missing function (#2991)
Change-Id: I76e95636ecf2c50a11d0120f3ffdfcf641841cdb
2022-10-17 16:57:32 +05:30
ROCm CI Service Account 274edb7725 SWDEV-356057 - [catch2][dtest] Adding tests for no GPU environment. (#2981)
Change-Id: I1f63bd2abb1b6fe427be7264e0f5fbfa07216727
2022-10-17 13:41:29 +05:30
ROCm CI Service Account 154009d64a SWDEV-355608 - Remove clang include path (#2996)
Clang doesn't need to be told where to find the clang headers

Change-Id: I175781731c43647676d91eedc8a915124f2479ab
2022-10-14 16:02:40 +05:30
ROCm CI Service Account 6d4c13adc2 SWDEV-325938 - Add missing queries for occupancy (#2995)
New C++ interfaces:
hipOccupancyMaxPotentialBlockSizeVariableSMem() and
hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags()

Change-Id: Ifae9d6b94b159e59cbf616f180028abb18a96527
2022-10-13 21:38:03 -07:00
ROCm CI Service Account aba1e8b921 SWDEV-327563 - Enable fixed Windows tests v4 (#2989)
Change-Id: Ifa85eea8356d332f555f54516cde9c922c63f6af
2022-10-13 14:01:13 -07:00
ROCm CI Service Account 005fd991cc SWDEV-357797 - Windows: hipcc to take in args with spaces inside quotes (#2990)
Avoids
"--offload-arch=gfx1034 --offload-arch=gfx1030"
from becoming
"--offload-arch=gfx1034\ --offload-arch=gfx1030"

Change-Id: I4ef0ffeaf5454c274ec4cfb0fe897e5fbc86d3c5
2022-10-13 10:56:40 -07:00
ROCm CI Service Account 96b3b9eaf5 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
2022-10-12 08:31:25 +05:30
music-dino 5219f5707f 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
2022-10-12 08:30:51 +05:30
Maneesh Gupta a0dfc6a2c8 SWDEV-1 - Add missing checks in hipMemoryAllocateCoherent.cc 2022-10-11 12:01:36 +05:30
Maneesh Gupta 1606235b12 SWDEV-1 - Add missing checks in hipMemsetSync.cc 2022-10-11 12:00:23 +05:30
Maneesh Gupta 47df29a9d0 SWDEV-1 - Add missing checks in MemUtils.hh 2022-10-11 11:58:41 +05:30
Maneesh Gupta 7fc4b7d6f4 SWDEV-1 - Add missing checks in hipDrvMemcpy3D.cc 2022-10-11 11:15:26 +05:30
Maneesh Gupta 172c6d78a9 SWDEV-1 - Add missing checks in hipMemcpyAsync.cc 2022-10-11 11:13:42 +05:30
Maneesh Gupta 4a745feb5f SWDEV-1 - Add missing checks in hipMemcpy.cc 2022-10-11 10:50:43 +05:30
Maneesh Gupta e16ec66c0f SWDEV-1 - Add missing checks in hipMemcpyAsync.cc 2022-10-11 10:44:04 +05:30
Maneesh Gupta 5afd5f6600 SWDEV-1 - Add missing checks in hipMemsetFunctional.cc 2022-10-11 10:42:36 +05:30