filecoin-project / filecoin-ffi

C and CGO bindings for Filecoin's Rust libraries
Other
94 stars 136 forks source link

bug: lotus1.25.x lotus-worker cannot get gpu info #442

Closed hail100 closed 6 months ago

hail100 commented 6 months ago

When I build lotus-worker 1.25.x with export FFI_USE_CUDA_SUPRASEAL=1, feature = "cuda-supraseal" and get_gpu_devices_internal cannot get gpu info. https://github.com/filecoin-project/filecoin-ffi/blob/441fa8e61189dc32/rust/src/util/api.rs#L38 @vmx

vmx commented 6 months ago

@hail100 yes, that's expected. SupraSeal is using a different code path and has it's own logic for accessing GPUs. So if we would present GPU information, we wouldn't be sure whether SupraSeal is having the same information.