clray

diff src/ocl.cc @ 60:8c858e1a89e8

minor cleanups
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 28 Dec 2015 09:08:49 +0200
parents 8047637961a2
children
line diff
     1.1 --- a/src/ocl.cc	Sun Sep 12 07:27:12 2010 +0100
     1.2 +++ b/src/ocl.cc	Mon Dec 28 09:08:49 2015 +0200
     1.3 @@ -1,5 +1,7 @@
     1.4  #define OCL_CC_
     1.5  
     1.6 +#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
     1.7 +
     1.8  #include <stdio.h>
     1.9  #include <stdlib.h>
    1.10  #include <string.h>
    1.11 @@ -129,6 +131,11 @@
    1.12  	}
    1.13  }
    1.14  
    1.15 +void finish_opencl()
    1.16 +{
    1.17 +	clFinish(cmdq);
    1.18 +}
    1.19 +
    1.20  
    1.21  CLMemBuffer *create_mem_buffer(int rdwr, size_t sz, const void *buf)
    1.22  {