Woloszyn, Wojciech
44fbbaee24
Implement clEnqueueWaitForEvents
...
Change-Id: I54a1f75ed2935d75fa3d6e07d52ea0831b355dd7
2018-08-07 09:14:46 +02:00
Katarzyna Cencelewska
831532bf14
Add missing API_ENTER logging in functions:
...
clCreateImage2D, clCreateImage3D,
clGetSupportedImageFormats, clGetMemObjectInfo,
clGetImageInfo, clGetImageParamsINTEL,
clSetMemObjectDestructorCallback, clCreateSampler,
clRetainSampler, clReleaseSampler,
clGetSamplerInfo, clCreateProgramWithSource,
clCreateProgramWithBinary
Change-Id: I37214fe5f815c0cc39ec29082ed1f4efb52af4c7
2018-08-04 14:18:24 +02:00
Katarzyna Cencelewska
a2a2eaf5dd
Add missing API_ENTER logging in functions:
...
clGetEventInfo, clCreateUserEvent,
clRetainEvent, clReleaseEvent,
clSetUserEventStatus, clSetEventCallback,
clGetEventProfilingInfo, clEnqueueReadBufferRect,
clEnqueueWriteBufferRect, clEnqueueFillBuffer
Change-Id: Ie1fd337d926fa28474157f97390b9c3aece0a782
2018-08-02 13:18:50 +02:00
Katarzyna Cencelewska
8f18841f38
Add missing API_ENTER logging in function:
...
clRetainContext, clReleaseContext,
clGetContextInfo, clCreateCommandQueue,
clRetainCommandQueue, clReleaseCommandQueue,
clGetCommandQueueInfo, clSetCommandQueueProperty,
clCreateBuffer, clCreateSubBuffer
Change-Id: I70c0b57d6f5ff335145593f1a81bc5055b1d0c0c
2018-08-02 13:10:53 +02:00
Katarzyna Cencelewska
ccbbebdf75
Add missing API_ENTER logging in functions:
...
clCreateProgramWithIL, clCreateProgramWithBuiltInKernels,
clRetainProgram, clReleaseProgram,
clLinkProgram, clGetProgramInfo,
clGetProgramBuildInfo, clCreateKernelsInProgram,
clCreateKernelsInProgram, clRetainKernel,
clReleaseKernel, clSetKernelArg,
clGetKernelInfo, clGetKernelArgInfo,
clGetKernelWorkGroupInfo
Change-Id: I4cbe68dd8593e6d42b6e1e4c25a7155a477aa7d0
2018-08-01 17:13:19 +02:00
Katarzyna Cencelewska
00a62f204a
Add missing API_ENTER logging in functions:
...
clGetPlatformIDs, clIcdGetPlatformIDsKHR,
clGetPlatformInfo, clGetDeviceIDs,
clCreateSubDevices, clRetainDevice,
clCreateContextFromType
Change-Id: I571b036cc6b64a66d768d7f3f8eb55e7d69b9aa7
2018-08-01 14:29:10 +02:00
Mrozek, Michal
121376b248
Remove redundant cast.
...
Change-Id: I72734ba38d7dd9a5d0055340e6de5709d2de635c
2018-07-17 19:13:45 +02:00
Mrozek, Michal
513d23ca1d
Return error if invalid context is passed.
...
Change-Id: Icff0b6658badb08183340375abd1e68fc582c25d
2018-07-17 18:51:45 +02:00
Mrozek, Michal
d69f23dc10
Enhance validation of properties when command queue is created.
...
Change-Id: I1735ef8d9fbc17a09b9711f8f881c27c5de6b82c
2018-07-10 14:44:15 +02:00
Mrozek, Michal
a21c0a0074
Add control on platform life cycle.
...
Change-Id: I5c24b41747d822b71dd57e9a949cf25fcc78a453
2018-06-27 10:09:26 +02:00
Mrozek, Michal
5c0a562a6b
Simplify platform initialize.
...
- Remove not required parameters
- move the logic to ult directories
Change-Id: I913f1048489137a61220d96fa9f2798572cd4f56
2018-06-21 12:46:35 +02:00
Zdunowski, Piotr
157ffbceb5
Revert "Builtins increase context refcount."
...
This reverts commit 39d55e5257 .
Change-Id: Ib5b38e5a508c5e56e61c7f0ac0b5b8a965d6170d
2018-05-28 16:35:45 +02:00
Zdunowski, Piotr
39d55e5257
Builtins increase context refcount.
...
Change-Id: I146852092e1cb374b816875ae9a90ac03a8f205e
2018-05-23 17:56:20 +02:00
hjnapiat
c8c2832068
Improve logging of some OpenCL APIs
...
Change-Id: I80f7019dadf4e4f39710ed767745c7a605f44d3a
2018-05-09 12:47:17 +02:00
Chodor, Jaroslaw
1c3ff8a15b
Adding mipmap support in sampler
...
* sampler mipmap lod/filtering programming
* sampler queries
* clCreateSamplerWithProperties
* fixed point numeric type (e.g. U4.8)
Change-Id: I6b496e6f067f6232bab464ab3ee74af8b00904d3
2018-04-10 22:15:09 +02:00
Chodor, Jaroslaw
0a97dfbb2f
[1/n] Mipmap support
...
* adding support for map/unmap
* adding support for origin/region validation with mipmaps
* fixing slices returned in map/unmap
* removing ambiguity around mipLevel naming
* enabling cl_khr_mipmap_image in current shape
* enabling cl_khr_mipmap_image_writes in current shape
* fixing CompileProgramWithReraFlag test
Change-Id: I0c9d83028c5c376f638e45151755fd2c7d0fb0ab
2018-04-05 01:09:27 +02:00
Mrozek, Michal
d7fe01454b
Make sure that gtpin callbacks are not executed in enqueue path.
...
-This is to make sure those functions are not called when gtpin is not used
-This preserves CPU instruction cache pollution.
-Our enqueue path needs to be as thin as possible, even with this small change
there is visible gain in ULT execution time.
Change-Id: I44cc2144754cda95ca1fe058184cd8a151b8d35c
2018-03-23 12:54:17 +01:00
Dunajski, Bartosz
08c2379f6e
Validate region and origin for all image API calls
...
Change-Id: I28782d8838cf8f5d800f76c922fcb59235f637a1
2018-03-09 08:24:25 +01:00
Dunajski, Bartosz
23c1c4fea6
clEnqueueMapImage origin and region usage fixes
...
- Return error on origin > 0 or region > 1 when its not allowed
- For 1Darray, array region and origin are stored on 2nd position.
For 2Darray, its on 3rd postion
- Fix map offset for 1Darray image
- Fix CPU data transfer for 1Darray image
Change-Id: Id35ba5f54f117e7af318ca7e6e03c1fc942ce729
2018-03-08 08:54:48 +01:00
Mrozek, Michal
7f7daef49c
Avoid default parameter to program constructor.
...
Change-Id: I75e9a619131f7d8721416cf18d87418568d04f25
2018-02-28 16:56:07 +01:00
Dunajski, Bartosz
dd44a87d5f
Map/unmap enqueue fixes [6/n]: Support multiple map operations
...
- Dont make cpu/gpu writes on read-only unmap
- Read/Write on limited map range only
- Overlaps checks for non read-only maps
- Fixed cmd type on returned event
Change-Id: I98ca542e8d369d2426a87279f86cadb0bf3db299
2018-02-23 10:45:06 +01:00
Mrozek, Michal
f90ebac12a
Clean obsolete code.
...
Change-Id: I9551f7217924c7ea8f44a3322fc3096252c4d6f7
2018-02-23 08:10:12 +01:00
Dunajski, Bartosz
b4f79e036f
Map/unmap enqueue fixes [5/n]: Unify offset calculation
...
Change-Id: I53eafe89532d43c5cf5139ed3fac0a87619dc7a3
2018-02-21 20:12:52 +01:00
Artur Harasimiuk
a99d951c55
clGetPlatformIDs should check if platform initialization was successful
...
Change-Id: I3e9d78155e6a914ed0d755d81ddc13c4d3a8a291
2018-02-19 12:12:29 +01:00
hjnapiat
5909a6b3d3
Add support for GT-Pin Callbacks [3/n]
...
Change-Id: Iea4b49efc9a666fde310ece15a9c69686d22f627
2018-02-19 10:43:19 +01:00
Dunajski, Bartosz
e0ca78ccea
Map/unmap enqueue fixes [3/n]: Map params inconsistency
...
- Introducing MapInfo struct which will be used as container for multiple
map operations
- Unified mapped offset and size for Buffers and Images
- Fixed incorrect map params for CPU and GPU path
- Missing API level checks
Change-Id: Ib4077c9e2c0c333b131ffd5ccbc4a1404920eb5b
2018-02-16 08:28:29 +01:00
Dunajski, Bartosz
4f2a05ac88
Map/unmap enqueue fixes [2/n]: CPU operations on limited range
...
- Curently each non-zerocopy CPU operation on map/unmap make a full copy
using hostPtr
- This commit adds functionality to select specific range of copy
- Multiple mapping with different size is not supported yet,
so copy will be made on full range for now. This is for future usage.
Change-Id: I7652e85482ba6fffb2474169447baf9b080dcd1e
2018-02-13 16:29:01 +01:00
Jacek Danecki
ff44e9922d
Used ratified Khronos extension names
...
Change-Id: I15b62b6f5fb805efedec5cd9e14215a94d97c8f6
2018-02-13 13:33:27 +01:00
Dunajski, Bartosz
72b78d15ee
Map/unmap enqueue fixes [1/n]: Unify Buffer and Image paths
...
Change-Id: I59bf18072c15367ff6caec5dbdc1350ea2d93281
2018-02-09 17:35:03 +01:00
Mateusz Jablonski
ea021f8d69
Cmake refactor part 1: fix dependencies with including os_inc.h
...
Remove some not needed includes
Change-Id: I158ad663ccfcec4822e3768df9d05090c5e096f9
2018-02-08 09:40:40 +01:00
Zdunowski, Piotr
1cfe5344fc
Enable throttle hints extension.
...
Change-Id: I996fce8dbc792d77dc85df143ba5c0aa1cad83e5
2018-02-06 17:01:37 +01:00
Dunajski, Bartosz
844f956244
Remove redundant/recursive checks in unmap operations
...
- Some of the paths were made only for ULTs
- Params like mappedPtr were ignored
- Improve confusing method names
- Fix for memory leak in map shared buffer path (not tested code)
Change-Id: I8a69035f1d1c340f2d131a6f8d7e13116e3ddabc
2018-02-02 10:36:09 +01:00
Zdunowski, Piotr
0b6b12ea57
Globally enable priority hints extension.
...
Change-Id: I9f3b8d3cf1bedb41d9e0622ff514bf76b4518d8c
2018-01-24 20:07:31 +01:00
hjnapiat
5b0ebe25d5
Add support for GT-Pin Callbacks [2/n]
...
Change-Id: Ibdb76361be2a0e48888b46e9ed6dfe6b0ed49862
2018-01-24 16:25:02 +01:00
hjnapiat
17c6142191
Add support for GT-Pin Callbacks [1/n]
...
- Also fixes bug when returning version of supported GT-Pin interface
Change-Id: Ib471a11a3b51d69240dcd2f800a8e28eefdeed57
2018-01-09 14:26:47 +01:00
Brandon Fliflet
7e9ad41290
Initial commit
...
Change-Id: I4bf1707bd3dfeadf2c17b0a7daff372b1925ebbd
2017-12-21 00:45:38 +01:00