onnxruntime/tools
Nikolai Svakhin 7b3fff650a
Updated build script for CUDA case (#20987)
### Description

In CUDA case, use the cuda_home variable to set CMAKE's CUDA compiler to
a correct version of NVCC

Otherwise, an NVCC from a current PATH would be picked up, which could
be from a different version of CUDA.


### Motivation and Context

I had a case when I had main CUDA installed, and it was a version 11.8.

I wanted to build against 12.5, so I downloaded and unpacked it into a
separate directory and passed it as a `--cuda-home` parameter, however
the ONNX builder was still picking the NVCC compiler from 11.8.

This would fix the issue
https://github.com/microsoft/onnxruntime/issues/20928


cc @gedoensmax
2024-06-17 14:41:43 -07:00
..
android_custom_build Remove deprecated "mobile" packages (#20941) 2024-06-07 16:20:32 -05:00
ci_build Updated build script for CUDA case (#20987) 2024-06-17 14:41:43 -07:00
doc Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
nuget Qnn nuget update (#20527) 2024-04-30 22:12:53 -07:00
perf_view
python Update Android SDK tools path lookup to be more strongly anchored to the provided root. (#21046) 2024-06-17 09:24:43 +10:00
scripts