onnxruntime/onnxruntime
Mauricio A Rovira Galvez ffca096b5a
Fixes a crash on macOS 15 when using CoreML. (#22277)
### Description
In macOS 15, apps running with CoreML will crash with an error message
like this one:
```
Terminating app due to uncaught exception 'NSGenericException', reason: 'Failed to set compute_device_types_mask E5RT: Cannot provide zero compute device types. (1)'
```

This can be easily seen when building ONNXRuntime from source and
running the unit tests. The fix was suggested in [this bug
report](https://forums.developer.apple.com/forums/thread/757040).
I've ported the change to ONNXRuntime and verified that:
* The issue is resolved in macOS 15 (all unit tests pass).
* The behaviour is unchanged in macOS 14. 


### Motivation and Context
This fixes #22275 allowing apps using ONNXRuntime with CoreML to work
normally.
2024-10-01 16:06:03 +10:00
..
contrib_ops [ARM64] MatMulNBits: use neon instrinsics to convert between fp16 and fp32 (#22195) 2024-09-26 13:55:40 -07:00
core Fixes a crash on macOS 15 when using CoreML. (#22277) 2024-10-01 16:06:03 +10:00
lora Multi-Lora support (#22046) 2024-09-30 15:59:07 -07:00
python Multi-Lora support (#22046) 2024-09-30 15:59:07 -07:00
test Multi-Lora support (#22046) 2024-09-30 15:59:07 -07:00
tool/etw Fix typos - 1st Wave (#21278) 2024-07-11 13:35:08 +08:00
wasm [WebNN EP] Enable IO Bindings with MLTensor (#21301) 2024-09-27 17:24:21 -07:00
__init__.py Multi-Lora support (#22046) 2024-09-30 15:59:07 -07:00
ReformatSource.ps1
ReformatSourcePython.bat
VSCodeCoverage.runsettings