Commit graph

953 Commits

Autor SHA1 Nachricht Datum
Sudheer Kumar 8a8af8e992 [dtest] Additional tests for d2d transfer
- Test d2d transfer after doing copy from pinned host buffer
- Test d2d transfer after doing copy from unpinned host buffer

SWDEV-238517 for enhancing hip unit tests

Change-Id: Ib262185ce2692036e11c0f95ccb850eb3bce1c81
2020-11-26 08:22:55 -05:00
Rupam Chetia 9d92c90b55 [dtest] Tests for hipModuleGetTexRef() API
1. Negative Test Cases
2. API functionality test using multiple streams.
3. API functionality validation using multiple GPUs.
4. Setting hipTexRefSetFlags() with HIP_TRSF_READ_AS_INTEGER flag instead of 0 as suggested in SWDEV-256096.
5. Enabling test cases 0x03 (short) and 0x04 (char).
6. Implemented external code review comments.

SWDEV-238517 for enhancing hip unit tests

Change-Id: If42796047ec1cf2e3695dc2b7f40a2d9dd50f5bd
2020-11-26 06:51:49 -05:00
Aryan Salmanpour 2d84056764 [dtest] add a test case for hipExtStreamGetCUMask API
Change-Id: I2b03f06fc96c4af0c3dcf4efc0b83126971aab46
2020-11-20 14:08:02 -05:00
Michael LIAO 6bf6480283 Fix cooperative group tests.
- `gm` should be a global variable instead of auto local variable.

Change-Id: Ibde1e54ee83fa5725f21820b4b792a97bf7df6ad
2020-11-17 14:09:16 -05:00
Sarbojit Sarkar c47eb6833f [SWDEV-259216] Minor test bug
Change-Id: Ib2ece421af88c99ded41514b6a2dc432b78be682
2020-11-13 02:23:45 -05:00
Sarbojit Sarkar 7439307e0e [SWDEV-257048] fix for softhang in dtest
Change-Id: Ic77f5d9c13852c4e3da7afb41b1db7d43c5cbf75
2020-11-13 02:21:00 -05:00
Tao Sang f9726a727d Make hipMemset*Async* tests pass in static lib
3 hipMemset*Async* direct tests will crash in static lib because
some hsa objects are not initialized when hip apis call them.
The fix will make the hip apis called in main() so that hsa objects
have been initialized at that stage.

Change-Id: I41eb29b8c2588acac0cd3ae6d96b14fb1abd235a
2020-11-03 09:54:30 -05:00
Tao Sang bcd067f462 Make directed_test support static libs
1.Make directed_test apps linked against static libs
    of hip, rocclr, rocr, roct and amd_comgr.
    2.Remove custom_target amdhip64_static_combiner.
    3.Support EXCLUDE_HIP_LIB_TYPE <static|shared>.
    4.Simplify argument list parsing.
    5.Install rocclr when rocm is installed.
    6.Fix some original small bugs.

Revert "Revert "Make directed_test support static libs""
This reverts commit 5b7533e49f.

Change-Id: I918eeae94487e5e2ff5bfde083667ac65fb6e702
2020-10-26 12:39:58 -04:00
agodavar d10124e1d7 cmake hip-rocclr as default build,change HIP_PLATFORM to amd|nvidia
Change-Id: I59d2e15b297b6ca2d5eee1a6dee642bdb01a3839
2020-10-21 07:26:14 -04:00
Sudheer Kumar e112d1e13f [dtest] Tests for loading hip apis dynamically
SWDEV-238517 for enhancing hip unit tests

Change-Id: I9b6ef41db2f02ee3679360d0fae709a404a0ea4f
2020-10-21 02:49:49 -04:00
Yaxun (Sam) Liu 78269dcbe5 Fix test hipDynamicShared
This test does not work if block size is greater than wave size
since it relies on lock-step execution of the kernel in the block.
If there are more than waves in the block, the threads in the block
miss synchronization since one wave may finish before another wave.

Due to this bug, the test fails on GFX10 wave32 mode.

This patch fixes that so that it works for block size greater than
wave size.

