summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorZhong Jianxin <azuwis@gmail.com>2023-03-09 21:16:21 +0800
committerZhong Jianxin <azuwis@gmail.com>2023-03-09 21:22:36 +0800
commit0d758c2aa116f2eb17ce5cde62c3b1e361a64661 (patch)
treeb759ab1b6cae51203974f2243e71d17ca3c1b0bb /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent4e59252a2a6afaaa8b6d712e4c572ceaac1ded2b (diff)
python3Packages.torch: Disable MKLDNN on aarch64-darwin
It negatively impacts performance, this is also what official pytorch build does. In my test in a Macbook Pro M1 2020, using [pianotrans][1] to transcribe [cut_liszt.opus][2], transcription time: Enable mkldnn and disable Accelerate.framework: ~88s Disable mkldnn and disable Accelerate.framework: ~21s Disable mkldnn and enable Accelerate.framework: ~9s The final result is close to using torch-bin. See also https://github.com/NixOS/nixpkgs/pull/219104 [1]: https://github.com/azuwis/pianotrans [2]: https://github.com/azuwis/pianotrans/raw/master/test/cut_liszt.opus
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions