Commit 5bf1aeb
authored
Do not export sampler for device==mps && dtype==bfloat16 (#208)
As titled.
Seeing this error:
```
E 00:00:13.059103 executorch:et_metal.mm:246] ETMetalShaderLibrary: Failed to compile shader library: program_source:3813:29: error: assigning to 'bfloat' from incompatible type 'float'
tmp_acc_2 = tmp0;
^~~~
E 00:00:13.059124 executorch:et_metal.mm:263] ETMetalShaderLibrary: Library not compiled
E 00:00:13.059126 executorch:et_metal.mm:301] ETMetalShaderLibrary::getKernelFunction: Failed to get pipeline state for 'generated_kernel'
E 00:00:13.059127 executorch:shim_mps.mm:105] aoti_torch_mps_get_kernel_function: Failed to get kernel function 'generated_kernel'
E 00:00:13.059129 executorch:shim_mps.mm:517] aoti_torch_mps_run_command_block: null function handle
```
When running metal delegated argmax model. This PR disable the sampler export code path, let runner fallback to C++ CPU sampler.1 parent f8aa919 commit 5bf1aeb
1 file changed
+17
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
923 | | - | |
924 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
925 | 935 | | |
926 | | - | |
| 936 | + | |
927 | 937 | | |
928 | 938 | | |
929 | | - | |
930 | 939 | | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
931 | 943 | | |
932 | 944 | | |
933 | 945 | | |
| |||
0 commit comments