Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openinfer-core/src/cpu_topology.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{
collections::{BTreeMap, BTreeSet, HashSet},
ffi::CStr,
ffi::{CStr, c_char},
};

use anyhow::{Context, Result, ensure};
Expand Down Expand Up @@ -146,7 +146,7 @@ pub fn pin_current_thread_to_cpu(cpu: CpuId) -> Result<()> {
}

pub fn cuda_device_pci_bus_id(device_ordinal: usize) -> Result<String> {
let mut buf = [0i8; 32];
let mut buf = [c_char::default(); 32];
cuda_driver_result::init().map_err(|err| anyhow::anyhow!("{err:?}"))?;
let device = cuda_driver_result::device::get(device_ordinal as i32)
.map_err(|err| anyhow::anyhow!("{err:?}"))?;
Expand Down