Change-Id: Ie0097066081df36cb6fe025a71d0ee5a83ec00a2
2020-10-14 10:15:44 -04:00
Lakhan singh Thakur 548ec20ffd [dtest] Adding Test case for hipFuncSetSharedMemConfig() and hipFuncSetAttribute()
SWDEV-251504 - QA task for validation

Change-Id: I11ed98f648352cb32161c41290516c77231236bc
2020-10-13 11:11:00 -04:00
Rupam Chetia 71ba35eb2c [dtest] hipModuleLoad and related API tests
APIs: hipModuleLoad, hipModuleLoadData and hipModuleLoadDataEx,
      hipModuleGetGlobal(), hipModuleGetFunction
Functional and negative tests
Repeated call to ModuleLoadXX/ModuleUnloadXX
Few tests are disabled now, will be enabled when functional

SWDEV-238517 for enhancing hip unit tests

Change-Id: I65c12027e32db80213468fdee1c5cc1aa3e60bfd
2020-10-13 11:10:11 -04:00
Julia Jiang c2a3d19acb SWDEV-249487-remove two HCC related APIs
Change-Id: Icf90ece0808643e0c5f0cc00b6644d5171b553d8
2020-10-13 11:08:37 -04:00
agodavar dc1459cfb1 SWDEV-254185 - Added support to pass include headers to hipRTC
Change-Id: Ia19e6806a476d3c6ecd3e9a89c3ed72953a4900c
2020-10-12 06:04:14 -04:00
Tao Sang 5b7533e49f Revert "Make directed_test support static libs"
This reverts commit b41a769517.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ib2d1084ea21461f70f96f95c6025a08f88288357
2020-10-12 00:01:13 -04:00
Tao Sang b41a769517 Make directed_test support static libs
1.Make directed_test apps linked against static libs
of hip, rocclr, rocr, roct and amd_comgr.
2.Remove custom_target amdhip64_static_combiner.
3.Support EXCLUDE_HIP_LIB_TYPE <static|shared>.
4.Simplify argument list parsing.
5.Fix hip_pch.o missing issue in samples' build.
6.Fix some original small bugs.

Change-Id: I30f5e65367613152ce86b80b13e1c9f2a28da803
2020-10-08 22:46:58 -04:00
Jason Tang 2299459ce0 Add hipStreamSynchronize to hipModuleLoadDataMultThreadOnMultGPU test
hipStreamDestroy() by definition doesn't guarantee waiting for all stream operations.

Change-Id: Ibfd21c48d71741ebcbcb9898c8b5ac235bdc570b
2020-10-08 11:06:39 -04:00
German Andryeyev 67c19cb10b Use more managed memory interfaces
Add extra API calls for managed memory: hipMemAdvise, hipMemPrefetchAsync,
hipMemRangeGetAttribute

Change-Id: Ifb09744acdf7582d278453707373c89c30e3ed03
2020-10-07 16:45:25 -04:00
sumanthtg 543dc8cea5 [dtest] Tests for atomicAdd/atomicAddnoRet
Positive and negative test cases for atomicAdd and
AtomicAddnoRet device functions

SWDEV-238517 for enhancing hip unit tests

Change-Id: Id20ba2550d20f224004f105cdcd087002cb80e56
2020-10-07 13:20:12 -04:00
sumanthtg 2bee071530 [dtest] Additional tests for hipOccupancyMax APIs
Additional tests for following APIs
- hipOccupancyMaxActiveBlocksPerMultiprocessor
- hipOccupancyMaxPotentialBlockSize

SWDEV-238517 for enhancing hip unit tests

Change-Id: Ib9441c1366f46a082e10eb1a572bc7d8ebe1ee37
2020-10-07 13:19:06 -04:00
Sarbojit Sarkar a2f9a2d469 SWDEV:253548 : remove gfx-arch macros
Change-Id: I1ef0b4e080c15a9c6228f48ecd6a65b134d0a72d
2020-10-06 01:15:58 -04:00
Vladislav Sytchenko ad2d55c144 Revert "Revert "Merge branch 'amd-master-next' into amd-npi-next""
This reverts commit 374ead1d19.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I92ceb171e31026ed1864704cef2fc1497b883ef9
2020-10-05 13:20:58 -04:00
Vladislav Sytchenko 374ead1d19 Revert "Merge branch 'amd-master-next' into amd-npi-next"
This reverts commit 73558e3363.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I53322718dadde2c98f96140b8e260ec7ee9ef721
2020-10-05 13:02:39 -04:00
Vladislav Sytchenko 73558e3363 Merge branch 'amd-master-next' into amd-npi-next
Change-Id: I0587f67e28cec51c2ae753e986d2c7ce21db271e
2020-10-05 09:51:06 -04:00
mshivama f45f9e37dd Fix bug reported in SWDEV-251619
Unit testing of CG threadRank api in multi-grid environment requires
some changes as grid id of particular device is not known apriori.

