-
Notifications
You must be signed in to change notification settings - Fork 180
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
Trouble loading CUDA support under dotnet-interactive (C#) #1146
Comments
I've tried to reproduce this problem with WSL, but I'm running into a very different problem, which doesn't even get as far as calling |
It's worth trying -- and this is a total shot in the dark -- to delete everything |
Yeah that didn't seem to have any impact. :\ Here is a directory listing of my .nuget directory on the Jupyter server:
Here is the error message:
|
A co-worker (@wss-rbrennan) of mine my have shed some light on this issue: "The problem has more to do with nuget itself. TorchSharp used a clever way of putting together the libtorch-cuda-12.1-linux-x64 package because nuget has a max package size of 250mb. The work around combines multiple packages at build time in a project, so your project works, but interactive doesn't build the same way, so the reference fails." Not sure if this is a problem per se, or just something to account for when using TorchSharp from within interactive mode or whatever? |
Thank you for the follow-up, and that's sort of what I was seeing, too. But... it used to work! The stitching together only happens the first time, i.e. when a build finds that the stitched package is not available in the NuGet cache locally. |
You think there is some sort of snippet that could be run to ensure proper
stitching?
On November 29, 2023, Ahmed Shirin ***@***.***> wrote:
Thank you for the follow-up, and that's sort of what I was seeing, too.
But... it used to work!
The stitching together only happens the first time, i.e. when a build finds
that the stitched package is not available in the NuGet cache locally.
—
Reply to this email directly, view it on GitHub
<#1146 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA5ESNE2ITABRV6RJBRQVLYG5YMVAVCNFSM6AAAAAA7LRQDI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZSGQYTMNZRGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
And it works on Windows, which has the same package stitching problem. |
All I can think of is a |
Or, maybe... clear the ~/.nuget/packages cache, as well as anything under ~/.packagemanagement/nuget. Then, build your console program again, then try the .ipynb file again. Another shot in the dark... |
Okay, so after a bunch of finagling, I finally get to where you are -- no blow-up when loading the backend, but |
Hi there!
This may be related to #345, so please bear with me.
I'm trying to use TorchSharp with dotnet-interactive with Jupyter notebook and I'm encountering the following behavior:
Now, I am running my setup through Docker, so I wondered if perhaps I had an issue there, so I made a quick console application to test "connectivity" with my GPU.
I'm kind of struggling to get my arms around the issue, what are some next steps I could take?
Cheers!
The text was updated successfully, but these errors were encountered: