Open haesleinhuepf opened 2 years ago
Hint: Don't spend too much time on pocl. It's not a reasonable replacement for a real graphics processing unit, it's just an emulator.
Hint: Don't spend too much time on pocl. It's not a reasonable replacement for a real graphics processing unit, it's just an emulator.
If that's the case, then the apple-wrapper needs to be in!
pyopencl
docs seem to suggest pocl
can be better than apple drivers:
https://documen.tician.de/pyopencl/misc.html#enabling-access-to-cpus-and-gpus-via-py-opencl
but if that's just for CPU, then I really don't get why pyopencl
dropped the apple-wrapper in favor of the user choosing. BTW My googling found this old image.sc thread:
https://forum.image.sc/t/pyclesperanto-pyopencl-issue-on-mac-m1/63482/3?u=psobolewskiphd
Note Talley's response—we've been down this stream before.
Good news! imagecodecs-lite
migration merged:
https://github.com/conda-forge/imagecodecs-lite-feedstock/pull/15
and...
while installing still takes a bit of time, devbio-napari
appears fully functional on my M1 with:
mamba create --name test-env2 python=3.9 devbio-napari
devbio-napari 0.7.1 osx_hd1c38e8_0 conda-forge
ocl_icd_wrapper_apple 1.0.0 h27ca646_0 conda-forge
pycle-assistant stuff works, simpleITK stuff works, platymatch works. No cellpose though?
full conda list:
Nice work, @psobolewskiPhD !
I believe cellpose
was removed due to some installation issues on Windows: https://github.com/haesleinhuepf/devbio-napari/issues/17
Ah, so i had it earlier because arm64 was getting old devbio. Now it's up-to-date so no cellpose—quicker install tho!
I think there's a pathway to adding it back though (see here). I'm a cellpose fan, so I think adding the -c pytorch
to the suggested installation command is worth it.
Good news!
imagecodecs-lite
migration merged: conda-forge/imagecodecs-lite-feedstock#15 and... while installing still takes a bit of time,devbio-napari
appears fully functional on my M1 with:mamba create --name test-env2 python=3.9 devbio-napari
devbio-napari 0.7.1 osx_hd1c38e8_0 conda-forge ocl_icd_wrapper_apple 1.0.0 h27ca646_0 conda-forge
pycle-assistant stuff works, simpleITK stuff works, platymatch works. No cellpose though?
full conda list:
@psobolewskiPhD , am I understanding correctly that the current devbio-napari
is now installing correctly on your M1 Mac (:tada:)? If so, I think we can close this issue.
On a related note, thank you for all of your work to make the scientific python easily installable on M1/M2 macs, @psobolewskiPhD ! I've seen you making fixes and helping people all over the place. Amazing!
@psobolewskiPhD , am I understanding correctly that the current
devbio-napari
is now installing correctly on your M1 Mac (🎉)? If so, I think we can close this issue.
Yes sir! Also, can nuke this part of the README:
I'll make a PR.
Awesome! :rocket:
Correct @psobolewskiPhD . Actually, it might make sense to install the wrapper together with pyopencl. We may also let the redlionfish people know about this modification. They also depend directly on pyopencl
I've made a PR to the RLF feedstock to add the wrapper on osx. Hopefully I didn't mess anything up! https://github.com/conda-forge/redlionfish-feedstock/pull/11
I'm attempting to install devbio-napari on a Mac M1. I do have rosetta installed and there everything works great. I'm failing to setup an environment using the arm64 architecture.
I followed the instructions here and use this command to setup an environment:
And receive this error:
Maybe @thawn or @psobolewskiPhD can give me hints? (-:
Thanks!