src/align: Update copyright header for raw imports.
[libale.git] / cl_stub.c
blob864dcc9d328077d796fbedf43f885db2318f8633
1 /*
2 * Copyright 2009 David Hilvert <dhilvert@gmail.com>
4 * This file is part of libale.
6 * libale is free software: you can redistribute it and/or modify it under the
7 * terms of the GNU Affero General Public License as published by the Free
8 * Software Foundation, either version 3 of the License, or (at your option)
9 * any later version.
11 * libale is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
14 * more details.
16 * You should have received a copy of the GNU Affero General Public License
17 * along with libale. If not, see <http://www.gnu.org/licenses/>.
20 #warning ****
21 #warning **** OPENCL STUB FUNCTIONS COMPILED
22 #warning ****
24 #include <ale.h>
27 * OpenCL stubs.
29 * For more information, see:
31 * http://www.khronos.org/registry/cl/
32 * http://www.khronos.org/registry/cl/api/1.0/cl.h
33 * http://www.khronos.org/registry/cl/specs/opencl-1.0.29.pdf
36 cl_context clCreateContextFromType(cl_context_properties properties,
37 cl_device_type device_type,
38 void (*pfn_notify)(const char *errinfo,
39 const void *private_info, size_t cb,
40 const void *user_data),
41 void *user_data,
42 cl_int *errcode_ret) {
44 return ((cl_context) 0);
47 cl_int clRetainMemObject(cl_mem memobj) {
48 return 0;
51 cl_int clReleaseContext(cl_context context) {
52 return 0;
55 cl_int clReleaseMemObject(cl_mem memobj) {
56 return 0;
59 cl_int clRetainContext(cl_context context) {
60 return 0;