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

Commit 90a551a

Browse files
author
Raniz
committed
Consolidated types and OpenGL interop
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.
1 parent 3a97378 commit 90a551a

File tree

20 files changed

+10909
-10070
lines changed

20 files changed

+10909
-10070
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ members = [
33
"cublas-sys",
44
"cuda-config",
55
"cuda-driver-sys",
6+
"cuda-gl-interop-sys",
67
"cuda-runtime-sys",
8+
"cuda-types-sys",
79
]

cuda-driver-sys/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cuda-driver-sys"
3-
version = "0.3.0"
3+
version = "0.4.0-alpha.1"
44
authors = ["Toshiki Teramura <[email protected]>"]
55
edition = "2018"
66

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

18+
[build-dependencies.bindgen]
19+
version = "~0.55"
20+
1821
[build-dependencies.cuda-config]
1922
path = "../cuda-config"
2023
version = "0.1.0"
24+
25+
[dependencies.cuda-types-sys]
26+
path = "../cuda-types-sys"

cuda-driver-sys/bindgen.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
set -exu
33

44
bindgen \
5-
--whitelist-type="^CU.*" \
6-
--whitelist-type="^cuuint(32|64)_t" \
7-
--whitelist-type="^cudaError_enum" \
8-
--whitelist-type="^cu.*Complex$" \
9-
--whitelist-type="^cuda.*" \
10-
--whitelist-type="^libraryPropertyType.*" \
5+
--blacklist-type="^.*" \
116
--whitelist-var="^CU.*" \
127
--whitelist-function="^cu.*" \
138
--default-enum-style=rust \

0 commit comments

Comments
 (0)