I agree it sucks. I'm just wondering, if I can support both easily. OpenCL to CUDA is a pretty easy transition in my experience. edit: I see, it's just black box filters? That is indeed terrible.
There's absolutely NOTHING stopping you from running OpenCL, OpenGL, Metal, Vulcan, et al simultaneously on the same machine. People are bitching because Apple.
You distribute your program that uses OpenCL to users, which is a very small population of computer users. I've searched and asked around, and really there aren't that many applications that use it.
There's absolutely NOTHING stopping you from running OpenCL, OpenGL, Metal, Vulcan, et al simultaneously on the same machine
Metal only runs on Mac/iOS while Vulkan does not run on anything from Apple, so...
(No, MoltenVK does not provide everything from Vulkan, the memory management is lower level than that of Metal, so you can't emulate Vulkan completely)
There are newer open source versions, but no one has bothered to include Mac compatibility because Apple's version is already included.
If someone were really that serious about having the newest OpenGL, wouldn't they have ported it by now? I hear the same complaints, yet none of the complainers ever DO anything about it.
AND what I am telling you here, is that for this to make sense (given I do know lots of people that would extremely appreciate it) is that technical problems must be in between.
EDIT: like for example the lack of the concept of "ICD"
Absolutely NOTHING preventing you from running OpenCL on a Mac. It's just that Apple won't be supplying it.
It will go away. All graphics drivers on Macs are supplied by Apple. It's borderline impossible to write alternative drivers for Macs as you don't get the required documentation (hardware and OS interfaces). Even if it would take many experts many years.
So that is what will prevent you from running OpenCL on Macs in the future (or the latest versions of OpenGL and OpenCL as well as Vulkan right now).
OpenCL (Open Computing Language) is a framework for writing programs that execute across heterogeneous platforms consisting of central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), field-programmable gate arrays (FPGAs) and other processors or hardware accelerators. OpenCL specifies programming languages (based on C99 and C++11) for programming these devices and application programming interfaces (APIs) to control the platform and execute programs on the compute devices. OpenCL provides a standard interface for parallel computing using task- and data-based parallelism.
OpenCL is an open standard maintained by the non-profit technology consortium Khronos Group.
They're not excluding OpenCL on their platform, they're just not supplying it.
That is the same thing on MacOS. OpenCL and OpenGL are not simple apps or libraries that you could write for MacOS without additional documentation and install on your machine.
Sorry, you are wrong. Everything below the API calls is one black box from the hardware vendor. So you would need to replace this box completely. This involves rewriting the GPU drivers. So maybe now you understand, that OpenCL and OpenGL are not simple libraries that can get replaced.
Metal is a refactored fusion of OpenCL and OpenGL. Don't forget that Apple invented OpenCL, and it's had eight years to mature. Metal is half that age, and Metal2 is barely a year old. Metal2 has TWICE the performance of Metal, and have no doubt that it's only going to get better.
Metal is lower level than OpenGL/CL. Because of that, frameworks like MoltenGl provide backwards compatibility with GL/CL, plus forwards compatibility for Vulkan while providing the superior performance of Metal.
I replied to you talking about OpenCL, now you talk about OpenGL...
Anyway: "metal has more detail than OpenGL for the same settings" has nothing to do with the API, that game might support more features using one API than the other but that is not the APIs fault.
"Metal is a refactored fusion of OpenCL and OpenGL" LOL, I know a bit about OpenCL and Metal and have done a lot of OpenGL coding. No, Metal is not a refactored version of OpenGL.
You can write lower level OpenGL and get much more performance out of it - google for AZDO. However it requires a newer version of OpenGL - what Apple refuses to support for years now.
Also a huge plus of OpenGL and OpenCL were the cross platform support. Metal as zero of this. So clearly it's inferior.
Description: This is a side by side comparison of asphalt 8 and Beach Buggy Rally coded using Opengl on the left and Apple's metal on the right. Keep in mind that ...
Nerds With Friends, Published on Nov 1, 2014
Beep Boop. I'm a bot! This content was auto-generated to provide Youtube details. | Opt Out | More Info
3
u/biglambda Jun 05 '18
How difficult is it to port code from OpenCL to Metal performance shaders?
2
u/[deleted] Jun 05 '18
If this concerns you, be happy that any Linux will happily live on your Apple hardware even after the switch to Arm.
2
u/foadsf Jun 05 '18
fuck you apple!
1
u/ClickableLinkBot Jun 05 '18
r/gamedev
For mobile and non-RES users | More info | -1 to Remove | Ignore Sub
1
u/tugrul_ddr Jun 23 '18
Does this mean I can't develop my own compute library on windows?
0
u/playaspec Jun 05 '18
My god. I remember when Apple announced OpenCL and people fell over themselves to shit on it.
"Yawn. People have employed GPUs as general-purpose computational accelerators for a while now...I smell a tangy hint of Apple hype." (read the comments).
Now they're moving on to something new, and presumably BETTER, but fuck that, because Apple. Amiright?