error[E0599] no associated item named 'CUDNN_RNN_PADDED_IO_DISABLED'
HeroAAX opened this issue · comments
when building the project it crashes while compiling coaster-nn (b0.4.2)
output:
error[E0599]: no associated item named `CUDNN_RNN_PADDED_IO_ENABLED` found for type `u32` in the current scope
--> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/coaster-nn-0.4.2/src/frameworks/cuda/mod.rs:764:66
|
764 | RnnPaddingMode::Enabled => Ok(cudnnRNNPaddingMode_t::CUDNN_RNN_PADDED_IO_ENABLED),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated item not found in `u32`
error[E0599]: no associated item named `CUDNN_RNN_PADDED_IO_DISABLED` found for type `u32` in the current scope
--> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/coaster-nn-0.4.2/src/frameworks/cuda/mod.rs:765:67
|
765 | RnnPaddingMode::Disabled => Ok(cudnnRNNPaddingMode_t::CUDNN_RNN_PADDED_IO_DISABLED)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated item not found in `u32`
error[E0599]: no associated item named `CUDNN_RNN_PADDED_IO_ENABLED` found for type `u32` in the current scope
--> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/coaster-nn-0.4.2/src/frameworks/cuda/mod.rs:771:36
|
771 | cudnnRNNPaddingMode_t::CUDNN_RNN_PADDED_IO_ENABLED => RnnPaddingMode::Enabled,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated item not found in `u32`
error[E0599]: no associated item named `CUDNN_RNN_PADDED_IO_DISABLED` found for type `u32` in the current scope
--> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/coaster-nn-0.4.2/src/frameworks/cuda/mod.rs:772:36
|
772 | cudnnRNNPaddingMode_t::CUDNN_RNN_PADDED_IO_DISABLED => RnnPaddingMode::Disabled,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated item not found in `u32`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0599`.
error: could not compile `coaster-nn`
To Reproduce
Steps to reproduce the behaviour:
- Setting up preconditions with:
- install cuda and cudnn and paste every include lib in /usr/include
- Run
cargo run debug --verbose
Expected behavior
build and run of a simple project
The currently released versions on crates-io use cuda 10.x
where the current master
branch only works with cuda 11.2
due to a enum to int + const conversion in the C library beteween cuda 11.1 /
11.0` which is technically a breaking change.
Solutions:
Duplicate of #114