Skip to content

Commit 955844d

Browse files
committed
Fix case-sensitivity mismatch of backend names in FFI call
1 parent c8d7679 commit 955844d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

gpubench-core/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,15 @@ pub fn run_benchmarks(
107107
}
108108
}
109109

110+
let backend_strs_lower: Vec<String> = backend_strs
111+
.iter()
112+
.map(|s| s.to_lowercase())
113+
.collect();
114+
110115
let ffi_results = gpubench_sys::ffi::gpubench_run_benchmarks(
111116
benchmarks,
112117
device_indices,
113-
backend_strs,
118+
&backend_strs_lower,
114119
verbose,
115120
debug,
116121
dump_geometry,

0 commit comments

Comments
 (0)