From 5592798865ece858bab2b444bc782d19121e2566 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sat, 6 Feb 2016 17:21:19 -0800 Subject: style: fix missing spaces in control statements Result of running 'hg m5style --skip-all --fix-control -a'. --- tests/test-progs/gpu-hello/src/gpu-hello-kernel.cl | 2 +- tests/test-progs/gpu-hello/src/gpu-hello.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test-progs/gpu-hello/src') diff --git a/tests/test-progs/gpu-hello/src/gpu-hello-kernel.cl b/tests/test-progs/gpu-hello/src/gpu-hello-kernel.cl index 1f61a6fab..496f9b548 100755 --- a/tests/test-progs/gpu-hello/src/gpu-hello-kernel.cl +++ b/tests/test-progs/gpu-hello/src/gpu-hello-kernel.cl @@ -71,7 +71,7 @@ __kernel void read_kernel(size_t code_size, barrier(CLK_LOCAL_MEM_FENCE); - if(get_local_id(0) == 0) { + if (get_local_id(0) == 0) { int _lcount = atomic_load(&lcount); atomic_fetch_add((atomic_int *)chars_decoded, _lcount); } diff --git a/tests/test-progs/gpu-hello/src/gpu-hello.cpp b/tests/test-progs/gpu-hello/src/gpu-hello.cpp index b6fff6e32..b054558f5 100755 --- a/tests/test-progs/gpu-hello/src/gpu-hello.cpp +++ b/tests/test-progs/gpu-hello/src/gpu-hello.cpp @@ -70,7 +70,7 @@ int setupDataStructs() { msg = (char *)memalign(CACHE_LINE_SIZE, (grid_size + 1) * sizeof(char)); - if(msg == NULL) { + if (msg == NULL) { printf("%s:%d: error: %s\n", __FILE__, __LINE__, "could not allocate host buffers\n"); exit(-1); @@ -126,7 +126,7 @@ setupOpenCL() delete platforms; } - if(NULL == platform) { + if (NULL == platform) { printf("NULL platform found so Exiting Application.\n"); return FAILURE; } -- cgit v1.2.3