Skip to content

Commit 7d59ec1

Browse files
authored
remove trailing whitespace (#158)
1 parent b0eae3d commit 7d59ec1

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

layers/00_example/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
106106
const size_t dispatchTableSize =
107107
sizeof(dispatch) / sizeof(dispatch.clGetPlatformIDs);
108108

109-
if (target_dispatch == nullptr ||
109+
if (target_dispatch == nullptr ||
110110
num_entries_out == nullptr ||
111111
layer_dispatch_ret == nullptr) {
112112
return CL_INVALID_VALUE;

layers/10_cmdbufemu/emulate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ struct NDRangeKernel : Command
11201120
const size_t* global_work_size,
11211121
const size_t* local_work_size )
11221122
{
1123-
if( work_dim == 0 ||
1123+
if( work_dim == 0 ||
11241124
global_work_size == nullptr ||
11251125
local_work_size == nullptr )
11261126
{
@@ -1604,7 +1604,7 @@ typedef struct _cl_command_buffer_khr
16041604
for( const auto& command : Commands )
16051605
{
16061606
errorCode = command->playback(queue, deps);
1607-
if( (errorCode == CL_SUCCESS) &&
1607+
if( (errorCode == CL_SUCCESS) &&
16081608
isRecordQueueInOrder && !isReplayQueueInOrder )
16091609
{
16101610
errorCode = g_pNextDispatch->clEnqueueBarrierWithWaitList(

layers/10_cmdbufemu/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
275275
const size_t dispatchTableSize =
276276
sizeof(dispatch) / sizeof(dispatch.clGetPlatformIDs);
277277

278-
if (target_dispatch == nullptr ||
278+
if (target_dispatch == nullptr ||
279279
num_entries_out == nullptr ||
280280
layer_dispatch_ret == nullptr) {
281281
return CL_INVALID_VALUE;

layers/11_semaemu/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
234234
const size_t dispatchTableSize =
235235
sizeof(dispatch) / sizeof(dispatch.clGetPlatformIDs);
236236

237-
if (target_dispatch == nullptr ||
237+
if (target_dispatch == nullptr ||
238238
num_entries_out == nullptr ||
239239
layer_dispatch_ret == nullptr) {
240240
return CL_INVALID_VALUE;

layers/12_spirvqueriesemu/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
137137
const size_t dispatchTableSize =
138138
sizeof(dispatch) / sizeof(dispatch.clGetPlatformIDs);
139139

140-
if (target_dispatch == nullptr ||
140+
if (target_dispatch == nullptr ||
141141
num_entries_out == nullptr ||
142142
layer_dispatch_ret == nullptr) {
143143
return CL_INVALID_VALUE;

samples/python/03_mandelbrot/mandelbrot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,17 @@
7878
program.build()
7979
kernel = program.Mandelbrot
8080

81-
deviceMemDst = cl.Buffer(context, cl.mem_flags.ALLOC_HOST_PTR,
81+
deviceMemDst = cl.Buffer(context, cl.mem_flags.ALLOC_HOST_PTR,
8282
width * height * np.uint32().itemsize)
8383

8484
# execution
85-
kernel(commandQueue, [width, height], None,
85+
kernel(commandQueue, [width, height], None,
8686
np.float32(-2.0), np.float32(-1.0), np.float32(1.0), np.float32(1.0),
8787
np.int32(width), np.int32(height), np.int32(maxIterations), deviceMemDst)
8888

8989
# save bitmap
9090
mapped_dst, event = cl.enqueue_map_buffer(commandQueue, deviceMemDst,
91-
cl.map_flags.READ,
91+
cl.map_flags.READ,
9292
0, width * height, np.uint32)
9393
with mapped_dst.base:
9494
colors = np.fromiter((240 if x & 1 else 20 for x in mapped_dst), np.uint8)

samples/python/04_julia/julia.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
program.build()
103103
kernel = program.Julia
104104

105-
deviceMemDst = cl.Buffer(context, cl.mem_flags.ALLOC_HOST_PTR,
105+
deviceMemDst = cl.Buffer(context, cl.mem_flags.ALLOC_HOST_PTR,
106106
gwx * gwy * 4 * np.uint8().itemsize)
107107

108108
lws = None
@@ -131,7 +131,7 @@
131131
print('Finished in {} seconds'.format(end - start))
132132

133133
mapped_dst, event = cl.enqueue_map_buffer(commandQueue, deviceMemDst,
134-
cl.map_flags.READ,
134+
cl.map_flags.READ,
135135
0, gwx * gwy, np.uint32)
136136
with mapped_dst.base:
137137
# note: this generates a 24-bit .bmp file instead of a 32-bit .bmp file!

tutorials/interceptlayer/part0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ It will crash initially - that's fine!
1212
As part of the tutorial we will fix bugs that are preventing the tutorial application from running and running well.
1313

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

3333
```
34-
$ cliloader ./sinjulia
34+
$ cliloader ./sinjulia
3535
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
3636
CLIntercept (64-bit) is loading...
3737
CLIntercept file location: /home/bashbaug/bin/../lib/libOpenCL.so

tutorials/interceptlayer/part1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Note that `CallLogging` can be enabled by passing the `-c` option to `cliloader`
1212
After enabling these controls, re-run the tutorial application.
1313

1414
```
15-
$ cliloader ./sinjulia
15+
$ cliloader ./sinjulia
1616
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1717
CLIntercept (64-bit) is loading...
1818
CLIntercept file location: /home/bashbaug/bin/../lib/libOpenCL.so

tutorials/interceptlayer/part2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The Intercept Layer for OpenCL Applications can pinpoint errors in OpenCL kernel
99
After fixing the bug in part 1, and with `ErrorLogging` and `CallLogging` still set, the next OpenCL error is this one:
1010

1111
```
12-
$ cliloader ./sinjulia
12+
$ cliloader ./sinjulia
1313
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1414
CLIntercept (64-bit) is loading...
1515
<snip>

0 commit comments

Comments
 (0)