Grafico dei commit

1032 Commit

Autore SHA1 Messaggio Data
Satyanvesh Dittakavi 802fee3078 SWDEV-285521 - SWDEV-284626 - Fix P2P and Caffe2 test failures
- waitList was released before the awaitcompletion
causing stream sync after the async copies fail

- Enable the hipPeerToPeer_simple test

Change-Id: I1eeaa7e6320ab38c106902078f034dfec4c3f3ea


[ROCm/hip commit: acafb344c0]
2021-05-21 02:54:22 -04:00
Julia Jiang 6bef7b2b86 SWDEV-286322 - Fix EOL in files
Change-Id: I1746e80aceeeaa4fc5df65c858f4816d99010186


[ROCm/hip commit: f8a08e2429]
2021-05-19 14:48:53 -04:00
Sourabh Betigeri 31089e6ce9 SWDEV-282354 - Some AMD GPUs cause clock64() to roll over faster, this changeset prevents infinite loops due to that.
Change-Id: I19d026073afa16104ffbee4705b74d37003a04d9


[ROCm/hip commit: 6bcbb61e5f]
2021-05-11 20:40:23 -04:00
Anusha Godavarthy Surya a76f840701 SWDEV-240806 - Initial commit for hipGraph and stream capture infrastructure
On StreamBegincapture captures the parameters passed to APIs and respective node will be created and added to graph
All parameters are passed to STREAM_CAPTURE macro, it checks if stream in capture mode and redirects the call to the capture function and returns
Updated hipStream and hipEvent with capture parameters
Added handling for hipStreamBeginCapture & hipStreamEndCapture

Change-Id: Ic8926a7b4336c2cc81f0b3a9a224aa392c474134


[ROCm/hip commit: c35ba37287]
2021-05-07 17:38:16 -04:00
Ravi C Akkenapally d5ee250204 SWDEV-281998 - TEST: StreamOperations : Split StreamWait and Update into two seperate threads
Change-Id: I0fda25857dd9f097f36ce1bafedb7689ca2beecc


[ROCm/hip commit: db7421cb10]
2021-05-07 11:11:28 -07:00
Aaron En Ye Shi 34625c7a88 SWDEV-283930 - Fix bugs in HIP Tests on Windows
Windows doesn't have headers unistd.h, sys/wait.h, so
remove them for _WIN64. Also, Windows doesn't have rand_r
so define it. Fixes builds for HIP tests:
d2dMemCpyWithPinnedHostMemory, hipMemset3DFunctional,
hipModuleLoadMultProcessOnMultGPU,
hipModuleLoadUnloadStress, hipModuleNegative,
hipStreamACb_ThrdBehaviour, hipMemcpyNegativeMThrdMSize,
hipStreamACb_MStrm_Mgpu, StreamAddCallback,
hipStreamACb_StrmSyncTiming, hipStreamACb_MultiCalls,
hipMallocConcurrency, hipMemset3DRegressMultiThread,
and hipSetGetDevice.

Change-Id: Id2f98d664716026c590d879e464ba467d4c071be


[ROCm/hip commit: 9edd31100d]
2021-04-30 21:38:45 +00:00
kjayapra-amd 06e4e7ee8f SWDEV-245533 - Implementing Mipmap array APIs
Change-Id: I222c8d0fcbd50cdefd702462e689463bb36366d2


[ROCm/hip commit: 9c07201c6b]
2021-04-30 16:33:43 -04:00
Satyanvesh Dittakavi a2b81ae792 SWDEV-278464 - Unit Test For Suspected race condition
Change-Id: I561ec3073a6e6813c5f7aa50983fcf098c6ac54a


[ROCm/hip commit: 98d1acf1f2]
2021-04-29 23:40:43 -04:00
Tao Sang bed2381766 SWDEV-283515 - Fix crashing in kernel launch on MGPUS
Fix wrong mixing of current device and stream device in
ihipModuleLaunchKernel() and hipLaunchCooperativeKernel().

Fix missing hipSetDevice() in hipMemcpyWithStream* tests.

Change-Id: I09333bb40d239bb42c832df5ea16d17eeaeff5e7


