你现在可以通过pyobjc在Python中编译Metal内核并在GPU上运行它们。一个在GPU上添加两个numpy数组的示例:https://gist.github.com/awni/87f49147b13b7e119d36401e7c678a49