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

Rust: Compilation of other backends #1650

Open
eliasboegel opened this issue Aug 26, 2024 · 2 comments
Open

Rust: Compilation of other backends #1650

eliasboegel opened this issue Aug 26, 2024 · 2 comments
Labels

Comments

@eliasboegel
Copy link

Hi,

I'm currently trying out a basic Rust example. libCEED was added as a dependency as per the docs:

[dependencies]
libceed = "0.12.0"

I am using only QFrunctions from the gallery. The standard /cpu/self/ref/*, /cpu/self/opt/* backends run fine, however any other backend gives the error:

Backend not currently compiled: <backend>
Consult the installation instructions to compile this backend

I see that the (C) build section in the docs does state that some additional flags must be specified to compile with support for a given backend. Is there currently a way to let the Rust bindings compile libceed with additional flags/backends?

@jrwrigh jrwrigh added the Rust label Aug 26, 2024
@jedbrown
Copy link
Member

Hi, thanks for the question. We haven't added cuda/hip/sycl features to the libceed-sys package, but you can build libceed.so any way you like and then use the system feature to use that pre-built library instead of having libceed-sys/build.rs build its own. We'd be happy to accept a pull request that added such features, though they may be somewhat brittle because one needs build.rs to find the toolchain (CUDA) that the user intends.

@eliasboegel
Copy link
Author

Thanks!

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

No branches or pull requests

5 participants
@jedbrown @jrwrigh @eliasboegel and others