[ROCm/hip commit: a95ff95bf7]
2021-04-29 14:46:47 -04:00
Satyanvesh Dittakavi 1b4f397904 SWDEV-281062 - Modify the IPC tests
Remove hipSimpleIpcMem.cpp as the IPC APIs are expected to work
with different processes and not the same process. Also, modify
the hipMultiProcIpcMem.cpp to test the offset scenarios
Change-Id: Ia161fc9ab39e27f22d8ef7268e0d7669ece5cdce

Change-Id: Ic3cb79ef4aca40b4a504483eb81fd83bb8a201d9


[ROCm/hip commit: 3a6324f5d1]
2021-04-27 01:19:08 -04:00
German Andryeyev c7e4a8c30a SWDEV-240804 - Check the managed capability
Some system have HMM disabled. Check the capability before running the test.

Change-Id: I098d04d87c12ec317b4cb57e121e702b6bba03bc


[ROCm/hip commit: b777f4f010]
2021-04-26 14:10:57 -04:00
DURGESH KROTTAPALLI 88ca345e3a SWDEV-273550 - Add Directed Tests for HIP APIs
[dtest] Tests for hipMemcpy2DFromArray
        and hipMemcpy2DFromArrayAsync APIs

1. Negative scenarios for both the APIs
2. Functional size check scenarios for both APIs
3. Invoke the API from Peer Device Context
4. Simple scenarios for both APIs
5. Pinned Host Memory from same & multi GPU

Change-Id: I80c84ec3f9722d18683d31be65caa1bd64054da6


[ROCm/hip commit: b36936645d]
2021-04-23 13:07:08 -04:00
Yaxun (Sam) Liu 416d9fbfb6 SWDEV-283048 - Fix hipTestFMA
This test is incorrect about _Float16 overloading. Need to keep the test
passing for both old and new compiler until the compiler change is in
mainline.

Change-Id: I2f9be8957282fd0579c74f1e9f23e65c4484f3a2


[ROCm/hip commit: 6eabbc83f7]
2021-04-22 15:07:16 -04:00
Rahul Garg b384753745 SWDEV-229520 - Reenable hipEventIpc test
Change-Id: Ib40fb07a07cc447182e23664573c5e37a1194a32


[ROCm/hip commit: f2c96993e1]
2021-04-21 13:55:15 -04:00
Tao Sang abcbcee510 SWDEV-279657 - Fix hipMallocManaged-N256M failure
Add concurrentManagedAccess detection in hipMallocManaged test.
Skip test when device doesn't support concurrentManagedAccess.

Change-Id: Ie54046feef3baba857a7068972ec1fc1a60c2dfd


[ROCm/hip commit: 60e2b1299c]
2021-04-20 09:07:31 -04:00
sumanthtg 63ae7621ae SWDEV-238517 - [dtest] Additional Tests for hipHostMalloc()
New Tests added for
 - hipHostMalloc() api.

SWDEV-238517 for enhancing hip unit tests

Change-Id: Id237ab6cd2445216cd7bd9b8189c22a36ad66b7c


[ROCm/hip commit: 9c86e4a8f5]
2021-04-20 00:44:30 -04:00
Sourabh Betigeri 4c043fc89f SWDEV-256723 - Added group partitioning feature in ROCm CG.
Change-Id: Ie54046feef3baba857a7068972ec1fc0a60c2df9


[ROCm/hip commit: 70af64121b]
2021-04-19 18:53:17 -04:00
DURGESH KROTTAPALLI 38ddfaefbb SWDEV-273550 - Tests for hipMemcpyAtoH and HtoA
[dtest] Tests for hipMemcpyAtoH & hipMemcpyHtoA APIs

1. hipMemcpyAtoH/hipMemcpyHtoA negative scenarios
2. hipMemcpyAtoH/hipMemcpyHtoA Functional scenarios

Change-Id: Iec5b339db7fdde2592390c1f56ab6cf31131d4c8


[ROCm/hip commit: 03a0c84ad4]
2021-04-19 08:48:15 -04:00
sumanthtg 578ce42bc5 SWDEV-278967 - Changes to handle dtest failures on cuda runtime version 11.2
Change-Id: I79c87d40b77b4e4beb7e3d0a9ea396ad918a81e8


