Commit Graph

659 Commits

Author SHA1 Message Date
Mirza Halilčević efddf09082 EXSWHTEC-189 - Implement new and update existing tests for the hipGraph*MemcpyNode1D family of APIs #14
Change-Id: I0f5e936fee6912ea24cc80c1013cf38ed41ff851
2024-02-19 22:36:19 +05:30
Mirza Halilčević 55b925f3ff EXSWHTEC-170 - Implement tests for Kernel Graph Node Attribute APIs #8
Change-Id: I75271f0d1906d31b16d09ca6acb94ee864e87d92
2024-02-19 22:34:58 +05:30
Rakesh Roy 978e165d33 SWDEV-1 - Merge github PRs to amd-staging
- https://github.com/ROCm/hip-tests/pull/154
- https://github.com/ROCm/hip-tests/pull/438
- https://github.com/ROCm/hip-tests/pull/425
- https://github.com/ROCm/hip-tests/pull/424
- https://github.com/ROCm/hip-tests/pull/423
- https://github.com/ROCm/hip-tests/pull/365
- https://github.com/ROCm/hip-tests/pull/356
- https://github.com/ROCm/hip-tests/pull/279
- https://github.com/ROCm/hip-tests/pull/274
- https://github.com/ROCm/hip-tests/pull/190
- https://github.com/ROCm/hip-tests/pull/189
- https://github.com/ROCm/hip-tests/pull/188
- https://github.com/ROCm/hip-tests/pull/156
- https://github.com/ROCm/hip-tests/pull/49
- https://github.com/ROCm/hip-tests/pull/439
- https://github.com/ROCm/hip-tests/pull/437
- https://github.com/ROCm/hip-tests/pull/436
- https://github.com/ROCm/hip-tests/pull/435
- https://github.com/ROCm/hip-tests/pull/193

