Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layers/00_example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
const size_t dispatchTableSize =
sizeof(dispatch) / sizeof(dispatch.clGetPlatformIDs);

if (target_dispatch == nullptr ||
if (target_dispatch == nullptr ||
num_entries_out == nullptr ||
layer_dispatch_ret == nullptr) {
return CL_INVALID_VALUE;
Expand Down
4 changes: 2 additions & 2 deletions layers/10_cmdbufemu/emulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ struct NDRangeKernel : Command
const size_t* global_work_size,
const size_t* local_work_size )
{
if( work_dim == 0 ||
if( work_dim == 0 ||
global_work_size == nullptr ||
local_work_size == nullptr )
{
Expand Down Expand Up @@ -1604,7 +1604,7 @@ typedef struct _cl_command_buffer_khr
for( const auto& command : Commands )
{
errorCode = command->playback(queue, deps);
if( (errorCode == CL_SUCCESS) &&
if( (errorCode == CL_SUCCESS) &&
isRecordQueueInOrder && !isReplayQueueInOrder )
{
errorCode = g_pNextDispatch->clEnqueueBarrierWithWaitList(
Expand Down
2 changes: 1 addition & 1 deletion layers/10_cmdbufemu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
const size_t dispatchTableSize =
sizeof(dispatch) / sizeof(dispatch.clGetPlatformIDs);

if (target_dispatch == nullptr ||
if (target_dispatch == nullptr ||
num_entries_out == nullptr ||
layer_dispatch_ret == nullptr) {
return CL_INVALID_VALUE;
Expand Down
2 changes: 1 addition & 1 deletion layers/11_semaemu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
const size_t dispatchTableSize =
sizeof(dispatch) / sizeof(dispatch.clGetPlatformIDs);

if (target_dispatch == nullptr ||
if (target_dispatch == nullptr ||
num_entries_out == nullptr ||
layer_dispatch_ret == nullptr) {
return CL_INVALID_VALUE;
Expand Down
2 changes: 1 addition & 1 deletion layers/12_spirvqueriesemu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
const size_t dispatchTableSize =
sizeof(dispatch) / sizeof(dispatch.clGetPlatformIDs);

if (target_dispatch == nullptr ||
if (target_dispatch == nullptr ||
num_entries_out == nullptr ||
layer_dispatch_ret == nullptr) {
return CL_INVALID_VALUE;
Expand Down
6 changes: 3 additions & 3 deletions samples/python/03_mandelbrot/mandelbrot.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@
program.build()
kernel = program.Mandelbrot

deviceMemDst = cl.Buffer(context, cl.mem_flags.ALLOC_HOST_PTR,
deviceMemDst = cl.Buffer(context, cl.mem_flags.ALLOC_HOST_PTR,
width * height * np.uint32().itemsize)

# execution
kernel(commandQueue, [width, height], None,
kernel(commandQueue, [width, height], None,
np.float32(-2.0), np.float32(-1.0), np.float32(1.0), np.float32(1.0),
np.int32(width), np.int32(height), np.int32(maxIterations), deviceMemDst)

# save bitmap
mapped_dst, event = cl.enqueue_map_buffer(commandQueue, deviceMemDst,
cl.map_flags.READ,
cl.map_flags.READ,
0, width * height, np.uint32)
with mapped_dst.base:
colors = np.fromiter((240 if x & 1 else 20 for x in mapped_dst), np.uint8)
Expand Down
4 changes: 2 additions & 2 deletions samples/python/04_julia/julia.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
program.build()
kernel = program.Julia

deviceMemDst = cl.Buffer(context, cl.mem_flags.ALLOC_HOST_PTR,
deviceMemDst = cl.Buffer(context, cl.mem_flags.ALLOC_HOST_PTR,
gwx * gwy * 4 * np.uint8().itemsize)

lws = None
Expand Down Expand Up @@ -131,7 +131,7 @@
print('Finished in {} seconds'.format(end - start))

mapped_dst, event = cl.enqueue_map_buffer(commandQueue, deviceMemDst,
cl.map_flags.READ,
cl.map_flags.READ,
0, gwx * gwy, np.uint32)
with mapped_dst.base:
# note: this generates a 24-bit .bmp file instead of a 32-bit .bmp file!
Expand Down
4 changes: 2 additions & 2 deletions tutorials/interceptlayer/part0.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It will crash initially - that's fine!
As part of the tutorial we will fix bugs that are preventing the tutorial application from running and running well.

```
$ ./sinjulia
$ ./sinjulia
*** Important Note! ***
This is the Intercept Layer Tutorial application.
It will crash initially! Please see the tutorial README for details.
Expand All @@ -31,7 +31,7 @@ This tutorial is written to use the [cliloader](https://github.com/intel/opencl-
After building and installing the Intercept Layer and `cliloader`, you should be able to use it to execute the tutorial application.

```
$ cliloader ./sinjulia
$ cliloader ./sinjulia
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
CLIntercept (64-bit) is loading...
CLIntercept file location: /home/bashbaug/bin/../lib/libOpenCL.so
Expand Down
2 changes: 1 addition & 1 deletion tutorials/interceptlayer/part1.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Note that `CallLogging` can be enabled by passing the `-c` option to `cliloader`
After enabling these controls, re-run the tutorial application.

```
$ cliloader ./sinjulia
$ cliloader ./sinjulia
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
CLIntercept (64-bit) is loading...
CLIntercept file location: /home/bashbaug/bin/../lib/libOpenCL.so
Expand Down
2 changes: 1 addition & 1 deletion tutorials/interceptlayer/part2.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Intercept Layer for OpenCL Applications can pinpoint errors in OpenCL kernel
After fixing the bug in part 1, and with `ErrorLogging` and `CallLogging` still set, the next OpenCL error is this one:

```
$ cliloader ./sinjulia
$ cliloader ./sinjulia
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
CLIntercept (64-bit) is loading...
<snip>
Expand Down