Lines Matching defs:status
100 cl_int status = 0;
106 status = clGetPlatformIDs(0, NULL, &numPlatforms);
107 if (status != CL_SUCCESS) {
114 status = clGetPlatformIDs(numPlatforms, platforms, NULL);
115 if (status != CL_SUCCESS) {
121 status = clGetPlatformInfo(platforms[i], CL_PLATFORM_VENDOR,
123 if (status != CL_SUCCESS) {
144 &status);
145 if (status != CL_SUCCESS) {
152 status = clGetContextInfo(context, CL_CONTEXT_DEVICES, 0, NULL,
154 if (status != CL_SUCCESS) {
165 status = clGetContextInfo(context, CL_CONTEXT_DEVICES, deviceListSize,
167 if (status != CL_SUCCESS) {
173 commandQueue = clCreateCommandQueue(context, devices[0], 0, &status);
174 if (status != CL_SUCCESS) {
185 &status);
186 if (status != CL_SUCCESS) {
191 status = clBuildProgram(program, 1, devices, NULL, NULL, NULL);
192 if (status != CL_SUCCESS) {
197 readKernel = clCreateKernel(program, "read_kernel", &status);
198 if (status != CL_SUCCESS) {
211 cl_int status;
219 status = clSetKernelArg(kernel, 0, sizeof(size_t), &code_size);
220 if (status != CL_SUCCESS) {
226 status = clSetKernelArg(kernel, 1, sizeof(char *), (void *)&code);
227 if (status != CL_SUCCESS) {
234 status = clSetKernelArg(kernel, 2, sizeof(int *), (void *)&keys);
235 if (status != CL_SUCCESS) {
241 status = clSetKernelArg(kernel, 3, sizeof(char *), (void *)&msg);
242 if (status != CL_SUCCESS) {
249 status = clSetKernelArg(kernel, 4, sizeof(int *),
251 if (status != CL_SUCCESS) {
261 status = clEnqueueNDRangeKernel(commandQueue, kernel, 1, NULL,
264 if (status != CL_SUCCESS) {
270 status = clWaitForEvents(1, &event);
271 if (status != CL_SUCCESS) {
277 status = clReleaseEvent(event);
278 if (status != CL_SUCCESS) {
291 cl_int status;
292 status = clReleaseKernel(readKernel);
293 if (status != CL_SUCCESS) {
297 status = clReleaseProgram(program);
298 if (status != CL_SUCCESS) {
302 status = clReleaseCommandQueue(commandQueue);
303 if (status != CL_SUCCESS) {
307 status = clReleaseContext(context);
308 if (status != CL_SUCCESS) {