How runtime selection and priority works
mainWhisper.net supports multiple runtimes in a single project. The NativeLibraryLoader automatically selects the best available runtime based on the platform and hardware.
By default, the priority order is:
Whisper.net.Runtime.Cuda(CUDA 13)Whisper.net.Runtime.Cuda12(CUDA 12)Whisper.net.Runtime.Vulkan(Windows x64)Whisper.net.Runtime.CoreML(Apple)Whisper.net.Runtime.OpenVino(Intel)Whisper.net.Runtime(CPU)Whisper.net.Runtime.NoAvx(CPU without AVX)
The loader probes CUDA runtimes and validates drivers via cudaRuntimeGetVersion to allow transparent fallback from CUDA 13 to CUDA 12.