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

openCL Ubuntu? #3

Open
Thanh-Binh opened this issue Sep 29, 2017 · 5 comments
Open

openCL Ubuntu? #3

Thanh-Binh opened this issue Sep 29, 2017 · 5 comments

Comments

@Thanh-Binh
Copy link

Do you know which openCL SW will be installed in Ubuntu for working with your SW?

@ddigiorg
Copy link
Owner

Hi, you need 3 things: headers, libraries, and drivers. I don't use Ubuntu, but I believe the headers and libraries are in the "ocl-icd-opencl-dev" package. The right drivers depend on whether you are using a Nvidia, AMD, or Intel device.

@Thanh-Binh
Copy link
Author

thanks

@Thanh-Binh
Copy link
Author

In my laptop I have an internal HP graphic and a NVIDIA Grafik Card. OgmaNeo runs with NVIDIA Card but I really do not know why SC select internal card with OpenCL.
Do you know how to change it to NVIDIA Card?
Thanks

@ddigiorg
Copy link
Owner

It might have something to do with how I select compute devices, which is definitely not handled as well as Ogma(who are much more competent than me, haha). I just select the first on in a list of all devices. Take a look "compute-system.cpp" on at line 49:

_device = allDevices.front();

Perhaps you need to change it to:

_device = allDevices[1];

@Thanh-Binh
Copy link
Author

It is not exact but helpfull.
In "computer-system.cpp" at the line
https://github.com/ddigiorg/simple-cortex/blob/master/source/compute/compute-system.cpp#L23
we have to change it into

_platform = allPlatforms.back();

It will work correctly....

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