clEsperanto / pyclesperanto

GPU-accelerated Image Processing library using OpenCL
https://clesperanto.github.io/pyclesperanto
BSD 3-Clause "New" or "Revised" License
31 stars 6 forks source link

Should a CPU be found on an M2 macbook? #149

Closed m-albert closed 8 months ago

m-albert commented 9 months ago

I'm on a macbook with an M2 and

import pyclesperanto as cle
devices = ['all', 'cpu', 'gpu']
{device: cle.list_available_devices(device_type=device)
     for device in devices}

gives:

Warning: Fail to find 'cpu' OpenCL compatible devices. {'all': ['Apple M2'], 'cpu': [], 'gpu': ['Apple M2']}

StRigaud commented 8 months ago

After a quick search, we get the same behaviour from pyopencl package. So I think its normal that no cpu are found.

This may change if we manage to switch to Metal for OSx users. Closing until then.