[ROCm/hip commit: 5476c9877b]
2021-04-14 12:38:46 -04:00
Aaron Enye Shi c7cc093f1a SWDEV-261391 - Add Cache Coherency Tests for gfx90a
Add a test for fine-grained device to device coherency.
Add a test for fine-grained host to device coherency.

Change-Id: I62482cae917fa19feaa17adb53f3084527ad8fda


[ROCm/hip commit: eed3fe6da9]
2021-04-13 16:13:56 -04:00
Satyanvesh Dittakavi d7ce1b93ea SWDEV-279486 - Fix hipMemcpyPeer/hipMemcpy APIs
Addresses the scenarios when the size passed is more than
the allocated size and when the deviceid is invalid
Change-Id: I6c9b62639096f655ffb61976905b1ce8c5f51ee7

Change-Id: I8a0d660924a8e2300c517aba6f9088626b8f6ef5


[ROCm/hip commit: 68161ff0dd]
2021-04-09 02:53:15 -04:00
Sarbojit Sarkar 47c83726a4 SWDEV-280131 - Fix __half2 member access bug
Change-Id: Ic11750d18e4ba47446a7e494c3089a19cb4df783


[ROCm/hip commit: 83a25eb5b5]
2021-04-07 12:12:02 -04:00
Rupam Chetia c1f57da073 SWDEV-238517 - [dtest] Adding additional scenarios for block and grid dimension.
1. Corner case and negative test scenarios added for block and grid dimension.

Change-Id: I094faf02570fec101f688462712934b94ceb37e1


[ROCm/hip commit: b1d78e4096]
2021-04-07 01:44:39 -04:00
Rupam Chetia db7803ee5d SWDEV-238517 - [dtest] Adding new test cases for hipComplex functions.
1. Added 21 test scenarios to test the hipComplex functions on both host and device.
2. Modified the floating point comparisons with precision check.

Change-Id: I9edfb0c635ced255935087c85b77d3cc6a1a82e3


[ROCm/hip commit: 366f0462f2]
2021-04-06 07:54:29 -04:00
Sourabh Betigeri 4ee227146e SWDEV-274727 - Disabling tests temporarily
Change-Id: I695daebe15f592afdfee8e4efe4d8966b6e9922a


[ROCm/hip commit: 8f67e24cbd]
2021-03-30 13:02:19 -04:00
sumanthtg 14f4a3f027 SWDEV-278478 - hipDeviceGetPCIBusId-vs-lspci test enabled only for linux environment
Change-Id: Ia86174505d912a32b07e8e959adfba6391c3284d


[ROCm/hip commit: 1cf7c2c87b]
2021-03-30 09:28:28 -04:00
sumanthtg 64f2af4dc9 SWDEV-278478 - Fix for hipDeviceGetPCIBusId-vs-lspci test failure
Change-Id: I7c722633ba8023f03bb64f5fb32b31f10015c327


[ROCm/hip commit: 6e201739b6]
2021-03-23 21:49:17 +05:30
Sourabh Betigeri 313856c6ea SWDEV-274727 - The callback associated with the event was being processed after the event is destroyed. Commit after resolving merge conflict.
Change-Id: Ia7383c83318ca0c2a4f21f7aaf22b1cebd828cf0


[ROCm/hip commit: 4223d3ecb4]
2021-03-18 15:08:58 -04:00
Ravi C Akkenapally 276d9ce2cb SWDEV-276827 - Stream Operations: match API with CUDA
Change-Id: Ia79a950561e97df3b2229f76f5512dede2babf98


[ROCm/hip commit: 475d928be8]
2021-03-18 07:52:29 -07:00
Tao Sang 15519dd555 SWDEV-273943 - Enable runtimeApi.event dtest
Add device_id_ in hip::event to match cuda behaviour in
hipEventQuery() and hipEventRecord().
Enable hipEventElapsedTime test on AMD platform.
Workarround sporadic crash of hipEventIpc test due to
some bug of event ipc.
Add missing hipEventDestroy() in some event tests.
Fix some logic code errors.
Fix typo in comment.

Change-Id: I9ec74c475161b3e31df48d193449023e921f2924


