OpenCL M1 CPU bugs

Dear Apple OpenCL maintenance team,

I would like to share the following bugs I encountered with M1 CPU's OpenCL runtime.

  1. erf function produce wrong results while I have to use 1 - erfc in the kernel to produce the correct results.
  2. max_workitems_size is 1024x1x1 which make many existing kernels very inflexible to use since they normally use get_local_id(1) or even (2) to get flexible work-item indexing. Could you guys please modified it to 1024x1024x1024? The M1 GPU implementation has no such problem where the max_workgroup_size is 256 while max_workitems_size is 256x256x256. Besides, the Intel CPU runtime for Core i7-1165G7 ( driver = 2022.13.3.0.16_160000) has the max_workgroup_size 8192 while max_workitems_size = 8192x8192x8192.


Thank you very much!


Best wishes,

Jinchuan Tang

MacBook Air 13″, macOS 13.0

Posted on Dec 25, 2022 7:36 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 25, 2022 9:21 AM

We’re not folks that work for Apple. We’re other users and other third-party developers.


AFAIK, OpenCL was deprecated at macOS 10.14: OpenCL for macOS - Apple Developer






More:




One of the alternatives to Metal directly can be Vulkan on Metal: https://moltengl.com/moltenvk/


As for your feedback, log a bug report with Apple: Bug Reporting - Apple Developer


2 replies
Question marked as Top-ranking reply

Dec 25, 2022 9:21 AM in response to Jinchuan_Tang

We’re not folks that work for Apple. We’re other users and other third-party developers.


AFAIK, OpenCL was deprecated at macOS 10.14: OpenCL for macOS - Apple Developer






More:




One of the alternatives to Metal directly can be Vulkan on Metal: https://moltengl.com/moltenvk/


As for your feedback, log a bug report with Apple: Bug Reporting - Apple Developer


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

OpenCL M1 CPU bugs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.