From eb7c9aeeee4cf20a4d81a319f4ebf9329efb819f Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Mon, 23 Nov 2020 20:00:16 +0100 Subject: Rename everything --- zluda/README | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 zluda/README (limited to 'zluda/README') diff --git a/zluda/README b/zluda/README new file mode 100644 index 0000000..089ddcd --- /dev/null +++ b/zluda/README @@ -0,0 +1,3 @@ +bindgen /usr/local/cuda/include/cuda.h -o cuda.rs --whitelist-function="^cu.*" --size_t-is-usize --default-enum-style=newtype --no-layout-tests --no-doc-comments --no-derive-debug --new-type-alias "^CUdevice$|^CUdeviceptr$" +sed -i -e 's/extern "C" {//g' -e 's/-> CUresult;/-> CUresult { impl_::unsupported()/g' -e 's/pub fn /#[no_mangle] pub extern "C" fn /g' cuda.rs +rustfmt cuda.rs \ No newline at end of file -- cgit v1.2.3