MagickCore  6.9.11-60
Convert, Edit, Or Compose Bitmap Images
opencl.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore OpenCL public methods.
17 */
18 #ifndef MAGICKCORE_OPENCL_H
19 #define MAGICKCORE_OPENCL_H
20 
21 
22 #if defined(__cplusplus) || defined(c_plusplus)
23 extern "C" {
24 #endif
25 
26 /* OpenCL program modules */
27 typedef enum {
29  MAGICK_OPENCL_NUM_PROGRAMS /* !!! This has to be the last entry !!! */
31 
32 typedef enum {
38 
39 /* Parameter type accepted by SetMagickOpenCLEnvParm and GetMagickOpenCLEnvParm */
40 typedef enum {
41  MAGICK_OPENCL_ENV_PARAM_DEVICE /* cl_device_id (from OpenCL) */
42  , MAGICK_OPENCL_ENV_PARAM_OPENCL_DISABLED /* MagickBooleanType */
45  /* if true, disable the kernel binary cache */
47  /* if true, rerun microbenchmark in auto device selection */
51 
52 typedef struct _MagickCLEnv* MagickCLEnv;
53 
56  ExceptionInfo*),
60  ExceptionInfo*);
61 
64 
65 #if defined(__cplusplus) || defined(c_plusplus)
66 }
67 #endif
68 
69 #endif
MagickBooleanType
Definition: magick-type.h:203
#define MagickExport
Definition: method-attribute.h:80
MagickOpenCLEnvParam
Definition: opencl.h:40
@ MAGICK_OPENCL_ENV_PARAM_OPENCL_INITIALIZED
Definition: opencl.h:43
@ MAGICK_OPENCL_ENV_PARAM_REGENERATE_PROFILE
Definition: opencl.h:46
@ MAGICK_OPENCL_ENV_PARAM_PLATFORM_VENDOR
Definition: opencl.h:48
@ MAGICK_OPENCL_ENV_PARAM_PROGRAM_CACHE_DISABLED
Definition: opencl.h:44
@ MAGICK_OPENCL_ENV_PARAM_OPENCL_DISABLED
Definition: opencl.h:42
@ MAGICK_OPENCL_ENV_PARAM_DEVICE
Definition: opencl.h:41
@ MAGICK_OPENCL_ENV_PARAM_DEVICE_NAME
Definition: opencl.h:49
MagickExport MagickBooleanType InitOpenCLEnv(MagickCLEnv, ExceptionInfo *)
struct _MagickCLEnv * MagickCLEnv
Definition: opencl.h:52
MagickExport MagickBooleanType SetMagickOpenCLEnvParam(MagickCLEnv, MagickOpenCLEnvParam, size_t, void *, ExceptionInfo *)
MagickExport MagickCLEnv GetDefaultOpenCLEnv()
Definition: opencl.c:3054
MagickExport MagickBooleanType InitImageMagickOpenCL(ImageMagickOpenCLMode, void *, void *, ExceptionInfo *)
ImageMagickOpenCLMode
Definition: opencl.h:32
@ MAGICK_OPENCL_DEVICE_SELECT_AUTO
Definition: opencl.h:34
@ MAGICK_OPENCL_DEVICE_SELECT_USER
Definition: opencl.h:35
@ MAGICK_OPENCL_OFF
Definition: opencl.h:33
@ MAGICK_OPENCL_DEVICE_SELECT_AUTO_CLEAR_CACHE
Definition: opencl.h:36
MagickOpenCLProgram
Definition: opencl.h:27
@ MAGICK_OPENCL_ACCELERATE
Definition: opencl.h:28
@ MAGICK_OPENCL_NUM_PROGRAMS
Definition: opencl.h:29
MagickExport MagickBooleanType GetMagickOpenCLEnvParam(MagickCLEnv, MagickOpenCLEnvParam, size_t, void *, ExceptionInfo *)
Definition: exception.h:103
Definition: opencl.c:3047