Skip to content

cuda: add support for thor - #11999

Closed
dhiltgen wants to merge 1 commit into
ollama:mainfrom
dhiltgen:thor_2nd
Closed

cuda: add support for thor#11999
dhiltgen wants to merge 1 commit into
ollama:mainfrom
dhiltgen:thor_2nd

Conversation

@dhiltgen

Copy link
Copy Markdown
Collaborator

I'm exploring a few different options on how we can add Jetson AGX Thor support. This seems like it is probably the lowest risk change.

AGX Thor is CC 11.0, which requires CUDA v13.
Apparently arm64 SBSA CUDA support started at CC 8.0, so the 7.x and older arm CC targets we had been shipping were never used.

Eventually we'll need to support v13 for other new GPUs as they come out, so I'm also exploring adding back the dual CUDA stack support and trying v11 + v13 with "virtual" targets and leveraging JIT to keep the footprint reasonable, but I don't have that working yet on Windows.

@dhiltgen

dhiltgen commented Aug 21, 2025

Copy link
Copy Markdown
Collaborator Author

AWS g5g T4G arm64 system uses CC 7.5, so I need to add that into the CC list to avoid regressions.

AGX Thor is CC 11.0, which requires CUDA v13.  Apparently arm64 SBSA CUDA
support started at CC 7.5, so older arm CC targets we had been shipping were
never used.
@dhiltgen

dhiltgen commented Aug 21, 2025

Copy link
Copy Markdown
Collaborator Author

It looks like v13 only works on driver 580 and up, so this change will wind up breaking systems out there running slightly older drivers. I don't think it's safe to merge, and we likely need some variation on #12000 to avoid breakage.

On the g5g instance with a 535 driver this fails to use the GPU with:

ggml_cuda_init: failed to initialize CUDA: CUDA driver version is insufficient for CUDA runtime version

@dhiltgen
dhiltgen marked this pull request as draft August 21, 2025 21:07
@johnnynunez

Copy link
Copy Markdown

You can use our wheels at this moment: https://pypi.jetson-ai-lab.io/sbsa/cu130
Pytorch will distribute wheels soon

@johnnynunez

Copy link
Copy Markdown

@dhiltgen how is thig going? do you need help?

@mcr-ksh

mcr-ksh commented Sep 14, 2025

Copy link
Copy Markdown

log_err.txt

https://forums.developer.nvidia.com/t/thor-ollama-7754-cuda-error-an-internal-operation-failed/343797/5

I do had the same error when using ollama. I was able to get it running using the instructions form the link.

@dhiltgen

Copy link
Copy Markdown
Collaborator Author

v13 support has been added through #12000

@dhiltgen dhiltgen closed this Sep 17, 2025
@dhiltgen
dhiltgen deleted the thor_2nd branch September 17, 2025 17:47
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.

3 participants