mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 11:08:52 +00:00
Better error message on older macos
This commit is contained in:
@ -243,9 +243,11 @@ impl Kernels {
|
|||||||
let lib = match source {
|
let lib = match source {
|
||||||
Source::Mfa => {
|
Source::Mfa => {
|
||||||
let source_data = MFA;
|
let source_data = MFA;
|
||||||
device
|
device.new_library_with_data(source_data).map_err(|e| {
|
||||||
.new_library_with_data(source_data)
|
MetalKernelError::LoadLibraryError(format!(
|
||||||
.map_err(|e| MetalKernelError::LoadLibraryError(e.to_string()))?
|
"Candle metal requires macosx > 13.0 or higher, cannot load mfa: {e}"
|
||||||
|
))
|
||||||
|
})?
|
||||||
}
|
}
|
||||||
source => {
|
source => {
|
||||||
let source_content = self.get_library_source(source);
|
let source_content = self.get_library_source(source);
|
||||||
|
Reference in New Issue
Block a user