Change-Id: Ie7941a09337653f3ada5eedfb7c64a93a234498b
2020-10-02 13:39:10 -04:00
Aryan Salmanpour 3c0bff0878 enable building cooperative directed tests on NV platform
Change-Id: I9a658b28010176d4f9401010b9c4b4be7ae86b92
2020-10-02 00:59:40 -04:00
Aryan Salmanpour e1cb711e66 [dtest] move all the cooperative related tests into one location
Change-Id: I9b44027d795ebfbf42f78af8e69d26ac8109692a
2020-10-01 16:01:46 -04:00
Sarbojit Sarkar bf20337fc1 SWDEV-253247: add ulong and ulonglong version of__shfl*
Change-Id: I40ab6cfa12175f334e8392b71f567054d8256e2a
2020-09-30 01:58:22 -04:00
Lakhan singh Thakur 8f4cc3017f [dtest] Additional tests for hipMallocManaged() api
5 scenarios were added for hipMallocManaged including negative
test.

SWDEV-238517 for enhancing hip unit tests

Change-Id: Ibba53fb64502d6df798e4e63100dcb8c5f94553f
2020-09-24 10:05:21 -04:00
kjayapra-amd d1f82881f6 SWDEV-253349 - Add a SKIP state for hip directed tests when HIP_BRINGUP_SKIP macro is used.
Change-Id: If176cf775e568d4b32982127731223fe96a38f0d
2020-09-23 16:46:21 -04:00
Sumanth Tumbalam Gooty 3a4b74a3a0 [dtest] Tests for hipMalloc
1. API validation
2. Validate the memory status after hipMalloc()
3. Test repeated hipMalloc() Calls, call in multiple threads
4. Parallel hipMalloc() from parent and child processes
5. hipMalloc() from multiple processes on multiple GPUs

SWDEV-238517 for enhancing hip unit tests

Change-Id: Ie152999d7a203a51704d2888ccc1ca866a2e1b05
2020-09-23 09:20:01 -04:00
Lakhan singh Thakur d623445c65 [dtest] Tests for hipIpcGetMemHandle()
Tests allocation of memory on various GPUs and pass on the IPC mem handle to child process.
Child process attaches to the mem handle and uses the memory on various GPUs

SWDEV-238517 for enhancing hip unit tests

Change-Id: I7babc7725813e05d651057beef6a8bec6f62a49b
2020-09-22 23:49:30 -04:00
Todd tiantuo Li 66efc13d5c SWDEV-240803 - add test for hipFuncSetSharedMemConfig
Change-Id: I150b65a548ee9bf8d7e079b3db2e73958747c3a0
2020-09-21 17:26:51 -04:00
Lakhan singh Thakur e955144aa3 [dtest] Cooperative Groups related tests
Converted tests from below git to hipdirected_tests
http://gitlab1.amd.com/jgreatho/cuda_cooperative_groups_test
Modified to cover multi-GPUs
Disabled tests for cuda because of some header file issues

SWDEV-238517 for enhancing hip unit tests

Change-Id: If35fd710e8ab61debcf66bca5b6503539c567ec1
2020-09-18 11:40:16 -04:00
mkumarmi 5bf2a70382 [dtest] Disable few tests on NVCC platform
Few of the tests are being validated in nvcc platform.  Till then
these tests are disabled.

SWDEV-238517 for enhancing hip unit tests

