Compiling TensorSharp with Visual Studio 2026 #130
vvdb-architecture
started this conversation in
General
Replies: 5 comments
|
Thanks for the feedback. I will investigate it. |
0 replies
|
I feeel like an idiot but I still can't compile TensorSharp's GGML files, even with -no-cuda. I get this (abbreviated to show only the compilation errors): The cuda builds fail as well, but I figure why bother if I can't get the -no-cuda stuff to compile anyway. Any help would be appreciated. |
0 replies
|
No worries. Let me take a look and get back to you. |
0 replies
|
@vvdb-architecture I made a fix #170 for it and hopefully it willbe helpful. |
0 replies
|
I pulled your latest version and tried it: it seems to compile OK. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to compile the latest version of TensorSharp (forking the repository, loading the solution TensorSharp.slnx and building it).
I already found a first issue for a PR: the
Magick.NET-Q8-AnyCPUmust be updated to at least version14.16.0since the existing one has a security vulnerability. I know it's silly and trivial, but a guy has to start somewhere.Alas, not much success so far.
Two things I struggle with:
Thing 1
I have all the prerequisites:
curlis part of my system. It turns out thatcmakeandgitare also installed as part of Visual Studio 2026, and you just need the paths:C:\Program Files\Microsoft Visual Studio\18\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\binforgitversion 2.54.0.2C:\Program Files\Microsoft Visual Studio\18\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\binforcmakeversion 4.3.1.0.I've also installed the NVidia Toolkit 12.6, because version 13.3 wasn't working correctly. With the NVidia Toolkit 13.3, I had:
Try as I might, adding the
CUDACXXenvironment variable to point toC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.3\bin\nvcc.exewas not being picked up. So I just uninstalled 13.3 and installed 12.6, even though by doing that I lose Visual Studio 2026 integration.But now I get the following:
It seems that I need to add the
-allow-unsupported-compilerflag if I want to keep using the NVidia toolkit 12.6.I switched back to the 13.3 version (since it has Visual Studio 2026 integration and it seems to be a requirement), but I don't know how to make this version work without changing the provided TensorSharp files.
I'll try to shamelessly copy the
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.3/bin/to theC:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/bin/directory and see what happens when I get a chance.Thing 2
On a slightly related matter, I notice that compilation creates files in several directories which become part of the changes because they are not explicitly excluded:
.vsdirectoryTensorSharp.Backends.Cuda.native\ptxdirectoryI also notice that on Visual Studio 2026, there is a
launchSettings.jsonfile created in theTensorSharp.Server\Propertiesdirectory.I don't want these files to be committed to the repository, but in order to do that, I must explicitly add them to
.gitignore, but doing so also changes the content of the existing.gitignore.All reactions