Commit graph

3860 Commits

Autor SHA1 Nachricht Datum
German Andryeyev e4f51e063b Disable worker thread creation for direct dispatch
Change-Id: I28f08ab9352310c9bf843fcb803a48f95ddf4676
2020-11-30 17:50:12 -05:00
German Andryeyev 4af8b53846 Enable GPU memory in HMM by default
Change-Id: Ifec4733dc7a932163d921ebe1ae9fbd594ea1ef2
2020-11-30 12:39:18 -05:00
German Andryeyev 08b846ae12 Remove obsolete terminate() method
Change-Id: I66b4a74f17977f1af320f402402a2f1b602e9911
2020-11-30 11:46:09 -05:00
Chauncey Hui 00832fe573 SWDEV-2 - Change OpenCL version number from 3234 to 3235 2020-11-28 03:00:04 -05:00
Jason Tang 87762850d3 Make the Target ID ELF definition only visible to HIP
Change-Id: I5a87bed806239839156cc4af56d339bfdefc90c6
2020-11-26 18:17:46 -05:00
Chauncey Hui 1891cdf86d SWDEV-2 - Change OpenCL version number from 3233 to 3234 2020-11-25 03:00:04 -05:00
Jason Tang 0c62d3bf1c SWDEV-260632 - [PAL] Use new Target ID format
Change-Id: Icd2d95b9c3f5adbd295fb2272bf453ccb9f09678
2020-11-24 17:38:13 -05:00
Alex Xie 6327dbc4cc SWDEV-258808 - OCLSeparateCompile subtest of oclcompiler error
[PAL to KFD/ROCr][ROCr_Runtime][Vega10] OCLSeparateCompile subtest of
oclcompiler from ocltst test package is encountering clLinkProgram()
failed (chksum 0x00000001) error

If runtime does not provide a file name as dump file to ELF library,
ELF library use a temp file in current folder.
The current folder can be not writable for several reasons:
1. The application current folder might be system folder, the user
  does not have write permission.
2. The current folder is under a readonly file system. This happens for
embedded customers.

Tested in VEGA10. Issue was fixed.

Change-Id: Ic0e9f040b7c7583914301673cce237ab28b0c0cb
2020-11-24 15:08:12 -05:00
Chauncey Hui 7c7e36dd44 SWDEV-2 - Change OpenCL version number from 3232 to 3233 2020-11-24 03:00:04 -05:00
Tony 4f8067beab Add additional targets
Add:

- gfx602
- gfx705
- gfx805
- gfx90c
- gfx1032
- gfx1033

Change-Id: Idfe7d42bacd133413ac3ffd058b7ff9d298677e2
2020-11-23 20:00:01 +00:00
Aryan Salmanpour 72277c29b0 don't update maxComputeUnits_ if any exception occurs during conversion of global CU mask string
Change-Id: I7664809fe84d7422b18b1272ffeb642e03a39f1a
2020-11-23 09:51:19 -05:00
Chauncey Hui 81e22bf4b7 SWDEV-2 - Change OpenCL version number from 3231 to 3232 2020-11-22 03:00:03 -05:00
Jason Tang 3351b9c993 SWDEV-260632 - [PAL] Simplify NullDevice::init()
Change-Id: I9d44162f38806e3742c18da48e382baafeb7060f
2020-11-21 10:00:35 -05:00
Chauncey Hui 044bc684e6 SWDEV-2 - Change OpenCL version number from 3230 to 3231 2020-11-21 03:00:03 -05:00
Aryan Salmanpour d03ee6eff6 Add an environment variable for setting a global CU mask
Change-Id: I773b152023c7b8e1e679a42015748f9b23fd946d
2020-11-20 10:05:09 -05:00
Chauncey Hui 393e118b91 SWDEV-2 - Change OpenCL version number from 3229 to 3230 2020-11-19 03:00:04 -05:00
Vladislav Sytchenko b4e212a0f9 [PAL] Force large buffer mappings to use pinned memory
PAL doesn't perform chunking for system memory allocations, hence we
should fall back to using pinned memory for mapping large buffers.

