Skip to content

Commit

Permalink
Add OGL interop to cuda proc macros
Browse files Browse the repository at this point in the history
  • Loading branch information
vosen committed Jan 26, 2022
1 parent 6f76c8b commit 07aa110
Show file tree
Hide file tree
Showing 6 changed files with 5,890 additions and 5,746 deletions.
2 changes: 1 addition & 1 deletion cuda_base/README
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bindgen /usr/local/cuda/include/cuda.h -o src/cuda.rs --with-derive-eq --whitelist-function="^cu.*" --whitelist-var="^CU.*" --size_t-is-usize --default-enum-style=newtype --no-layout-tests --no-doc-comments --no-derive-debug --new-type-alias "^CUdevice_v\d+$|^CUdeviceptr_v\d+$" --must-use-type "cudaError_enum" -- -D__CUDA_API_VERSION_INTERNAL
bindgen build/wrapper.h -o src/cuda.rs --no-partialeq "CUDA_HOST_NODE_PARAMS_st" --with-derive-eq --whitelist-function="^cu.*" --whitelist-var="^CU.*" --size_t-is-usize --default-enum-style=newtype --no-layout-tests --no-doc-comments --no-derive-debug --new-type-alias "^CUdevice_v\d+$|^CUdeviceptr_v\d+$" --must-use-type "cudaError_enum" -- -I/usr/local/cuda/include
3 changes: 3 additions & 0 deletions cuda_base/build/wrapper.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define __CUDA_API_VERSION_INTERNAL
#include <cuda.h>
#include <cudaGL.h>
Loading

0 comments on commit 07aa110

Please sign in to comment.