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

LDC support dcompute codegen options? #252

Open
dlangBugzillaToGithub opened this issue May 31, 2019 · 0 comments
Open

LDC support dcompute codegen options? #252

dlangBugzillaToGithub opened this issue May 31, 2019 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link
Collaborator

turkeyman reported this on 2019-05-31T20:23:00Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=19929

Description

It would be really great to get the DCompute codegen options into the LDC property page. I believe one necessary option is -mdcompute-targets=, and I'm not sure if there are other related build options that should also be exposed (there's not great resource available on using DCompute).

Ideally, it would be really good to see DCompute as a 1st-class feature when using LDC with VisualD, I think to execute that, there might also be some detail to make sure the compute object files find their way to the linker correctly.
Users specify a set of compute targets, and I believe each one emits a separate object file... they should all be linked.
Eg: -mdcompute-targets=ocl-210,cuda-350 would emit the normal compiled object, and in addition, OpenCL2.1 and CUDA3.5 objects.

I've asked Nick about an option to embed the kernels into the main object file with appropriately mangled symbol names, but I don't think that exists yet.

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