Change-Id: I1b472616b72d12ed0105fb65532acacdb98ac7b3
2020-11-18 17:12:32 -05:00
German Andryeyev 089a5cc4ad Add image view allocation
If deferred allocation is disabled, then make sure the image view
is created without a delay. Also reset the allocation state, since
create() method isn't called for a view creation.

Change-Id: I7aa22a62bff18289ade83e56b5d3305ba68c715b
2020-11-18 09:37:30 -05:00
Chauncey Hui ec22c54d85 SWDEV-2 - Change OpenCL version number from 3228 to 3229 2020-11-18 03:00:08 -05:00
Vladislav Sytchenko ec130a5a28 Disable branch-fold optimization temporarily for some Adobe apps
Change-Id: I8b4af4decb6b3ba4b856167ffb0ae8200b21a835
2020-11-17 12:51:33 -05:00
Chauncey Hui a77b718fc9 SWDEV-2 - Change OpenCL version number from 3227 to 3228 2020-11-14 03:00:03 -05:00
Vladislav Sytchenko 026baec57b [PAL] Navi23 support
Change-Id: I10bb0653746060bd83ca7feda10fdafc07ced845
2020-11-13 15:08:04 -05:00
Vladislav Sytchenko 5e60e06a50 [PAL] Navi22 support
Change-Id: I9f1741898b4afaa0e787d8053d8f006ee3d17017
2020-11-13 15:00:57 -05:00
Vladislav Sytchenko 353a018bce [PAL] Report actual HW limits for max image buffer size
Change-Id: I62aa3f1e9709b91ba223af0abf8bf6395fe8ec59
2020-11-13 14:59:50 -05:00
German Andryeyev 532f0ae951 Add direct dispatch simple hack for testing
The hack dosn't really track the commands status. It may be not
necessary for HIP, but will cause early resource release.

Change-Id: I791ad36dd8abd3b6b3d2c9b16a210a555c08ca64
2020-11-13 10:36:23 -05:00
Jason Tang 2ee2392f63 SWDEV-260376 - [PAL] Fix Windows build
Change-Id: I788198b5980a46981de4b2e7aaa6a495e6e98cad
2020-11-13 09:51:43 -05:00
Chauncey Hui ec8eb12c1b SWDEV-2 - Change OpenCL version number from 3226 to 3227 2020-11-13 03:00:03 -05:00
Sarbojit Sarkar 099f8d61dd SWDEV-258573 : fix for OCLP2PBuffer test failure
Change-Id: I363d4fb2bb94d9bc03e96844d31dec7ef9b2ce33
2020-11-13 02:25:53 -05:00
Jason Tang b1d75637bd SWDEV-260376 - [PAL] Use Pal::AsicRevision to match device
A device's offset in Pal::AsicRevision could be changed from time to time, while the current implementation assume the offset never changes.

Change-Id: Id993512aa0da6e0b2356f594d5e58f76d1f97f16
2020-11-12 09:49:48 -05:00
Chauncey Hui 415c3075c7 SWDEV-2 - Change OpenCL version number from 3225 to 3226 2020-11-12 03:00:08 -05:00
jujiang 92a7c26f96 SWDEV-259096-update rocclr readme
Change-Id: Ied0cca5ce3e8f81b85e5c01839520d7c31ac3e07
2020-11-11 16:30:26 -05:00
German Andryeyev 234a94f838 Add SPM support for RGP
RGP protocol supports SPM collection. Enable it in the PAL backend.

Change-Id: I0fa17334addad037ba6689d11fff0993f7899e66
2020-11-11 13:10:23 -05:00
Chauncey Hui 11f79812e1 SWDEV-2 - Change OpenCL version number from 3224 to 3225 2020-11-11 03:00:04 -05:00
Konstantin Zhuravlyov ee6b0d9294 SWDEV-198415 - Implement Target ID Proposal
Changes from Jason Tang, Tony Tye

