Skip to content
  • Robert Maynard's avatar
    CUDA: improve regex for CUDA Toolkit root from nvcc verbose output · 5e931c5a
    Robert Maynard authored and Brad King's avatar Brad King committed
    The original regular expression was greedy and would match any
    environment variable ending with `TOP` (like `DESKTOP`). This is an
    issue on windows where `nvcc -v` would output all environment variables
    before the compiler's verbose output.
    
    To resolve this issue we use a tighter match algorithm that looks
    for `#$ TOP=` instead of `TOP=`.
    
    Fixes: #22158
    5e931c5a