tig-foundation / tig-monorepo

TIG is the first coordination protocol designed specifically for algorithmic innovation
https://tig.foundation
21 stars 35 forks source link

Support for CUDA version 12.6 #9

Closed carlos-verdes closed 1 week ago

carlos-verdes commented 2 months ago

I installed CUDA on WSL2 Ubuntu and when I try to run my benchmark with CUDA flag enabled I get next error:

 Unsupported cuda toolkit version: `12.6`. Please raise a github issue.

Full error log:

cargo build -p tig-benchmarker --release --no-default-features --features "standalone vehicle_routing_clarke_wright knapsack_knapmaxxing satisfiability_inbound  cuda"
   Compiling cudarc v0.11.8
error: failed to run custom build command for `cudarc v0.11.8`

Caused by:
  process didn't exit successfully: `/home/xxx/git/tig-monorepo/target/release/build/cudarc-66cd4291bda974ea/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-env-changed=CUDA_ROOT
  cargo:rerun-if-env-changed=CUDA_PATH
  cargo:rerun-if-env-changed=CUDA_TOOLKIT_ROOT_DIR

  --- stderr
  thread 'main' panicked at /home/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cudarc-0.11.8/build.rs:82:14:
  Unsupported cuda toolkit version: `12.6`. Please raise a github issue.
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make: *** [Makefile:8: prepare] Error 101
carlos-verdes commented 2 months ago

I see there is a new version of cudarc, I'll submit a PR to update it:

image

carlos-verdes commented 2 months ago

I see the library has an open issue with CUDA 12.6

https://github.com/coreylowman/cudarc/issues/280

Maybe better wait until that issue is fixed first

There is an open PR for the fix also: https://github.com/coreylowman/cudarc/pull/286

carlos-verdes commented 2 months ago

I was able to make a benchmark build using CUDARC v0.12 and CUDA runtime 12.5 (still we need to wait for a fix in CUDARC library to support version 12.6)

paulstansifer commented 2 months ago

The fix is now merged: https://github.com/coreylowman/cudarc/pull/286!