Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added this repo as a submodule #192

Open
FTamas77 opened this issue Dec 30, 2021 · 2 comments
Open

Added this repo as a submodule #192

FTamas77 opened this issue Dec 30, 2021 · 2 comments

Comments

@FTamas77
Copy link

FTamas77 commented Dec 30, 2021

I'm totaly new here. I coud add this repo into my repo as a submodule.
I also could build on Linux and Windows.

I've two thing I don't know and I don't find the right answer.

1.) In the past OpenCL 1.2 was only a header file. What is this package?

cmake path/to/opencl/app -DOpenCLHeaders_ROOT=/chosen/install/prefix

I added it in the main file and fails? Where should is put this? When the package is created? What kindof package?

Why a package helps me? I want to use for many things OpenCL?

2.) The package doesn't find:

cmake_minimum_required(VERSION 3.0)
cmake_policy(VERSION 3.0...3.18.4)
project(proj)
add_executable(app main.cpp)
find_package(OpenCLHeaders REQUIRED)
target_link_libraries(app PRIVATE OpenCL::Headers)

Is this repo create a package for easy usage and I just to add it to the target? I'm big fun of OpenCL and I want to understand it. :-)

Could you be so kind give an example?

Thanks,

@FTamas77
Copy link
Author

I've one problem: I've already use conan and I don't know how to add it. Furthermore I have to do it both on Linux and Windows. How can I pass to conaninfo file to my app?

@bashbaug
Copy link
Contributor

bashbaug commented Jan 4, 2022

Hello!

Here are two repos that use the OpenCL headers. Both currently use the OpenCL headers without needing the CMake package, though the "OpenCL SDK" will be upgraded shortly:

In short, you don't need to use the CMake package, though building and using the CMake package can arguably simplify some dependencies.

I don't use conan, but if you'd be interested in adding conan support for an OpenCL headers package we'd be happy to work with you to add support. Glad to hear you're an OpenCL fan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants