opencl-test-ios
opencl-test-ios copied to clipboard
Developing OpenCL apps on iOS without jailbreaking
Is it generally possible to develop an app that uses OpenCL on iOS (e.g., iPhone 5s) without jailbreaking?
I noticed you imply that you could wrap your project as an Xcode project. Would it allow one to use your code without jailbreaking an iOS device? Would it imply that OpenCL codes can be developed and provided to a device that is not jailbroken?
Thanks.
@kerkilchoi Thanks for your comment. Short answer is that, currently still impossible to run on non-jailbroken devices. Because OpenCL is a private framework which sandboxed apps don't have rights to access. But there is an interesting article introducing how to abuse OpenGL to implement GPGPU. Maybe you can give it a try.
Just to add a comment on this old thread, my experience was that even on the private framework on a jailbroken device, it actually only gave you access to OpenCL on the CPU. This was on the iPhone 4, iOS ... 6? So the slightest chance things have improved, but very unlikely given Metal...
=== 1 OpenCL platform(s) found: === -- 0 -- PROFILE = FULL_PROFILE VERSION = OpenCL 1.1 (Jan 3 2013 21:00:12) NAME = Apple VENDOR = Apple EXTENSIONS = cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event === 1 OpenCL device(s) found on platform: -- 0 -- DEVICE_NAME = ARM CPU Compute Device DEVICE_VENDOR = Apple DEVICE_VERSION = OpenCL 1.1 DRIVER_VERSION = 1.1 DEVICE_MAX_COMPUTE_UNITS = 1 DEVICE_MAX_WORK_GROUP_SIZE = 1024 DEVICE_MAX_CLOCK_FREQUENCY = 3594510697 DEVICE_GLOBAL_MEM_SIZE = 264740864 DEVICE_LOCAL_MEM_SIZE = 32768 DEVICE_TYPE = 2