Opened 6 years ago

Last modified 5 years ago

#1203 new task

OpenCL deprecated on Mac

Reported by: pkienzle Owned by:
Priority: major Milestone: SasView 5.1.0
Component: sasmodels Keywords:
Cc: Work Package: SasModels Infrastructure

Description

sasmodels on future macs

Apple has announced that OpenCL is deprecated as of Mojave https://developer.apple.com/macos/whats-new/, however, there does seem to be an alternate path.

There is an OpenCL frontend in clang, triggered by "-x cl", as shown on this blog entry, and which seems to work on my Mac. Khronos provides the LLVM to SPIR-V translator and the MoltenVK driver which takes SPIR-V and sends it to Apple's Metal framework.

So perhaps the problem will resolve itself, and a third party will put together the necessary toolchain in a nice anaconda package that we can supply with the mac distribution of sasview. Otherwise we will need to put together the pieces ourselves, or update kernel_iq.c to support Metal in addition to OpenCL and CUDA, and write a replacement for pyopencl/pycuda that targets Metal.

There is no answer yet on stackoverflow.

Change History (1)

comment:1 Changed 5 years ago by butler

  • Work Package changed from SasModels Redesign to SasModels Infrastructure
Note: See TracTickets for help on using tickets.