Rust-GPU / Rust-CUDA

Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.
Apache License 2.0
2.97k stars 112 forks source link

OSX support (and some locking of versions to make rust-cuda compile) #121

Open gl-yziquel opened 5 months ago

gl-yziquel commented 5 months ago

Hi.

I have fixed some versions to enable rust-cuda to build with the toolchain given in the repo. Here on the develop branch:

https://github.com/gl-yziquel/Rust-CUDA

(Anyone having trouble compiling may find this useful.)

However, I have a linux box with no GPU and an osx box with GPU. So I've tried compiling on osx.

I get:

error[E0432]: unresolved import `find_cuda_helper::find_libnvvm_bin_dir`

You may indeed find this function defined for linux, here:

https://github.com/Rust-GPU/Rust-CUDA/blob/master/crates/find_cuda_helper/src/lib.rs#L192

But not for OSX.

gl-yziquel commented 5 months ago

Uh.... seems osx can't deal with nvidia cuda toolkit.