Commit Graph

13402 Commits

Author SHA1 Message Date
Chauncey Hui a553bf68ac SWDEV-2 - Change OpenCL version number from 3277 to 3278
[ROCm/clr commit: 1b9de9bee0]
2021-03-23 03:00:07 -04:00
German Andryeyev 95091ae4a4 SWDEV-276625 - Add implicit glFinish() for cl_khr_gl_event
Modifies the behavior of clEnqueueAcquireGLObjects and
clEnqueueReleaseGLObjects to implicitly guarantee synchronization
with an OpenGL context bound in the same thread as
the OpenCL context.

Change-Id: I23eddee37a77f6c1c9d1a9ad3a3e1eb254a1ed82


[ROCm/clr commit: c4cde09339]
2021-03-22 16:49:03 -04:00
pghafari 5f179326bd SWDEV-245532 - HIP - Vulkan interop
Change-Id: Ied16503cc154fbda8ce28db25df746cccb19e0ba


[ROCm/clr commit: 67e9aac689]
2021-03-22 15:06:50 -04:00
Jason Tang a24ec756d0 SWDEV-277771 - Build opencl with c++ standard 14
Change-Id: I11c72b230320761f775e23816634b55ceaccb65e


[ROCm/clr commit: 2727d7047a]
2021-03-22 11:30:29 -04:00
Jason Tang 12802612a4 SWDEV-277771 - Build rocclr with c++ standard 14
Change-Id: Id91460ca50acd0640d479f207fb169d207648f61


[ROCm/clr commit: 542ae617e5]
2021-03-22 11:28:56 -04:00
Anusha GodavarthySurya 8a295bf7a6 SWDEV-269085 - Fix compilation error with clang
Change-Id: Iab5902c9a2702456fbe433fdefc40541c48acb71


[ROCm/clr commit: 23f8c84326]
2021-03-22 03:02:50 -07:00
Saleel Kudchadker 0a5d415c1d SWDEV-277847 - Move event lock_ to the beginning
For addMarker, assume T1 comes in first and enqueues a command C1.
Before T1 grabs the event_::lock_ it gets preempted. At this time,
T2 comes in, enqueues C2 and grabs the lock_ and updates event_. Now T1
wakes up and updates a older command C1 for the event.

Change-Id: Ia423782b23026302c40976385623cfdede32d70b


[ROCm/clr commit: b1657c4159]
2021-03-19 15:28:08 -07:00
jujiang 88c0959afb SWDEV-277423 - Correct hipStreamWaitValue doxygen format
Change-Id: I8914c14cb7a05d5d0bdfa054af14765c872c70a6


[ROCm/clr commit: cc69e95c1a]
2021-03-19 14:10:41 -04:00
Chauncey Hui 477332308c SWDEV-2 - Change OpenCL version number from 3276 to 3277
[ROCm/clr commit: fe84c3a912]
2021-03-19 03:00:05 -04:00
Tao Sang 2e89139b49 SWDEV-273138 - Update canUseStreamWaitValue retrieving
Remove canUseStreamWaitValue from hipDeviceProp_t.
Update canUseStreamWaitValue retrieving in hipDeviceGetAttribute().

Change-Id: I275bd42d8b03e141caaf9f1bc6b714e51ca72dfb


[ROCm/clr commit: 08625144b3]
2021-03-18 22:42:35 -04:00
Sourabh Betigeri 58f30f3174 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/clr commit: c90c7a5cf1]
2021-03-18 15:08:58 -04:00
German Andryeyev f0a961f36a SWDEV-277543 - fix destruction of the stream object
Change-Id: If2f532e66099805a7f05181e63f5454893a1a288


[ROCm/clr commit: 5c360446bf]
2021-03-18 13:24:46 -04:00
cjatin 48f0ba9cee SWDEV-272811 - Using OCML functions for conversion of fp to int
Change-Id: Id0c02bf6a2e0553d522035b078a9db4cd3fad215


[ROCm/clr commit: 06fa63df04]
2021-03-18 11:43:30 -04:00
Ravi C Akkenapally 212cc49ed6 SWDEV-276827 - Stream Operations: match API with CUDA
Change-Id: Ia79a950561e97df3b2229f76f5512dede2babf98


[ROCm/clr commit: 397bac37a3]
2021-03-18 07:52:29 -07:00
Sarbojit Sarkar 80bb284b12 SWDEV-276319 - Fix for -ve cases
Change-Id: Ie6157e3cdbd1f959c8ea502b48286bdf102b8a0f


[ROCm/clr commit: 43c371fb7b]
2021-03-18 00:21:43 -04:00
Sarbojit Sarkar 74532ae490 SWDEV-271539 - fix for hipMemcpy3D segfault
Change-Id: I9c76dfaa19fb3a848623ddf3297a6c8a38f7c494


