warp icon indicating copy to clipboard operation
warp copied to clipboard

[BUG] Simplify CUDA errors when CUDA driver is not found

Open nvlukasz opened this issue 8 months ago • 0 comments

Bug Description

There are some confusing and superfluous error messages if the CUDA driver is not found at runtime.

Warp CUDA error: Could not open libcuda.so.
Warp CUDA error: Function cuDriverGetVersion_f: a suitable driver entry point was not found
Warp CUDA error 36 (in function cuda_driver_version, /home/runner/work/warp/warp/warp/native/warp.cu:1721)
Warp 1.7.0 initialized:
   CUDA Toolkit 12.8, Driver 0.0 (insufficient CUDA driver version!)
   Devices:
     "cpu"      : "x86_64"
   Kernel cache:
     /home/runner/.cache/warp/1.7.0
Warp UserWarning: 
   Insufficient CUDA driver version.
   The minimum required CUDA driver version is 12.0, but the installed CUDA driver version is 0.0.
   Visit https://github.com/NVIDIA/warp/blob/main/README.md#installing for guidance.

We should be able to simplify the output and make it clearer.

System Information

No response

nvlukasz avatar Apr 22 '25 12:04 nvlukasz