Skip to content

Commit 7179f42

Browse files
authored
Set minimal OpenCL version to 2.1 (#704)
1 parent 8ce4484 commit 7179f42

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/opencl/API_description.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# API description
22

3+
The minimum OpenCL version supported by this library is 2.1.
4+
35
## Namespaces
46
**penguinV**
57
- ***ImageOpenCL*** - a 8-bit image with default number of colors as 1 (gray-scale image). If the the number of color channels in this description is not implicitly specified then it is a 1 (gray-scale image).

src/opencl/image_buffer_opencl.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/***************************************************************************
22
* penguinV: https://github.com/ihhub/penguinV *
3-
* Copyright (C) 2017 - 2022 *
3+
* Copyright (C) 2017 - 2024 *
44
* *
55
* This program is free software; you can redistribute it and/or modify *
66
* it under the terms of the GNU General Public License as published by *
@@ -20,6 +20,8 @@
2020

2121
#pragma once
2222

23+
#define CL_TARGET_OPENCL_VERSION 210
24+
2325
#if defined( __APPLE__ ) || defined( __MACOSX )
2426
#include <OpenCL/cl.h>
2527
#else

0 commit comments

Comments
 (0)