[ROCm/clr commit: 16fcf72c42]
2021-03-18 00:20:52 -04:00
Chauncey Hui eca8f9d072 SWDEV-2 - Change OpenCL version number from 3275 to 3276
[ROCm/clr commit: a19caaf990]
2021-03-17 03:00:05 -04:00
Tao Sang e212e1a947 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/clr commit: 629ea5fe19]
2021-03-16 17:12:08 -04:00
Satyanvesh Dittakavi a82c9f8322 SWDEV-264244 - Hide Notifications from HIP
This fixes hipStreamQuery returning hipErrorNotReady when idle
Change-Id: I3f77666a00bc6a7162b6c660d79e76c09669d94f


[ROCm/clr commit: a711a49881]
2021-03-16 06:30:55 -04:00
Vladislav Sytchenko d09885f10d 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


[ROCm/clr commit: 82e40a6438]
2021-03-15 21:09:58 -04:00
German Andryeyev 6df593de96 SWDEV-276569 - Add P010 support for DX9
Change-Id: I652debccc0fabad89eff3052b884a59d44ee8233


[ROCm/clr commit: 89791c14f9]
2021-03-15 14:45:26 -04:00
jujiang a2ded8ffca SWDEV-271283, SWDEV-274749 - Fix hipLaunchParmFUnctor test failure
Change-Id: I568eba45403feae6f50eceab4a6bcc76756fd5bd


[ROCm/clr commit: 3dea940498]
2021-03-15 14:42:41 -04:00
German Andryeyev 7a411d1a41 Merge "SWDEV-276631 - return error codes for clCreateEventFromGLsyncKHR()" into amd-staging
[ROCm/clr commit: 89e15747ae]
2021-03-15 09:46:36 -04:00
Payam 67fd63192a SWDEV-182753 - Throw error if launch params>bounds
Change-Id: I5f9931efac37e3149894ca116a1b0c2dcc3e5bc5


[ROCm/clr commit: 2e52ceca29]
2021-03-12 19:17:08 -05:00
German Andryeyev 890afbf666 SWDEV-276631 - return error codes for clCreateEventFromGLsyncKHR()
Change-Id: I9b93f5bde157d0f746a9d662ef35fbbb20cce6e6


[ROCm/clr commit: 9aebe61637]
2021-03-12 14:34:59 -05:00
Chauncey Hui b367058ccf SWDEV-2 - Change OpenCL version number from 3274 to 3275
[ROCm/clr commit: dc58078887]
2021-03-12 03:00:05 -05:00
Saleel Kudchadker f2a7ea3927 SWDEV-271010 - Increase active wait time
Increase wait time for active wait to 50us

Change-Id: I8f269ab25ecc6775e655b9eb36fafc5f41a59c95


[ROCm/clr commit: d034c48405]
2021-03-11 13:16:59 -08:00
Saleel Kudchadker 49d2182dc7 SWDEV-271010 - Add 512KB transfer size for test
Add a new transfer to hipPerfBufferCopySpeed test

Change-Id: Ia7ec9a89e8789bf16fd5f86b08521287049c1e77


[ROCm/clr commit: 47e44117cd]
2021-03-11 11:01:54 -08:00
kjayapra-amd 449cc5096e SWDEV-276169 - Multiprocess IPC tests for Events and Memory.
Change-Id: I4a7af60e732de234a535574aa8597a7abd0b899b


[ROCm/clr commit: 57615530a7]
2021-03-11 11:16:23 -05:00
Chauncey Hui 9aaec719a3 SWDEV-2 - Change OpenCL version number from 3273 to 3274
[ROCm/clr commit: 982f6b4159]
2021-03-11 03:00:06 -05:00
Jason Tang 64f4e4c01c SWDEV-3 - Backport M0 changes
Change-Id: I36f676713442479ede142b7e887656f0b658bc7b


[ROCm/clr commit: 8d01cbddbe]
2021-03-10 10:25:42 -05:00
Lakhan singh Thakur 3064521743 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/clr commit: d4041fae4a]
2021-03-10 10:14:36 -05:00
Chauncey Hui e9edf23f52 SWDEV-2 - Change OpenCL version number from 3272 to 3273
[ROCm/clr commit: 6cc43d0807]
2021-03-10 03:00:06 -05:00
jujiang 7020872b45 SWDEV-270961 - Add doxygen for Texture APIs
Change-Id: I4038320a638292440d9ca8c23ffcabffcd9a48c2


[ROCm/clr commit: 3126196cca]
2021-03-09 16:23:56 -05:00
Vladislav Sytchenko 16aedba832 SWDEV-232428 - Fix CI regressions caused by 9eb113d
Change-Id: I6523a8abc19dc5b01f7eacb3a949da01afae60d5


