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

remove code duplication/improve build system #107

Open
jolan opened this issue Sep 22, 2016 · 2 comments
Open

remove code duplication/improve build system #107

jolan opened this issue Sep 22, 2016 · 2 comments
Milestone

Comments

@jolan
Copy link

jolan commented Sep 22, 2016

A lot of code is duplicated between cladldevice.go/cldevice.go/cudevice.go to work around having hard run-time dependencies on libraries. Should be able to reduce this somehow.

@jolan jolan added this to the future milestone Sep 22, 2016
@jolan
Copy link
Author

jolan commented Sep 23, 2016

Might be able to eventually use the plugin support that landed in go tip:

https://tip.golang.org/pkg/plugin/

@jolan
Copy link
Author

jolan commented Jan 26, 2018

The Go plugin stuff mentioned above is now released but doesn't work with Cgo so that's not an option.

Probably the best path forward would be to just support both OpenCL/CUDA in the same binary and statically link the CUDA runtime library. The OpenCL runtime is dynamically loaded anyway so it just needs a stub for linking essentially.

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

No branches or pull requests

1 participant