Change-Id: Idb9b6923f12dfb61a5773c9aa3d3fbeb1327ec47
2020-11-10 13:22:58 -05:00
Chauncey Hui 115d5ccfd5 SWDEV-2 - Change OpenCL version number from 3223 to 3224 2020-11-04 03:00:06 -05:00
Alex Xie f5ce682ac3 SWDEV-258132 [LNX][Navi23] Segmentation fault when run clinfo
Change-Id: Ic8833726214b32f70a35f3922baf2afae87b25af
2020-11-03 14:40:31 -05:00
Chauncey Hui 137c61d20c SWDEV-2 - Change OpenCL version number from 3222 to 3223 2020-11-03 03:00:04 -05:00
Tao Sang ce4cc6095c Fix wrong include path
Fix wrong include path of ROCclrConfig.cmake.in

Change-Id: Ic5a1387a426cf02a985a4ef8ff8ff15e6a871cbb
2020-10-30 18:19:34 -04:00
Chauncey Hui a253c82430 SWDEV-2 - Change OpenCL version number from 3221 to 3222 2020-10-27 03:00:02 -04:00
Tao Sang 6a6faf1d58 Fix crash in delete of TempWrapper
OCLTST crashing at oclruntime.OCLKernelBinary for
Tahiti because of deleting on pointer vector which
is however a single pointer. The fix will correct
the wrong deleting in TempWrapper destructor.

Change-Id: Ic5a1387a426c102b085a4ef8ff8ff05e6a870cba
2020-10-26 16:04:39 -04:00
Jason Tang d943cae31f Add CommandKindString to the log
Change-Id: Ie23123a85cff82b1732da85f5bffbff6958c02e5
2020-10-26 09:16:03 -04:00
Jason Tang 1da0fe4263 SWDEV-254181 - Fix ocl min_max_image_buffer_size regression.
ROCr is now reporting the actual HW addressing limits for HIP, so OpenCL will have to impose lower limit.

Change-Id: I60c2ce27ed1d1f45f16fb76438965a236ba872c6
2020-10-26 09:15:31 -04:00
Chauncey Hui e558ef48be SWDEV-2 - Change OpenCL version number from 3220 to 3221 2020-10-24 03:00:03 -04:00
German Andryeyev bd340d8cbf Correct reported info in ROC profiler
OCL can't distinguish different copy types, but ROC profiler
expects SDMA transfer visibility. Add extra code to detect
a transfer with the host memory and substitute OCL command

Change-Id: I5290acd0e10bc082e00c1d4ae1474a075de7f165
2020-10-23 18:29:48 -04:00
Chauncey Hui 17d2e5cf56 SWDEV-2 - Change OpenCL version number from 3219 to 3220 2020-10-23 03:00:03 -04:00
Evgeny 6f88bf5eac SWDEV-249623 : vdi: case string for marker activity
Change-Id: Id1767a5f33d821d649e15f4659e3520ee215c374
2020-10-22 04:04:00 -04:00
Chauncey Hui 28f71a682d SWDEV-2 - Change OpenCL version number from 3218 to 3219 2020-10-22 03:00:04 -04:00
Alex Xie e5588f188c SWDEV-256126 - Linux pro Nuke app crash with "Out of memory "while running Rip plugin test
We unmap a memory with a different pointer.
ROCr runtime might be confused and silently ignore the unmap request

Change-Id: Ic5a1387a426cf02a985a4ef8ff8ff05e6a870cbf
2020-10-21 11:33:42 -04:00
Chauncey Hui cb9684ab0b SWDEV-2 - Change OpenCL version number from 3217 to 3218 2020-10-21 03:00:07 -04:00
Rahul Garg 5ff3010e1b Add MemoryMapFileTruncated function
Change-Id: I26d2a9fbac668cbac284bdfad0d7912db521dc70
2020-10-20 20:25:27 -04:00