[ROCm/hip commit: 38b0c952a6]
2021-03-16 17:12:08 -04:00
jujiang 77d1508b7d SWDEV-271283, SWDEV-274749 - Fix hipLaunchParmFUnctor test failure
Change-Id: I568eba45403feae6f50eceab4a6bcc76756fd5bd


[ROCm/hip commit: e733edb3fd]
2021-03-15 14:42:41 -04:00
kjayapra-amd b8e5485f00 SWDEV-276169 - Multiprocess IPC tests for Events and Memory.
Change-Id: I4a7af60e732de234a535574aa8597a7abd0b899b


[ROCm/hip commit: 0bed2779aa]
2021-03-11 11:16:23 -05:00
Lakhan singh Thakur 640c7cede8 SWDEV-238517 - Enhancing hip unit tests
[dtest] Additional tests for Memcpy

APIs tested:
      hipMemcpy, hipMemcpyAsync,
      hipMemcpyHtoD, hipMemcpyHtoDAsync,
      hipMemcpyDtoH, hipMemcpyDtoHAsync,
      hipMemcpyDtoD, hipMemcpyDtoDAsync

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

Change-Id: If5c99527a78e817bafab2e1bd9b686a9ff916184


[ROCm/hip commit: da723c8807]
2021-03-10 10:14:36 -05:00
Vladislav Sytchenko 76cd47815a SWDEV-232428 - Fix HIP printf tests on Windows
On Windows there's something fundamentally broken about redirecting IO
into a file and then restoring that said IO to it's original state. Even
though no syscalls would fail, the output would sometimes either go into
CLI or straight up nowhere.

Simply using pipes instead of a temporary file magically resolves the
above issue ¯\_(ツ)_/¯

Unfortunately the max pipe size on Linux is 1Mb, which is not enough to
store all the data printed by the kernel. This leads to a softhang in
vprintf().

Stick to using a temporary file on Linux, but switch to pipes on
Windows. Slightly refactor the CaptureStream struct to accomadate this
difference.

Change-Id: Id8e68f150df47815a4f652ee2bcd6cfb7c3e3bac


[ROCm/hip commit: 223dddae6d]
2021-03-08 18:12:42 -05:00
Vladislav Sytchenko 8efcca49c9 SWDEV-232428 - Fix hipPrintSpecifiers test failure on Windows
The following snippets has different behaviour based on platform.

printf("%p", 0x123abc);
Linux   -> 0x123abc
Windows -> 123ABC

printf("%p", nullptr);
Linux   -> (nil)
Windows -> 0000000000000000

%p specifier according to C spec is implementation defined, so we need
to adjust the reference string to be correct on Windows.

Change-Id: I7059fa0f6cde611718bd76655637670fcbccf43c


[ROCm/hip commit: 1c08fb58d0]
2021-03-08 18:11:33 -05:00
Tao Sang 88c7cc3efa SWDEV-274725 - Enable hiprtc test
Enable hiprtc test for Rocclr.
Remove unnecessary LINK_OPTIONS hiprtc.

Change-Id: I9ec74c475161b3e31df47d193449023e921f2923


[ROCm/hip commit: d5b0974edd]
2021-03-04 15:07:38 -05:00
kjayapra-amd d78cd74c98 SWDEV-259566 - Adding support to retrieve handle for offsetted pointer.
Change-Id: I5da5ab6a24c6df915950637feb486b8c288e60e0


[ROCm/hip commit: b4492a3de3]
2021-03-04 12:28:56 -05:00
Sarbojit Sarkar 5fb266cfb9 SWDEV-267199 - hipMalloc test issue on centOS
Change-Id: I789516e2bf921ffd3577f97571e33bcc08047849


[ROCm/hip commit: 684a0ab5df]
2021-03-03 11:47:13 -05:00
Ravi C Akkenapally 3d9b4cc2c2 SWDEV-179105 - Stream Operations: Add swqupport for Wait and Write
Change-Id: I9d6d0665d12b62fe705ce1569a0e8264a4f23ab7


