@@ -34,12 +34,12 @@ int main(void) {
3434 cl_platform_id platform ;
3535 cl_program program ;
3636
37- /* Run kernel. */
37+ /* Run kernel. */
3838 clGetPlatformIDs (1 , & platform , NULL );
3939 clGetDeviceIDs (platform , CL_DEVICE_TYPE_ALL , 1 , & device , NULL );
4040 context = clCreateContext (NULL , 1 , & device , NULL , NULL , NULL );
4141 program = clCreateProgramWithSource (context , 1 , & source , NULL , NULL );
42- clBuildProgram (program , 1 , & device , "" , NULL , NULL );
42+ clBuildProgram (program , 1 , & device , "" , NULL , NULL );
4343 kernel = clCreateKernel (program , "kmain" , NULL );
4444 buffer = clCreateBuffer (context , CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR , sizeof (cl_int ), & input , NULL );
4545 clSetKernelArg (kernel , 0 , sizeof (buffer ), & buffer );
@@ -49,7 +49,7 @@ int main(void) {
4949 clFinish (command_queue );
5050 clEnqueueReadBuffer (command_queue , buffer , CL_TRUE , 0 , sizeof (input ), & input , 0 , NULL , NULL );
5151
52- /* Asserts. */
52+ /* Asserts. */
5353 assert (input == 2 );
5454
5555 /* Cleanup. */
@@ -59,7 +59,7 @@ int main(void) {
5959 clReleaseKernel (kernel );
6060 clReleaseContext (context );
6161#ifdef CL_1_2
62- clReleaseDevice (device );
62+ clReleaseDevice (device );
6363#endif
6464 return EXIT_SUCCESS ;
6565}
0 commit comments