Skip to content

Commit

Permalink
Consolidated types and OpenGL interop
Browse files Browse the repository at this point in the history
Added all types into a shared crate called cuda-types-sys. Both
cuda-driver-sys and cuda-runtime-sys depends on this crate and
blacklists all types themselves.

Added cuda-gl-interop-sys that contains all GL functions from
cuda_gl_interop.h. It depends on cuda-types-sys as well as the external
gl crate for OpenGL types like GLuint.
  • Loading branch information
Raniz committed Sep 24, 2020
1 parent 3a97378 commit 90a551a
Show file tree
Hide file tree
Showing 20 changed files with 10,909 additions and 10,070 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ members = [
"cublas-sys",
"cuda-config",
"cuda-driver-sys",
"cuda-gl-interop-sys",
"cuda-runtime-sys",
"cuda-types-sys",
]
8 changes: 7 additions & 1 deletion cuda-driver-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cuda-driver-sys"
version = "0.3.0"
version = "0.4.0-alpha.1"
authors = ["Toshiki Teramura <[email protected]>"]
edition = "2018"

Expand All @@ -15,6 +15,12 @@ license = "MIT/Apache-2.0"
readme = "../README.md"
categories = []

[build-dependencies.bindgen]
version = "~0.55"

[build-dependencies.cuda-config]
path = "../cuda-config"
version = "0.1.0"

[dependencies.cuda-types-sys]
path = "../cuda-types-sys"
7 changes: 1 addition & 6 deletions cuda-driver-sys/bindgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
set -exu

bindgen \
--whitelist-type="^CU.*" \
--whitelist-type="^cuuint(32|64)_t" \
--whitelist-type="^cudaError_enum" \
--whitelist-type="^cu.*Complex$" \
--whitelist-type="^cuda.*" \
--whitelist-type="^libraryPropertyType.*" \
--blacklist-type="^.*" \
--whitelist-var="^CU.*" \
--whitelist-function="^cu.*" \
--default-enum-style=rust \
Expand Down
Loading

0 comments on commit 90a551a

Please sign in to comment.