Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile without cuda #6

Open
oars opened this issue Mar 7, 2016 · 3 comments
Open

Unable to compile without cuda #6

oars opened this issue Mar 7, 2016 · 3 comments

Comments

@oars
Copy link

oars commented Mar 7, 2016

In the toml I set:

[dependencies]
leaf = { version = "0.2.0", default-features = false }

[features]
default = ["native"
native  = ["leaf/native"]

However the compilation is failing.

   Compiling collenchyma-nn v0.3.4
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:19:5: 28:6 error: non-exhaustive patterns: `&mut OpenCL(_)` not covered [E0004]
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:19     match mem {
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:20         &mut MemoryType::Native(ref mut mem) => {
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:21             let mut mem_buffer = mem.as_mut_slice::<T::Item>();
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:22             for (index, datum) in data.enumerate() {
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:23                 mem_buffer[index] = datum;
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:24             }
                                                                                                                    ...
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:19:5: 28:6 help: run `rustc --explain E0004` to see a detailed explanation
error: aborting due to previous error
Could not compile `collenchyma-nn`.

Is this not supported?

@hobofan
Copy link
Member

hobofan commented Mar 7, 2016

  1. The examples currently only work with CUDA, I guess that should be documented in the README. 😅
  2. You would also have to apply the feature flags to collenchyma and collenchyma-nn

@oars
Copy link
Author

oars commented Mar 7, 2016

Tried the example on a machine with a graphics card now. I think there is still value in getting a simple example working without CUDA to make it accessible to just play around with the library.

@cmyr
Copy link

cmyr commented Mar 9, 2016

appreciate this isn't a priority, but fwiw I tend to do all my prototyping in a cuda-less environment, and then shift builds off to remote hardware for actual execution, so my workflow would require this at some point. :) Project looks neat though, happy to have had the excuse to install rust. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants