Apple has published an official list of all of their devices that use OpenGL and OpenCL, including which version is supported. The earliest machines date back to 2007. The most recent machines to support both OpenCL and OpenGL are the 2018 MacBook Pro 13 and 15 inch. Both machines support OpenGL 4.1 and OpenCL 1.2.