211 Commits

Author SHA1 Message Date
Ken Barker
072410552f Update version for crates.io. 2026-03-08 16:22:14 +00:00
Cyberite
e7ab3b15f5 Fix naming issue (#76) 2026-03-08 16:13:16 +00:00
Ken Barker
bff5608bdf Update version for crates.io. 0.12.2 2026-03-06 11:40:44 +00:00
Cyberite
db9cad3cbf Add tests for new wrap functionality (#75) 2026-03-06 11:24:16 +00:00
Cyberite
b05fb683f9 Expose methods to convert from cl3 types to opencl3 types (#74) 2026-03-05 17:50:48 +00:00
Ken Barker
27c55789c1 Update version for crates.io. 0.12.1 2025-09-22 10:52:44 +01:00
conduition
eaefd4f632 fix static linking by disabling default features in cl3 (#72)
By default, the `opencl3` crate activates the `dynamic` feature flag of the `cl3` crate, which overrides the `static` flag. This means that it's impossible to do static linking with `opencl3`.

This patch adds `default-features = true` to the `cl3` dep entry, which disables the `dynamic` flag unless the `opencl3` crate's `dynamic` flag is turned on.
2025-09-22 10:25:50 +01:00
Ken Barker
8630ca271d Fix clippy warning. 2025-08-26 18:29:50 +01:00
Ken Barker
9b33f5d2cd Add Drain lifetime to fix compiler warning. 2025-08-26 18:26:54 +01:00
Ken Barker
35a39312e6 Update version for crates.io. 0.12.0 2025-04-19 11:32:01 +01:00
Ken Barker
1ac8305687 Add new OpenCL extension definitions. 2025-04-19 11:29:27 +01:00
Ken Barker
6a623467c4 cargo fmt update 2025-02-21 11:26:17 +00:00
Ken Barker
c06655c04f Update for Rust edition 2024 2025-02-21 09:55:17 +00:00
Ken Barker
5d118044ad Update version for crates.io. 0.11.0 2025-02-19 19:31:39 +00:00
Ken Barker
7d01e0178f Update to use cl3 version 0.12.0 2025-02-19 19:24:40 +00:00
Ken Barker
3c32acae47 Fixes for new clippy lints. 2025-01-10 17:51:01 +00:00
Ken Barker
f87a29425a Fix cargo doc warnings. 0.10.0 2024-12-21 13:10:57 +00:00
Ken Barker
2c2e6e89ef Update version for crates.io. 2024-12-21 13:06:35 +00:00
Ken Barker
5c8e67bcef Declare set_len unsafe for issue #69 2024-12-15 13:34:30 +00:00
Ken Barker
96df90bfff Make dynamic linking default for crates.io. 2024-12-15 13:23:17 +00:00
Ken Barker
3410826c56 Enable OpenCL optional functions with dynamic feature. 2024-12-04 18:05:19 +00:00
Ken Barker
06c7e5e418 Enable OpenCL core functions with dynamic feature. 2024-12-03 06:58:06 +00:00
Ken Barker
4a04e4a25e Update opencl2_kernel_test.rs 2024-12-03 06:35:45 +00:00
Ken Barker
a167b9e19f Fix clippy warnings 2024-11-30 15:12:29 +00:00
Ken Barker
4bf4acaf70 Remove default features 2024-11-30 09:14:03 +00:00
Ken Barker
ef8149d6bd Fix clippy issues. 2024-11-26 21:00:21 +00:00
Ken Barker
be011a2e31 Changes for dynamic linking. 2024-11-26 20:37:05 +00:00
Ken Barker
39fc2cd1ef Fix unwrap_used clippy lints. 2024-03-31 13:31:58 +01:00
Ken Barker
cbb312f71a Fix clippy nursery lints. 2024-03-31 12:04:08 +01:00
Ken Barker
f8cb2289b0 Fix clippy features and change github workflow. 2024-03-31 10:35:19 +01:00
Ken Barker
1d7d74da2f Update version for issue #64 features 0.9.5 2023-12-22 13:26:52 +00:00
Ken Barker
9a5ca2302a Add new features for issue #64 2023-12-22 13:25:31 +00:00
Draghtnod
41844a2b85 Added example opencl2image.rs (#66)
* Added example opencl2image.rs

* Added enqueue_fill_image example

* Fix typo

* Fix copyright and some simplifications

---------

Co-authored-by: Tino Zottmann <Zottmann@MediaSeasons.com>
2023-11-26 12:07:48 +00:00
Ken Barker
945b7ce6f6 Update version for issue #64 0.9.4 2023-11-05 14:13:52 +00:00
Ken Barker
851f47889d Add new methods for issue #64 2023-11-05 14:09:32 +00:00
Ken Barker
2ccaa9f12f Fix compiler and clippy warnings. 2023-11-05 13:28:29 +00:00
Ken Barker
457ff5b39e Update version for issue #61 0.9.3 2023-05-11 19:28:25 +01:00
Ken Barker
fb519deee7 Merge pull request #60 from kballeda/pcibus_intel
Support querying PCIE information for Intel devices
2023-05-06 10:43:18 +01:00
kballeda
ac34369925 Support querying PCIE information for Intel devices 2023-05-05 22:40:25 +05:30
Ken Barker
4619128df9 Update version for crates.io 0.9.2 2022-12-30 13:58:33 +00:00
Ken Barker
0939b44092 Make Program methods unsafe for issue #58 2022-12-27 11:14:56 +00:00
Ken Barker
bd871b2d66 Update version for crates.io. 0.9.1 2022-09-20 19:37:09 +01:00
Ken Barker
32c2de3c9f Add cl_khr_command_buffer_mutable_dispatch feature for issue #55. 2022-09-20 19:32:22 +01:00
Ken Barker
94eac05192 Merge pull request #54 from vmx/unshadow-public-re-exports
Unshadow device re-exports
2022-09-20 19:21:03 +01:00
Volker Mische
7eb9196510 Unshadow device re-exports
In the `device` module, all public items from `cl3::device` are re-exported.
They even [show up as public in the documentation]. Nonetheless they aren't
actually public.

To reproduce this issue, try to import `opencl3::device::CL_UUID_SIZE_KHR`,
you will get an error like:

    error[E0603]: constant `CL_UUID_SIZE_KHR` is private
        --> src/device.rs:2209:30
         |
    2209 |             opencl3::device::CL_UUID_SIZE_KHR,
         |                              ^^^^^^^^^^^^^^^^ private constant
         |
    note: the constant `CL_UUID_SIZE_KHR` is defined here
        --> /home/vmx/src/pl/filecoin/upstream/opencl3/src/device.rs:45:23
         |
    45   |     CL_LUID_SIZE_KHR, CL_UUID_SIZE_KHR,
         |                       ^^^^^^^^^^^^^^^^

The private imports at
d004f1cf5f/src/device.rs (L18)
shadow the previous public re-exports
d004f1cf5f/src/device.rs (L15)

As most of the private imports are a subset of the public re-exports, we can
just import the missing ones, which in this case is only
`cl_device_feature_capabilities_intel`.

In order verify the subset, you can copy the list of [imports from `cl3::ext`]
and the [`cl3::device` re-exports from `opencl-sys`] into two fiels and run
` tr ',' '\n|awk '{$1=$1;print}'|sort` on each of them and finally diff the
results.

[show up as public in the documentation]: https://docs.rs/opencl3/0.9.0/opencl3/device/constant.CL_UUID_SIZE_KHR.html
[imports from `cl3::ext`]: d004f1cf5f/src/device.rs (L19-L45)
[`cl3::device` re-exports from `opencl-sys`]: 9c97521ab2/src/device.rs (L21-L106)
2022-09-19 15:15:35 +02:00
Ken Barker
d004f1cf5f Update documentation. 0.9.0 2022-09-10 11:04:11 +01:00
Ken Barker
83aca97c0d Merge pull request #53 from benblack769/main
added sync for all threadsafe opencl objects
2022-09-10 10:52:01 +01:00
Ben Black
a081926101 added sync for all threadsafe opencl objects 2022-09-10 10:49:59 +01:00
Ken Barker
2c60b3d449 Update version and use cl3 from crates.io 2022-09-10 10:42:58 +01:00
Ken Barker
caa5c82b64 Add Safety comments and clippy::missing_safety_doc for issue #52 2022-09-04 10:21:51 +01:00