Rust-GPU/rust-cuda

find_cuda_helper assumes `lib64` path, but can also be `lib`

Closed this issue · 2 comments

Follow up for #92, just tested this again on NixOS.

The base path is now found when adding cudaPackages.cudatoolkit to the flake's build dependencies, but it then fails because find_cuda_helper's build.rs assumes the CUDA lib path is called lib64, while on Nix the folder inside cudatoolkit is just lib.

I think this should be okay to close? At least I see some pretty extensive checking here: https://github.com/Rust-GPU/Rust-CUDA/blob/afb147ed51fbb14b758e10a0a24dbc2311a52b82/crates/cust_raw/build/cuda_sdk.rs#L163-L195

I think so.