bheisler / RustaCUDA

Rusty wrapper for the CUDA Driver API
Apache License 2.0
765 stars 58 forks source link

Fix compile error on aarch64/arm architectures (resolves #65) #66

Open jerry73204 opened 2 years ago

jerry73204 commented 2 years ago

This patch fixes the compile error in issue #65. The compile error was caused by this line.

let mut cu_uuid = CUuuid { bytes: [0i8; 16] };

The CUuuid accepts an [c_char; 16] array, where the type alias c_char depends on architecture. The PR replaces it with bytes: [0usize as c_char; 16].