Skip to content

Commit

Permalink
Set minimal OpenCL version to 2.1 (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihhub authored Mar 17, 2024
1 parent 8ce4484 commit 7179f42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/opencl/API_description.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# API description

The minimum OpenCL version supported by this library is 2.1.

## Namespaces
**penguinV**
- ***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).
Expand Down
4 changes: 3 additions & 1 deletion src/opencl/image_buffer_opencl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* penguinV: https://github.com/ihhub/penguinV *
* Copyright (C) 2017 - 2022 *
* Copyright (C) 2017 - 2024 *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
Expand All @@ -20,6 +20,8 @@

#pragma once

#define CL_TARGET_OPENCL_VERSION 210

#if defined( __APPLE__ ) || defined( __MACOSX )
#include <OpenCL/cl.h>
#else
Expand Down

0 comments on commit 7179f42

Please sign in to comment.