[ROCm/hip commit: e89b228eac]
2021-03-02 12:15:46 -08:00
Satyanvesh Dittakavi a73beaf73f SWDEV-272082 - Fix Cooperative groups tests on HIP CUDA path
Change-Id: Icc68bc1e48c01ee120aaab17c928ffbbb96eae96


[ROCm/hip commit: 4985aa5e5c]
2021-02-25 04:54:27 -05:00
DURGESH KROTTAPALLI 49be095157 SWDEV-238517 - Enhancing hip unit tests
[dtest] Tests for hipEvent related APIs

Added Negative scenarios for hipEvent related APIs

1. Verifying all hipEvent related APIs by passing nullptr.
2. Pass illegal/unknown flag to hipEventCreateWithFlags API

Change-Id: Ia0a24065d16fe0f5ee28a88e280c25c1be0c3590


[ROCm/hip commit: 44753583e7]
2021-02-24 06:29:26 -05:00
Tao Sang a4baf5b238 SWDEV-272088 - Fix runtimeApi/event/hipEventElapsedTime issue
runtimeApi/event/hipEventElapsedTime will report invalid resource error
on cuda due to wrong calling sequence. The fix will arrange the calling
in right sequence.

Change-Id: I3db28a962888566ea135e3cbdefa68d373e2d369


[ROCm/hip commit: ce4ba590fe]
2021-02-23 12:36:40 -05:00
Tao Sang 36f39b7f00 SWDEV-272089 - Shorten memory test time
memory/hipMalloc_MultiThreaded_MultiGpu costs too much time to finish.
    1 GPU: about 1000s, 2 GPUs: about 2200s
But Jenkin build need quick return and ctest will kill test that last
1500+s. So we need shorten the test time.

Change-Id: I3db27a962808566ea135e3cbdefa66d373e2d369


[ROCm/hip commit: 0326018d6e]
2021-02-22 18:01:00 -05:00
Tao Sang 609cd39eba SWDEV-273484 - Fix static lib build failure
Exclude gcc/LaunchKernel from static lib as
it's shared lib test case only

Change-Id: I3db17a962808565ea135e3cbcefa66d373e2d364


[ROCm/hip commit: 91c3cffcef]
2021-02-19 17:11:26 -05:00
agodavar 39c608e98d SWDEV-255979 - Added support of __managed__ static variable
Change-Id: I9d5cbbecc8c19ec38a95c94ab4130465ba76c102


[ROCm/hip commit: 995e6336c6]
2021-02-17 13:01:29 -05:00
Rupam Chetia c91bc2ba9e SWDEV-238517 - [dtest] Adding new test case to validate hipDeviceProp_t arch values
1. Added 1 scenario to validate value of deviceProp.arch.has* with
value of __HIP_ARCH_HAS_* device flag.

SWDEV-238517 - Enhancing hip unit tests

Change-Id: Idb237a76b75180ce77808853a5351f19077a0d33


[ROCm/hip commit: 5983bf0149]
2021-02-17 03:23:42 -05:00
Sarbojit Sarkar 48ef903037 SWDEV-272769 - Enabled gcc based hip test
Change-Id: I48bc850df00848bf11de71e3f614273111d31b47


[ROCm/hip commit: 1b9269d948]
2021-02-16 21:20:00 -05:00
Tao Sang 30637d21d0 SWDEV-272089 - Fix concurrent memory test failure on CUDA
Change-Id: Ibf35c789d6bd4279bdcedba1a6e057639c258489


[ROCm/hip commit: b889bbd960]
2021-02-16 10:00:23 -05:00
Rupam Chetia 03a8b74aa9 SWDEV-238517 - [dtest] Test for Multiple Target Architecture Code Object
Added a test to generate a code object for multiple target
architectures (including for the current device),
load and execute the kernel.

SWDEV-238517 for enhancing hip unit tests

Change-Id: I509d01124abdc0495cfc770ab5508738f108c91c


[ROCm/hip commit: 7c20d3e4e4]
2021-02-15 06:41:24 -05:00
cjatin 68e3162151 SWDEV-252745 - Adding rtc options transformer
Change-Id: Ib250689906a35f81255398e53da979774361dbfa


[ROCm/hip commit: 4681e124f6]
2021-02-09 13:35:30 -05:00