Grafik Komit

5900 Melakukan

Penulis SHA1 Pesan Tanggal
Tao Sang 08625144b3 SWDEV-273138 - Update canUseStreamWaitValue retrieving
Remove canUseStreamWaitValue from hipDeviceProp_t.
Update canUseStreamWaitValue retrieving in hipDeviceGetAttribute().

Change-Id: I275bd42d8b03e141caaf9f1bc6b714e51ca72dfb
2021-03-18 22:42:35 -04:00
Sourabh Betigeri c90c7a5cf1 SWDEV-274727 - The callback associated with the event was being processed after the event is destroyed. Commit after resolving merge conflict.
Change-Id: Ia7383c83318ca0c2a4f21f7aaf22b1cebd828cf0
2021-03-18 15:08:58 -04:00
German Andryeyev 5c360446bf SWDEV-277543 - fix destruction of the stream object
Change-Id: If2f532e66099805a7f05181e63f5454893a1a288
2021-03-18 13:24:46 -04:00
cjatin 06fa63df04 SWDEV-272811 - Using OCML functions for conversion of fp to int
Change-Id: Id0c02bf6a2e0553d522035b078a9db4cd3fad215
2021-03-18 11:43:30 -04:00
Ravi C Akkenapally 397bac37a3 SWDEV-276827 - Stream Operations: match API with CUDA
Change-Id: Ia79a950561e97df3b2229f76f5512dede2babf98
2021-03-18 07:52:29 -07:00
Sarbojit Sarkar 43c371fb7b SWDEV-276319 - Fix for -ve cases
Change-Id: Ie6157e3cdbd1f959c8ea502b48286bdf102b8a0f
2021-03-18 00:21:43 -04:00
Tao Sang 629ea5fe19 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
2021-03-16 17:12:08 -04:00
Vladislav Sytchenko 82e40a6438 SWDEV-275317 - Correctly pass HIP image width to ROCclr APIs in AtoD/DtoA copies
HIP assumes that image width is in bytes, but OCL/ROCclr assumes that
it's in pixels. AtoD/DtoA need to account for this.

Change-Id: I275bd41d8b03e141caaf951bc6b714e51ca72dfc
2021-03-15 21:09:58 -04:00
jujiang 3dea940498 SWDEV-271283, SWDEV-274749 - Fix hipLaunchParmFUnctor test failure
Change-Id: I568eba45403feae6f50eceab4a6bcc76756fd5bd
2021-03-15 14:42:41 -04:00
Payam 2e52ceca29 SWDEV-182753 - Throw error if launch params>bounds
Change-Id: I5f9931efac37e3149894ca116a1b0c2dcc3e5bc5
2021-03-12 19:17:08 -05:00
Saleel Kudchadker 47e44117cd SWDEV-271010 - Add 512KB transfer size for test
Add a new transfer to hipPerfBufferCopySpeed test

Change-Id: Ia7ec9a89e8789bf16fd5f86b08521287049c1e77
2021-03-11 11:01:54 -08:00
kjayapra-amd 57615530a7 SWDEV-276169 - Multiprocess IPC tests for Events and Memory.
Change-Id: I4a7af60e732de234a535574aa8597a7abd0b899b
2021-03-11 11:16:23 -05:00
Lakhan singh Thakur d4041fae4a 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
2021-03-10 10:14:36 -05:00
jujiang 3126196cca SWDEV-270961 - Add doxygen for Texture APIs
Change-Id: I4038320a638292440d9ca8c23ffcabffcd9a48c2
2021-03-09 16:23:56 -05:00
Rahul Garg cc17122987 SWDEV-270599 - hipExtLaunchKernelGGL Event Timing Incorrect Between Two Launches
Change-Id: I599a51720f297209072c6be8fffe2aa61e1a071e
2021-03-09 12:18:39 -05:00
Satyanvesh Dittakavi daafd303ec SWDEV-275317 - Fix hipMemcpy2DFromArray to return proper error types
Change-Id: Id722865d81460bfd2fa6ad7a198b6e3c2a08265a
2021-03-09 05:22:23 -05:00
Vladislav Sytchenko 55377dfee2 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
2021-03-08 18:12:42 -05:00
Vladislav Sytchenko 4dd4d8c05f 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
2021-03-08 18:11:33 -05:00
German Andryeyev e48111bfce SWDEV-272496 - enqueue a marker for callbacks always
The current implementation in ROCclr for callback is
based on OCL specification. If in HIP the same command
could get multiple callbacks, then ROCclr will process them in
a reverse order. Unique Markers for each callback will make
sure it won't happen.
Add a dependency wait for callbacks, since HSA signal callback
doesn't guarantee the order.

