diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-06-30 00:12:05 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-06-30 00:12:05 +0000 |
commit | 11d99a456efb8a0f99090b7c183be20495b3c675 (patch) | |
tree | d1655cd91720e6a502155817d2024c894296c083 /src/core/commandqueue.h | |
parent | dc931e9a05042727d3dd2e82f18cd580e6680bb5 (diff) |
Implement clEnqueueMigrateMemObjects() v1.2 API
This implementation passes the Khronos test_buffer_migrate test of the
buffers test.
However, a real test requires devices of different memory affinities,
between which to migrate the buffers, which
in the case of a CPUDevice only implementation on heterogenous cores,
we don't currently have.
Nevertheless, this patch implements the API, and the backend has a
nominal implementation which will pre-allocate device buffers when called.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
Diffstat (limited to 'src/core/commandqueue.h')
-rw-r--r-- | src/core/commandqueue.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/commandqueue.h b/src/core/commandqueue.h index dea1544..e8e9b74 100644 --- a/src/core/commandqueue.h +++ b/src/core/commandqueue.h @@ -260,8 +260,9 @@ class Event : public Object WriteBufferRect = CL_COMMAND_WRITE_BUFFER_RECT, CopyBufferRect = CL_COMMAND_COPY_BUFFER_RECT, FillBuffer = CL_COMMAND_FILL_BUFFER, + MigrateMemObjects = CL_COMMAND_MIGRATE_MEM_OBJECTS, User = CL_COMMAND_USER, - Barrier, + Barrier = CL_COMMAND_BARRIER, WaitForEvents }; |