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

Fixes to Dockerfile #31

Merged
merged 1 commit into from Dec 24, 2021
Merged

Fixes to Dockerfile #31

merged 1 commit into from Dec 24, 2021

Conversation

CircArgs
Copy link
Contributor

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
Copy link
Member

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

@@ -90,7 +92,7 @@ Now we can finally start writing an actual GPU kernel.
<details>
<summary>Expand this section if you are not familiar with how GPU-side CUDA works</summary>

Firstly, we must explain a couple of things about GPU kernels, specifically, how they are executed. GPU Kernels (functions) are the entry point for executing anything on the GPU, they are the functions which will be executed from the CPU. GPU kernels do not return anything, they write their data to buffers passed into them.
Firstly, we must explain a couple of things about GPU kernels, specifically, how they are executed. GPU Kernels (functions) are the entry oint for executing anything on the GPU, they are the functions which will be executed from the CPU. GPU kernels do not return anything, they write their data to buffers passed into them.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops must have deleted that somehow. Thanks for pointing it out. Should be fixed now

for some reason using `LD_LIBRARY_PATH` was causing problems with cuda finding the device. Reverting to ldconfig fixes the issue

add more docker info including debugging notes

fix missing `p` in entrypoint
@CircArgs
Copy link
Contributor Author

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

@CircArgs CircArgs marked this pull request as ready for review December 24, 2021 15:41
@RDambrosio016 RDambrosio016 merged commit ce66c03 into Rust-GPU:master Dec 24, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants