fff-rs / juice

The Hacker's Machine Learning Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Setting up preconditions with:
  2. install cuda and cudnn and paste every include lib in /usr/include
  3. 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:

  • wait for #137 #139 to land which is the next step for a another dot release (should only be a few days max)
  • use the crates-io releases with cuda 10.x
  • use the master branch with cuda 11.2

Duplicate of #114