Change-Id: I9d514734e258312fe9a74d48132361eb17c52d67
2021-03-08 14:19:53 -05:00
Satyanvesh Dittakavi 37d4677aba SWDEV-274404 - Add hipDrvMemcpy3D* and hipMemcpy2DFromArray* APIs on HIP CUDA
Change-Id: I4aba2bff60a7bae6b01b6e471968227b0df8e192
2021-03-08 13:14:25 -05:00
Sarbojit Sarkar 95b2ad994c SWDEV-254329 - Profiler ON/OFF fix
Change-Id: I996d185d2079ce68234109564a529a187ba4f04b
2021-03-08 01:27:46 -05:00
Julia Jiang 3a7c3c8f07 SWDEV-270961 - Update HIP documents
Change-Id: Iba88d78456b9b190c2af92ca696777e459e4acb0
2021-03-05 16:07:38 -05:00
David Salinas a2b7d3c9a7 SWDEV-274114 - fix dependency issues for perl modules
Change-Id: I320d5fb50db3eecd433e81ab49703ca04c882711
2021-03-04 16:52:35 -05:00
Tao Sang cc086cb08c SWDEV-274725 - Enable hiprtc test
Enable hiprtc test for Rocclr.
Remove unnecessary LINK_OPTIONS hiprtc.

Change-Id: I9ec74c475161b3e31df47d193449023e921f2923
2021-03-04 15:07:38 -05:00
Arya.Rafii 8cb232ddef SWDEV-269246 - Implementation of hipDrvMemcpy2DUnaligned
Change-Id: I86fdd3b930cbd74c45cd31944f0ea52c0ff65a59
2021-03-04 14:38:06 -05:00
Arya.Rafii 9f142f988d SWDEV-269246 - Added missing exports for hipArrayDestroy
Change-Id: I730814720bb618e895efbe2f412e437110bed8bc
2021-03-04 14:29:16 -05:00
kjayapra-amd 8ef68df3a8 SWDEV-259566 - Adding support to retrieve handle for offsetted pointer.
Change-Id: I5da5ab6a24c6df915950637feb486b8c288e60e0
2021-03-04 12:28:56 -05:00
Rahul Garg 508f524204 SWDEV-275204 - Bump version to 4.2
Change-Id: I0b3512591b56bd114d935c09014b44cd45547b9e
2021-03-03 23:42:21 -05:00
German Andryeyev b0402a95bf SWDEV-272496 - Delay enqueue until callback setup
With direct dispatch enqueue occurs before callback update and
it can't be tracked in the device backend

Change-Id: Ie8793e3ddb68cc5bb36348f7a8dcdbdc87a2487c
2021-03-03 13:14:28 -05:00
Sarbojit Sarkar 7d6bf9fb97 SWDEV-267199 - hipMalloc test issue on centOS
Change-Id: I789516e2bf921ffd3577f97571e33bcc08047849
2021-03-03 11:47:13 -05:00
Sarbojit Sarkar 35265be757 SWDEV-274436 - Fixed square build issue
Change-Id: If64be13be48bb7e620172ec245bc819c923f918a
2021-03-03 11:46:11 -05:00
Tao Sang f65348cfbe SWDEV-274915 - Prevent repeatedly linking dependence
Some upstream will load hip multiple times thus Rocclr static lib  will
be linked to hip::amdhip64 many times. This will bring some unexpected
issues such as in hipBLAS. The patch prevents his happening.

Change-Id: I6bb27659f74371dae6e59c59fd6bb2022cc062ff
2021-03-02 17:33:52 -05:00
Ravi C Akkenapally fd0f49503f SWDEV-179105 - Stream Operations: Add swqupport for Wait and Write
Change-Id: I9d6d0665d12b62fe705ce1569a0e8264a4f23ab7
2021-03-02 12:15:46 -08:00
Tao Sang f727a048d3 SWDEV-274307 - Send NVCC_OPTIONS to linker
Flags of NVCC_OPTIONS need be sent to linker. Because compiler and
linker flager are mixed in NVCC_OPTIONS.

