pub fn probe(index: usize) -> Result<GpuInfo, String>
查第 index 块 N 卡的情况,不载内核(不 JIT,比 Gpu::open_index 轻)。 没有驱动、没有这块卡、算力不够或 PAGESIFT_GPU=off 时,错误就是可以给用户看的原因。
index
Gpu::open_index
PAGESIFT_GPU=off