Change-Id: I2529d0baf0f8d47d6215863321720cde2b1a846c
2024-02-19 15:33:25 +05:30
Nives Vukovic 09fc34b982 EXSWHTEC-253 - Implement tests for coalesced_group basic APIs (#154)
Change-Id: I81854598d8e1ae0b5cff24012e8f381258e0818f
2024-02-15 19:41:25 +05:30
Nives Vukovic 54f0642d76 EXSWHTEC-35 - Implement tests for hipMallocAsync and hipMallocFromPoolAsync (#438)
Change-Id: I5cc2ec8078d0de3ddc447ba4bdca74a159f77b12
2024-02-15 19:41:25 +05:30
Mirza Halilcevic c6ba00b9de EXSWHTEC-341 - Refactor tests for hipDeviceSetLimit and hipDeviceGetLimit (#425)
Change-Id: Ib1e6937d0e391ec31fac47b89bb59489cff6a284
2024-02-15 19:41:24 +05:30
Nives Vukovic 3831c582d2 EXSWHTEC-340 - Implement unit tests for MemFree Graph Node APIs (#424)
Change-Id: I3e43144bdbeee94aa5672668d7fea48b039e5001
2024-02-15 19:41:24 +05:30
Nives Vukovic 37f45585d2 EXSWHTEC-339 - Implement unit tests for MemAlloc Graph Node APIs (#423)
Change-Id: I6fa905982fc5a65bedfb3242ce18590e2ac813c2
2024-02-15 19:41:24 +05:30
Mirza Halilcevic 16128f659a EXSWHTEC-322 - Implement common utilities for texture fetching tests (#365)
Change-Id: I7cdf56008dce2551706bc5c0ab1a49133a6337e9
2024-02-15 19:41:24 +05:30
Nives Vukovic 2f783afe8c EXSWHTEC-316 - Implement tests for Complex type functions (#356)
Change-Id: I67d5e1fd02c7e40319f135bc9ae5bbbde85b5ee7
2024-02-15 19:41:24 +05:30
Nives Vukovic 9cadc3b875 EXSWHTEC-306 - Implement tests for memory device functions memcpy/memset (#279)
Change-Id: I609efbd4f6ebaa48571e14e11ff97340dca1ab95
2024-02-15 19:41:23 +05:30
Nives Vukovic 08a41abaad EXSWHTEC-307 - Implement tests for printf and __hip_hc_<add/sub/mul>8pk device functions (#274)
Change-Id: I4669d3f0f8cc062e75cd2b0a8aeee51868dd5b09
2024-02-15 19:41:23 +05:30
Nives Vukovic 30f427277b EXSWHTEC-271 - Implement test for warp all function (#190)
Change-Id: Ic18f783d330c310ba9f71bd260372245bd87f7f1
2024-02-15 19:41:23 +05:30
Nives Vukovic 04d4a8669f EXSWHTEC-270 - Implement test for warp any function (#189)
Change-Id: I9ca63918b01b833fb12abf9a3d91b52b640e22b2
2024-02-15 19:41:23 +05:30
Nives Vukovic 64ff4704a7 EXSWHTEC-269 - Implement test for warp ballot function (#188)
Change-Id: I71e0448a4676b6ba671b600065918e8fd533cc61
2024-02-15 19:41:23 +05:30
Nives Vukovic 9b96b707ee EXSWHTEC-267 - Implement tests for multi_grid_group APIs (#156)
Change-Id: I2820ec19831f0dad3b8ce60172c86791f274107e
2024-02-15 19:41:22 +05:30
Nives Vukovic 10594ecb3a EXSWHTEC-76 - Implement additional tests for Malloc/Free API (#49)
Change-Id: I9e2fd348e8c1d2bf63f82b90898863006ba90b62
2024-02-15 19:41:22 +05:30
Mirza Halilcevic 7685c9c46a EXSWHTEC-363 - Implement tests for Surface Management APIs (#439)
Change-Id: If354846b04fb48974cd0345f3a317e52b046014f
2024-02-15 19:40:59 +05:30
Nives Vukovic dbc1a9d073 EXSWHTEC-36 - Implement tests for basic hipMemPool APIs (#437)
Change-Id: Ice34feae7675699b04153d6fc3e10297428018b5
2024-02-15 19:39:31 +05:30
Mirza Halilcevic 127e056c22 EXSWHTEC-361 - Implement tests for Mipmapped Texture Management APIs (#436)
Change-Id: Ia753ddb3bd38b78aca719d321bf33de76ec00ad6
2024-02-15 18:45:52 +05:30
Nives Vukovic 7ffbf7f76b EXSWHTEC-364 - Implement tests for hipMemPoolSetGetAccess and hipMemPoolSetGetAttribute APIs (#435)
Change-Id: I9a9bd22f99e2be60608d50fe649e92b3b267f655
2024-02-15 18:45:24 +05:30
Nives Vukovic 26a5250673 EXSWHTEC-272 - Implement tests for warp shfl_up and shfl_down functions (#193)
Change-Id: I3013d16f48ad5f607ee0f252b497fde24c7b9164
2024-02-15 18:42:00 +05:30
Jaydeep Patel 3da249e472 SWDEV-439298 - Correct odd/even logic.
Change-Id: Iafe1b3915b513207a5ef24cf145ac1e8e39a1672
2024-02-14 10:12:10 -05:00
Jaydeep Patel 00bb4595f7 SWDEV-441208 - MI300 does not support image.
Change-Id: Ifde2d01bef629d2c2f6c40466c3d843955083368
2024-02-14 10:11:32 -05:00
Jaydeep Patel 8993dd87ef SWDEV-401781 - Enhance test case.
Change-Id: I47074cc972512ac1b699ed4fc9386d470fae1c61
2024-02-14 06:22:09 -05:00
mbhiutra 8d8db1f1bf SWDEV-412880 - [catch2][dtest] Adding test cases for functions defined inside hip_vector_types.h, hip_fp16.h, texture_types.h and math_functions.h
Change-Id: I5427898303babc1f1f0dc4b15921e9f1cd52c4ad
2024-02-13 00:33:10 -05:00
mbhiutra e1aa13c4d4 SWDEV-432851 - [catch2][dtest] Add test for hipDrvGraphAddMemcpyNode
Change-Id: Ie2738eecafafa980efe4c33e10426febcf7a6cbd
2024-02-12 22:32:33 -05:00
Ajay 0e0c86d122 SWDEV-441112 - fix hip-tests catch build on nvidia platform
Change-Id: I6a4a4613b2d56627e128f7dabaacaa552e292311
2024-02-08 14:41:36 -05:00
Jatin Chaudhary 7a3d1f0c00 SWDEV-408621 - check for image support before running hipArray tests
Change-Id: I53c8ef7178931ca83a504dc1a226d46c34f175ae
2024-02-06 15:30:38 +00:00
Rakesh Roy 569b088eb8 SWDEV-388493 - Delete test Unit_hipGetDeviceAttribute_CheckFineGrainSupport
- This test causes build failure when custom HIP_PATH is used
- It doesn't add much value as it verifies hipDeviceAttributeFineGrainSupport against HSA APIs
- In rare case only it can fail, because internally HIP uses the same HSA APIs for hipDeviceAttributeFineGrainSupport.

Change-Id: If3b566d1c784a318e076b640cc2f063b84e25413
2024-01-26 14:26:15 -05:00
Lang Yu c7aa062b66 SWDEV-440004 - Fix Unit_hipHostMalloc_AllocateUseMoreThanAvailGPUMemory
int(32bit -2147483648~2147483647) could overflow if allocated size >= 2GB(2147483648).
Use size_t instead.

Change-Id: I1511574464b96fcb09eae18daa5ee9f56d817505
Signed-off-by: Lang Yu <Lang.Yu@amd.com>
2024-01-26 14:02:59 -05:00
Ajay 8c0a6f1cdb SWDEV-347670 - StreamWait test issues
SWDEV-439486 - Fix Unit_hipStreamValue_Wait32_NonBlocking_Mask_Gte

Change-Id: Iab61cacaa72ac88905a2befe3aff931f8216d152
2024-01-25 11:30:57 -05:00
Ioannis Assiouras 2cdcbf4d24 SWDEV-442439 - Removed references to HIT from catch tests
Change-Id: If0a33331a6a03a6efba0f4a5adbac199a5aff911
2024-01-25 10:09:24 -05:00
SrinivasaRao 902c993615 SWDEV-388833 - [catch2][dtest] Sync tests migrated from dtests to catch2
Change-Id: I73664579ab9475e51db436b57ca6538aa7a8d5d7
2024-01-24 23:04:14 -05:00
Jatin Chaudhary 5e766685c8 SWDEV-440095 - remove the test Unit_hipLaunchCooperativeKernel_Streams
The test checks the pattern of thing "A" should be always faster than
thing "B". Which might not be the case for several reasons and will result
in unreliable, randomly failing test.

Change-Id: I6fa9e2c110f9ef48ef63a720e7a64c54e7f2a72f
2024-01-24 04:28:58 -05:00
Todd tiantuo Li d92abdd926 SWDEV-432490 - Skip checking data error in hipArrayCreate test accordingly.
Because the kernel readFromTexture will be empty when there is no image support.

Change-Id: I5ce72e147188a2e9a84e9797811ed946362ccf2c
2024-01-19 01:43:54 -05:00
Rakesh Roy f85b731a5c SWDEV-388493 - Use HSA APIs instead of rocminfo
- Recreation of github PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/217
- For Unit_hipGetDeviceAttribute_CheckFineGrainSupport test, get segment information using HSA APIs instead of rocminfo

Change-Id: I20f4c8a6669684a2326a3ce61735c4fa10433f9d
2024-01-18 01:03:12 -05:00
Ajay 1d9aadbf92 SWDEV-441112 - fix hip-tests catch build on nvidia platform
hip/hip_runtime.h path was not used correctly in some tests

Change-Id: I1a3f5fba352273ce366404f398bb5c2f7d6f283f
2024-01-17 11:34:53 -05:00
Jatin Chaudhary 252fca5aa8 SWDEV-412457 - add algorithm header in file
Change-Id: I18549f612be9e0b51d4ef92c600f1ce72ab58759
2024-01-17 09:20:34 +00:00
Jatin Chaudhary a87786f060 SWDEV-431399 - fix issues highlighted by address sanitizer
Change-Id: I927009a8d408bdf13677ce5cc926908fb4552441
2024-01-15 04:01:36 -05:00
Ioannis Assiouras 4274ec139d SWDEV-422655 - Fixed Unit_hipTextureMipmapRef2D
-Fixed and re-anabled test Unit_hipTextureMipmapRef2D_Positive_Check on windows.
-Check cuda version to prevent build issues on nvidia.

Change-Id: I7f9481f7bd9a7622197a626519c8f6a80c72768d
2024-01-11 06:45:07 -05:00
Jatin Chaudhary 9704c269d0 SWDEV-398975 - re-enable Unit_hipMemcpyWithStream_MultiThread test
use correct macro inside the test

Change-Id: I7034a97efe91d6c9e2d9b4e6026ec770714a01ac
2024-01-08 06:07:14 -05:00
Jatin Chaudhary af3ac29c40 SWDEV-430619 - fix Unit_hipDeviceGetUuid_From_RocmInfo test
Ignore the iGPU when iterating rocminfo and correct the bounds check
when matching results with HIP API. Also do not compare bytes directly,
use string to do a string compare as it can go out of bounds.
Disabling this test on windows till I get hold of a working windows
machine.

Change-Id: Icf811e0310776567afecea92e1d54e8438b39235
2024-01-08 04:21:52 -05:00
Jatin Chaudhary c364656420 SWDEV-431399 - fix randomly failing timing based tests
use blocking context instead of time based kernel launch

Change-Id: Ib4cdf913f18c80ce8173317811c0e6e3eb5acb76
2024-01-08 01:13:00 -05:00
SrinivasaRao 22fe5b7803 SWDEV-396087 - [catch2][dtest] Functional test cases for the API hipArrayGetDescriptor
Change-Id: Ia400b7ce9a6eeb6f008cab13100fd10a86c5127f
2024-01-04 09:44:00 -05:00
SrinivasaRao 28eda094cc SWDEV-403479 - [catch2][dtest] Enable buffered Printf test Scenarios for Windows platform.
Change-Id: I9c1428da5a262b81425a095dc15436621ee75ed6
2024-01-04 09:43:12 -05:00
Ioannis Assiouras 9131d555f9 SWDEV-439209 - Fixed Unit_hipMemVmm_Basic
Change-Id: I658d30e9ab7814517383d02550c338e5aeae554e
2023-12-29 11:22:14 +00:00
Maneesh Gupta 6429ef1b60 SWDEV-1 - Merge github PRs to amd-staging
- https://github.com/ROCm/hip-tests/pull/194
- https://github.com/ROCm/hip-tests/pull/36
- https://github.com/ROCm/hip-tests/pull/44
- https://github.com/ROCm/hip-tests/pull/47
- https://github.com/ROCm/hip-tests/pull/62
- https://github.com/ROCm/hip-tests/pull/63
- https://github.com/ROCm/hip-tests/pull/64
- https://github.com/ROCm/hip-tests/pull/65
- https://github.com/ROCm/hip-tests/pull/66
- https://github.com/ROCm/hip-tests/pull/67
- https://github.com/ROCm/hip-tests/pull/68
- https://github.com/ROCm/hip-tests/pull/69
- https://github.com/ROCm/hip-tests/pull/142
- https://github.com/ROCm/hip-tests/pull/196
- https://github.com/ROCm/hip-tests/pull/238

Change-Id: I74f7fef76d7d536b1cf89dad3e527c92d1cd21b5
2023-12-20 10:39:37 +00:00
Nives Vukovic e0612f9346 EXSWHTEC-308 - Migrate and refactor cooperative groups tests from HIP repository (#238)
Change-Id: Ib46b7c038a5bda9d05f5d55a7269a7c645b0d049
2023-12-20 10:22:01 +00:00
Mirza Halilcevic f24d2dd934 EXSWHTEC-265 - Implement Tests for Atomic Exchange (#196)
Change-Id: I4d332dcaad2d0a788b6711f5be05ca6d61a9e34b
2023-12-20 10:22:01 +00:00