Change-Id: I3db37b962808566ea145e3cbdefa66d373e2d360
2021-03-02 09:48:00 -05:00
Tao Sang 4048db950c SWDEV-270973 - Add missing copyright headers
Change-Id: I6bb27650f74372dae6e29c79fd6bb2022cc062fe
2021-03-01 19:46:24 -05:00
Julia Jiang 99e03e067a SWDEV-272921, SWDEV-270961 - correct index and linkage
Change-Id: I48a66091bb6f304864e282bd03e9eb748fa04da7
2021-03-01 16:07:00 -05:00
Jatin Chaudhary ec832d42d1 SWDEV-272361 - Dont call memcpy2d if width is 0 or height or depth is 0
Change-Id: I22324a536d2a5e68b9fc3e5ee4ad821b49021a17
2021-03-01 14:34:58 -05:00
cjatin 564417d00f SWDEV-271274 - Changing DevLogPrintf to LogPrintf for cases where error condition is being returned
Change-Id: I153d071f7859e9412ea0c69f53c53d190453d73d
2021-03-01 14:33:46 -05:00
Ashutosh Mishra b9c0065e4f SWDEV-271126 - Memory obtained from getDeviceMEmory can be NULL
which can cause segmentation faults. Hence checking for its sanity

Signed-off-by: Ashutosh Mishra <ashutosh.mishra@amd.com>
Change-Id: I78b4d029f0926a1369a8ebbeb4aef951a8f1f1d7
2021-02-26 23:29:53 -05:00
Payam 5b7dd3a4b9 SWDEV-273405 - updated roctracer path to use env var
Change-Id: I9ec74c475161a3e310f57d193449023e921f2922
2021-02-26 14:51:26 -05:00
Vladislav Sytchenko 1f8bdcaf20 SWDEV-232428 - Enable device printf for Windows
Change-Id: Id72cfc34cfcfcbcb459bd8d84979637eaf7947dd
2021-02-26 11:46:38 -05:00
Satyanvesh Dittakavi c2a767a66e SWDEV-271491 - Fix flags for hipSetDeviceFlags on HIP-CUDA path
Change-Id: I29446d5cc5a26a4b83fa45175ccdf1d8f3a9ea40
2021-02-25 12:06:33 -05:00
Jatin Chaudhary 474493b929 SWDEV-272811 - hipCabs returns a double and uses sqrtf, which maps to f32 operation. sqrt should be used instead
Change-Id: I4f74ee8853113fcebfa508bea9308ae93c7ad13b
2021-02-25 08:47:19 -05:00
Satyanvesh Dittakavi 3abd25b1e9 SWDEV-272082 - Fix Cooperative groups tests on HIP CUDA path
Change-Id: Icc68bc1e48c01ee120aaab17c928ffbbb96eae96
2021-02-25 04:54:27 -05:00
Rahul Garg 62c278c39d SWDEV-269604 - Revert "Update dispatch latency with wall time measurements"
This reverts commit 66776ae8de.

Hold wall time related updates till direct dispatch is ready.

Change-Id: I53b232f6f51bc2fc71b6b639fe0081e2907e9707
2021-02-25 04:50:44 +00:00
cjatin 41d7c688c9 SWDEV-273859 - Add --hip-version to comgr call
Change-Id: Iae6c1a5e958a73f5d9849c13c8b49eede914e25e
2021-02-24 23:41:34 -05:00
Arya.Rafii 5c2eb09624 SWDEV-269246 - Fixed null-case logic for hipCtxPopCurrent
Change-Id: Ic173980caccde8afee85a75c55a5d536f421549e
2021-02-24 13:20:24 -05:00
kjayapra-amd 20dd93a3be SWDEV-274058 - Porting HIP, ROCclr gfx90a changes to mainline.
Change-Id: I02f53d4c7897d26243620cfc961fa9bd984cede4
2021-02-24 09:55:43 -05:00
DURGESH KROTTAPALLI 2a0593258c 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
2021-02-24 06:29:26 -05:00
German Andryeyev fe7501a64b SWDEV-272496 - Add marker if notification was the last command.
If MT is enabled, then a new callback can be received before the previous
command is processed, causing a conflict of 2 callbacks.

Change-Id: I5ff8f231208e8d62824d590d3c8e791e8e36affb
2021-02-23 13:12:06 -05:00