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

Windows support #53

Open
kazimuth opened this issue Dec 27, 2014 · 2 comments
Open

Windows support #53

kazimuth opened this issue Dec 27, 2014 · 2 comments

Comments

@kazimuth
Copy link

(Opening a bunch of issues today!)

This would require finding an OpenCL.lib from one of the various SDKs and linking to it. (Which doesn't currently happen, I believe.) That could be done with a build.rs script.

@oakwhiz
Copy link

oakwhiz commented Nov 18, 2015

On Windows it seems to work if you find OpenCL.dll from the AMD APP SDK and copy it into a folder named lib in your project directory. Then invoke cargo as follows:

cargo rustc --example demo --release -- -l OpenCL -L lib

The EXE file that is compiled seems to work on its own when deployed to target machines (OpenCL.dll is no longer required)

@pravic
Copy link

pravic commented May 15, 2016

Compilation under Windows requires #[link(name="opencl")] extern "system" too as well.

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

3 participants