ZLUDA/level_zero-sys
Andrzej Janik a906c350f2
Make misc fixes (#41)
* Update ze_loader.lib to the newest version
* Export _ptsz/_ptds for which we have a legacy stream implementations
* Stop producing build logs if we are not looking at them anyway
2021-02-22 01:29:03 +01:00
..
lib Make misc fixes (#41) 2021-02-22 01:29:03 +01:00
src Improve build procedure and instructions (#28) 2021-01-08 17:17:46 +01:00
build.rs Improve build procedure and instructions (#28) 2021-01-08 17:17:46 +01:00
Cargo.toml Update level0 to 1.0 and unpack fatbins 2020-08-28 22:37:16 +02:00
README Update level0 to 1.0 and unpack fatbins 2020-08-28 22:37:16 +02:00

sed 's/^typedef uint32_t ze_.*flags_t;$//g' /usr/local/include/level_zero/ze_api.h > ze_api.h
sed -i -r 's/ze_(.*)_flag_t/ze_\1_flags_t/g' ze_api.h
bindgen --size_t-is-usize --default-enum-style=newtype --bitfield-enum ".*flags_t"  --whitelist-function "ze.*" ze_api.h -o ze_api.rs
sed -i 's/pub struct _ze_result_t/#[must_use]\npub struct _ze_result_t/g' ze_api.rs