Change-Id: I1acbfe90c6ea39f3de676e98f0e3c33cbac97888
2020-09-18 04:34:00 -04:00
Vladislav Sytchenko 573b2dced3 Merge branch 'amd-master-next' into amd-npi-next
Change-Id: I4181bbab4fc0a5ec857fe39d6148ee8b4975836d
2020-09-16 12:06:55 -04:00
kjayapra-amd e71067a7ec SWDEV-251884 - Add Coop Launch Dev Property Checks in Co-operative Groups test cases.
Change-Id: I7b54a559d8abe0d5d5c77e48868b1332477a39f8
2020-09-14 17:10:39 -04:00
kjayapra-amd 637e8f966c SWDEV-240800 - Adding dtest for hipDeviceGetP2PAttribute.
Change-Id: Icf1dc56c98247de43c638d9fdc16de045d2a1da9
2020-09-11 14:25:11 -04:00
Jenkins 85e4233a23 Merge 'amd-master-next' into 'amd-npi-next'
Change-Id: I88aec6ceb6b6e49caf48a0287ee2379b8ed9b296
2020-09-03 05:09:55 -04:00
Saleel Kudchadker 7720651f2d Fix hipPrintf* tests
The test needs to check dup2 syscall status and not the
errno val

Change-Id: Ic88eb2047b839adbc9e12965b098d8960cd7e2b8
2020-09-01 15:00:49 -04:00
Rahul Garg 280d300320 Revert "[dtest] Additional tests for Memcpy"
This reverts commit 858b7e027e.

Reason for revert: All the PSDBs on the CI are failing with the below error and its been root caused to this commit:
......................................................................................... Passed 0.59 sec 99% tests passed, 1 tests
failed out of 211 Total Test time (real) = 287.02 sec The following tests FAILED: 139 - directed_tests/runtimeApi/memory/hipMemcpyNegativeMThrdMSize_Negative_tests.tst
(Child aborted) Errors while running CTest Restoring clocks to: auto

Change-Id: I4ea0e14ba5f92cd61677f4a3b9482fea00902310
2020-09-01 00:48:20 -04:00
Jenkins a90355edf6 Merge 'amd-master-next' into 'amd-npi-next'
Change-Id: I801d75dba453bcf24fe0c6f36a6489c2e470231e
2020-08-25 17:10:30 -04:00
Aryan Salmanpour 1c966637a4 [HipPerf] modifiy and move hipPerfMemcpy test to the new location for perf tests
SWDEV-245290

Change-Id: I84f03a3019fce48aab63dd4cc232ea3539a1af79
2020-08-25 16:52:14 -04:00
Jenkins f9ebdacdfa Merge 'amd-master-next' into 'amd-npi-next'
Change-Id: I914aa748c92849f9f7ab796129a4617753d728db
2020-08-25 11:10:53 -04:00
mshivama 15aff89ba1 Support public apis for cooperative group types.
Change-Id: I01346afde485e82c34b7868b9241b34c542d0cf9
2020-08-25 10:50:38 +05:30
Jenkins d01cbc7220 Merge 'amd-master-next' into 'amd-npi-next'
Change-Id: I4d7ded0a1316a469f0880490e563c3e3f00cc970
2020-08-20 21:09:41 +00:00
Lakhan singh Thakur 858b7e027e [dtest] Additional tests for Memcpy
APIs tested: hipMemcpy, hipMemcpyAsync, hipMemcpyHtoD, hipMemcpyHtoDAsync
             hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyDtoD,
             hipMemcpyDtoDAsync

-Scenario-1:: The aim of this test case is to cover all the negative test cases
              for 8 hipMemcpy apis
-Scenario-2:: This test launches NUM_THREADS threads. Each thread in turn tests
              the working of 8 hipmemcpy apis
-Scenario-3:: This test case verifies the working of Memcpy apis for range of
              Memory sizes from smallest one unit transfer to 1GB.

SWDEV-238517 for enhancing hip unit tests

Change-Id: Iace19cc54e865fae8450448d6f37abed88597f19
2020-08-20 16:41:57 -04:00
Sudheer Kumar f648d2f2f5 [dtest] Enhanced tests for hipSetDevice and hipGetDevice
SWDEV-238517 for enhancing hip unit tests

Change-Id: I4fe169c560ce2e1fb471df67f03263903b12463b
2020-08-20 13:52:05 -04:00
Jenkins d95ca630b5 Merge 'amd-master-next' into 'amd-npi-next'
Change-Id: I935fc8f681fad2df4e932407287a29a6a797351a
2020-08-14 09:09:52 +00:00