Rust-GPU / Rust-CUDA

Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.
Apache License 2.0
3.02k stars 115 forks source link

Fixes to Dockerfile #31

Closed CircArgs closed 2 years ago

CircArgs commented 2 years ago

Apologies for the minor PRs in succession. I realized there were some minor issues with the Dockerfile that are now fixed and running the add example successfully seems to confirm it is working properly.

Details: The primary issue was that building succeeded, but running failed to create a context. This was somehow related to ld not finding the shared objects despite being in LD_LIBRARY_PATH. I reverted to ldconfig and this fixed the issue.

Starting this PR as a draft to hear opinions on whether the Dockerfile should optionally include optix with a build argument. I have not investigated this much but I can look into it.

RDambrosio016 commented 2 years ago

The optix SDK needs an nvidia dev account so probably not, the headers can be downloaded from a link just fine but im pretty sure the sdk installer does other things too

CircArgs commented 2 years ago

The optix SDK needs an nvidia dev account so probably not, the headers can be downloaded from a link just fine but im pretty sure the sdk installer does other things too

I did notice it required a dev account. I wasn't sure if the install script they provide could just be bundled with this and be used to build in optix. That's cool though I think this Dockerfile is complete for now then