[ROCm/clr commit: 07702bb28f]
2021-03-09 13:50:13 -05:00
Rahul Garg 513c951343 SWDEV-270599 - hipExtLaunchKernelGGL Event Timing Incorrect Between Two Launches
Change-Id: I599a51720f297209072c6be8fffe2aa61e1a071e


[ROCm/clr commit: cc17122987]
2021-03-09 12:18:39 -05:00
Vladislav Sytchenko b1b12e51d1 SWDEV-232428 - Fix CI regressions caused by 9eb113d
Change-Id: I36e9ce964f4d7733450eee356d425d23e1d7ff2c


[ROCm/clr commit: 27e3b875f7]
2021-03-09 11:09:55 -05:00
Vladislav Sytchenko 4acce696ad SWDEV-240001 - Revert "Disable oclruntime OCLPerfCounters test"
This reverts commit 1f915dddd2.

Change-Id: Ib2ea933c456d76e4e7b20e759d43dd74064267ba


[ROCm/clr commit: 294318c8c6]
2021-03-09 10:55:56 -05:00
Vladislav Sytchenko ecb8c6508c SWDEV-240001 - OCLPerfCounters target ID changes
We don't care about target ID features in this test, so we can simply
strip them away to maintain compatability with the internal test table.

Change-Id: I44591a052c02f9e01876a8946f99cfedee371233


[ROCm/clr commit: b620121390]
2021-03-09 10:55:39 -05:00
Vladislav Sytchenko 9eb113d991 SWDEV-232428 - PAL Hostcall support
Since the majority of the Hostcall implementation now sits in the
commmon layer, the PAL backend simply just needs to invoke it. One thing
that is missing though is HSA signal support.

The newly added pal::Signal class is a light emulaion of what HSA
signals provide. The current implementation is just enough to get
Hostcall working, but it can be expanded in the future if needed to
fully emulate HSA signals.

The major difference for now between PAL and ROCm hostcall
implemenations is that PAL doesn't support blocking signals. This will
be enabled in the near future. For now use active wait for PAL.

Change-Id: I746557354ab9d71a7d4a31f9320fcc2fee5aee7f


[ROCm/clr commit: 99e8ac55cd]
2021-03-09 10:44:34 -05:00
Satyanvesh Dittakavi c8e84cbf02 SWDEV-275317 - Fix hipMemcpy2DFromArray to return proper error types
Change-Id: Id722865d81460bfd2fa6ad7a198b6e3c2a08265a


[ROCm/clr commit: daafd303ec]
2021-03-09 05:22:23 -05:00
Chauncey Hui 1191b76593 SWDEV-2 - Change OpenCL version number from 3271 to 3272
[ROCm/clr commit: d9020e3416]
2021-03-09 03:00:06 -05:00
Vladislav Sytchenko 11ad5689db 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/clr commit: 55377dfee2]
2021-03-08 18:12:42 -05:00
Vladislav Sytchenko a38929b879 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/clr commit: 4dd4d8c05f]
2021-03-08 18:11:33 -05:00
German Andryeyev 03ee6e58b0 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


[ROCm/clr commit: e48111bfce]
2021-03-08 14:19:53 -05:00
German Andryeyev e51ecdaff3 SWDEV-274145 - process ACCESS_QUERY for all devices
HIP requires to return AccessedBy query for all device, but ROCr
can process one per query. Hence send the queries for all
available devices and then accumulate the results in runtime.

Change-Id: I082f9adb8e31c775a8ad1bf7a5af37440ef4bd16


[ROCm/clr commit: e9c484d1ce]
2021-03-08 14:19:13 -05:00
Satyanvesh Dittakavi 6531614a23 SWDEV-274404 - Add hipDrvMemcpy3D* and hipMemcpy2DFromArray* APIs on HIP CUDA
Change-Id: I4aba2bff60a7bae6b01b6e471968227b0df8e192


[ROCm/clr commit: 37d4677aba]
2021-03-08 13:14:25 -05:00
Sarbojit Sarkar 27e4e966f7 SWDEV-254329 - Profiler ON/OFF fix
Change-Id: I996d185d2079ce68234109564a529a187ba4f04b


[ROCm/clr commit: 95b2ad994c]
2021-03-08 01:27:46 -05:00
Chauncey Hui b284d83090 SWDEV-2 - Change OpenCL version number from 3270 to 3271
[ROCm/clr commit: 6180595a27]
2021-03-06 03:00:06 -05:00
Julia Jiang f8a37ae71f SWDEV-270961 - Update HIP documents
Change-Id: Iba88d78456b9b190c2af92ca696777e459e4acb0


[ROCm/clr commit: 3a7c3c8f07]
2021-03-05 16:07:38 -05:00