Conversation
- First we need the ONNX runtime with support for GPU. - And ensure that all ONNX runtime library are copied. Closes #20517
|
@andriiryzhkov : Can you review/comment? On my side I have been able to activate the GPU for ONNX but it is the same speed as CPU and fails anyway for the large SegNext model (I don't have much memory - 4Gb - on my GPU). Using ONNX Cuda requires also many other OS libs:
|
|
Works for me: #20517 (comment) |
|
@TurboGit: your change makes sense. I see that major Linux distros does not have packages for ONNX Runtime with GPU acceleration. The reasonable fallback in this situation is to use pre-built package from GitHub as you suggested. Or rely on user to build ONNX Runtime with GPU acceleration themself. Unfortunately, I don't have NVIDIA GPU to test it myself. So, @KarlMagnusLarsson and @TurboGit I would need your help here. |
|
Runtime dependencies we would need documenting. The CUDA EP requires the user to install:
On Ubuntu: Some licensing notes (not blockers, but worth being aware of): The ORT libraries we ship ( The cuDNN SLA prohibits use "in any manner that would cause it to become subject to an open source software license." This is a theoretical tension with GPLv3, since under a strict reading, dynamic linking creates a combined work. However:
The practical community consensus supports this approach. Worth adding a note in the docs stating that GPU acceleration requires user-installed proprietary NVIDIA libraries not covered by darktable's GPL grant. |
|
Sure the cuDNN is something to discuss. Good to see DigiKam already distributing it.
In this case though it is up to the user to install it. I would lean toward the same for cudnn for now. Let people wanting to have ONNX with CUDA install it by themselves. |
|
@andriiryzhkov : See #20532. |
Closes #20517