Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Conversation

@termoshtt
Copy link
Member

Split from #4

This is split for generating static bindings.

Usage

cuda-bindgen --all output/directory/path cuda/installed/path

will generate cuda.rs, cuda_runtime.rs, and so on at output/directory/path based on headers in cuda/installed/path/include.

cc: @LutzCle

@termoshtt termoshtt self-assigned this Jan 9, 2019
@termoshtt termoshtt requested a review from bheisler January 9, 2019 14:42
@LutzCle LutzCle mentioned this pull request Jan 9, 2019
@LutzCle
Copy link
Contributor

LutzCle commented Jan 9, 2019

I get a StructOpt compile error. See LutzCle@fec6e3b for details and the fix.

@LutzCle
Copy link
Contributor

LutzCle commented Jan 9, 2019

When running cuda-bindgen per the instructions in the parent, I get the following error messages:

[2019-01-09T15:42:59Z ERROR bindgen::ir::context] unused option: --whitelist-function ^CU.*
[2019-01-09T15:42:59Z ERROR bindgen::ir::context] unused option: --whitelist-type ^cudaMem.*
[2019-01-09T15:43:00Z ERROR bindgen::ir::context] unused option: --whitelist-var ^cublas.*

Removing the affected bindgen commands seems to solve the problem. The diff of before and after the fix is empty (i.e., no changes for the generated bindings) on CUDA 10.0.130 on ArchLinux. See the fix at LutzCle@22dc7ef

Could someone verify this, preferably on another OS and CUDA version?

@termoshtt
Copy link
Member Author

@LutzCle Thanks review!

I get a StructOpt compile error. See LutzCle/cuda-sys@fec6e3b for details and the fix.

I guess this is due to https://github.com/rust-lang/rust/pull/551480 and fixed in latest stable release.

@termoshtt termoshtt merged commit ce1f83a into master Jan 24, 2019
@termoshtt termoshtt deleted the cuda-bindgen branch January 24, 2019 20:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants