OpenCL & Mac Lion OS X
  1 / 2    
Preview 3 of Lion OS X features OpenCL 1.1 and Graphics acceleration for Fermi Cards.
There is a way to fix OpenCL for Lion OS X. Start developing for Lion OS X you might be surprised if what you coded for Snow Leopard has incompatibilities with Lion OS X.

Cheers,
Alexander.
Preview 3 of Lion OS X features OpenCL 1.1 and Graphics acceleration for Fermi Cards.

There is a way to fix OpenCL for Lion OS X. Start developing for Lion OS X you might be surprised if what you coded for Snow Leopard has incompatibilities with Lion OS X.



Cheers,

Alexander.

Dr. Alexander Agathos Degree in Maths, PhD in Computer Science (specialization in Computer Graphics)

Researcher in HPC, Department of Mathematics and Informatics, West University of Timisoara, Romania.

[email="agalex@iit.demokritos.gr"]Email[/email]

Website

--------------------
A famous researcher in parallelism said : Parallelism is a great problem. The basic question is though are you part of the solution or part of the problem?

The challenges of parallel computing are simple to enumerate : expose lots of parallelism and minimize communication (said another way : maximize locality)

The more complicated you present a subject the less you have really mastered it...Albert Einstein.

#1
Posted 05/24/2011 11:40 AM   
[quote name='AlexanderAgathos' date='24 May 2011 - 12:40 PM' timestamp='1306237213' post='1241658']There is a way to fix OpenCL for Lion OS X. Start developing for Lion OS X you might be surprised if what you coded for Snow Leopard has incompatibilities with Lion OS X.
[/quote]

Doesn't wonder me. Snow Leopard OpenCL is incompatible to the standard in a number of places.
[quote name='AlexanderAgathos' date='24 May 2011 - 12:40 PM' timestamp='1306237213' post='1241658']There is a way to fix OpenCL for Lion OS X. Start developing for Lion OS X you might be surprised if what you coded for Snow Leopard has incompatibilities with Lion OS X.





Doesn't wonder me. Snow Leopard OpenCL is incompatible to the standard in a number of places.

#2
Posted 05/24/2011 01:35 PM   
[quote name='theMarix' date='24 May 2011 - 04:35 PM' timestamp='1306244101' post='1241698']
Doesn't wonder me. Snow Leopard OpenCL is incompatible to the standard in a number of places.
[/quote]

Well now you have the opportunity to code using the new features of OpenCL 1.1. Also the fact that Lion OS X has started supporting Fermi means many things.
Worth mentioning books for OpenCL :

[url="http://www.amazon.co.uk/Heterogeneous-Computing-OpenCL-Benedict-Gaster/dp/0123877660/ref=sr_1_10?ie=UTF8&qid=1306249610&sr=8-10"]Heterogeneous Computing with OpenCL[/url]

[url="http://www.amazon.co.uk/OpenCL-Programming-OpenGL-Aaftab-Munshi/dp/0321749642/ref=sr_1_1?ie=UTF8&qid=1306249610&sr=8-1"]OpenCL Programming Guide[/url]

For the last book I am certain it covers material for OpenCL 1.1.

Cheers,
Alexander.
[quote name='theMarix' date='24 May 2011 - 04:35 PM' timestamp='1306244101' post='1241698']

Doesn't wonder me. Snow Leopard OpenCL is incompatible to the standard in a number of places.





Well now you have the opportunity to code using the new features of OpenCL 1.1. Also the fact that Lion OS X has started supporting Fermi means many things.

Worth mentioning books for OpenCL :



Heterogeneous Computing with OpenCL



OpenCL Programming Guide



For the last book I am certain it covers material for OpenCL 1.1.



Cheers,

Alexander.

Dr. Alexander Agathos Degree in Maths, PhD in Computer Science (specialization in Computer Graphics)

Researcher in HPC, Department of Mathematics and Informatics, West University of Timisoara, Romania.

[email="agalex@iit.demokritos.gr"]Email[/email]

Website

--------------------
A famous researcher in parallelism said : Parallelism is a great problem. The basic question is though are you part of the solution or part of the problem?

The challenges of parallel computing are simple to enumerate : expose lots of parallelism and minimize communication (said another way : maximize locality)

The more complicated you present a subject the less you have really mastered it...Albert Einstein.

#3
Posted 05/24/2011 03:15 PM   
Thanks, I am already coding for 1.1. It's just annoying to have to use all the workarounds to also keep the code running on the Snow Leopard based Laptop. Therefore I am actually really looking forward to the official release of Lion. :)
Thanks, I am already coding for 1.1. It's just annoying to have to use all the workarounds to also keep the code running on the Snow Leopard based Laptop. Therefore I am actually really looking forward to the official release of Lion. :)

#4
Posted 05/24/2011 03:23 PM   
[quote name='theMarix' date='24 May 2011 - 06:23 PM' timestamp='1306250634' post='1241753']
Thanks, I am already coding for 1.1. It's just annoying to have to use all the workarounds to also keep the code running on the Snow Leopard based Laptop. Therefore I am actually really looking forward to the official release of Lion. :)
[/quote]

And for me time to buy a magic track pad. :-)

Now that I see oclDeviceQuery
I am getting this info :

CL_DRIVER_VERSION: CLH 1.0
CL_DEVICE_VERSION: OpenCL 1.1
CL_DEVICE_OPENCL_C_VERSION: OpenCL C 1.1

I will run some tests to test OpenCL 1.1 when I find time to deal with downloading and installing Xcode.

Cheers,
Alexander.
[quote name='theMarix' date='24 May 2011 - 06:23 PM' timestamp='1306250634' post='1241753']

Thanks, I am already coding for 1.1. It's just annoying to have to use all the workarounds to also keep the code running on the Snow Leopard based Laptop. Therefore I am actually really looking forward to the official release of Lion. :)





And for me time to buy a magic track pad. :-)



Now that I see oclDeviceQuery

I am getting this info :



CL_DRIVER_VERSION: CLH 1.0

CL_DEVICE_VERSION: OpenCL 1.1

CL_DEVICE_OPENCL_C_VERSION: OpenCL C 1.1



I will run some tests to test OpenCL 1.1 when I find time to deal with downloading and installing Xcode.



Cheers,

Alexander.

Dr. Alexander Agathos Degree in Maths, PhD in Computer Science (specialization in Computer Graphics)

Researcher in HPC, Department of Mathematics and Informatics, West University of Timisoara, Romania.

[email="agalex@iit.demokritos.gr"]Email[/email]

Website

--------------------
A famous researcher in parallelism said : Parallelism is a great problem. The basic question is though are you part of the solution or part of the problem?

The challenges of parallel computing are simple to enumerate : expose lots of parallelism and minimize communication (said another way : maximize locality)

The more complicated you present a subject the less you have really mastered it...Albert Einstein.

#5
Posted 05/24/2011 03:54 PM   
[quote name='AlexanderAgathos' date='24 May 2011 - 06:54 PM' timestamp='1306252462' post='1241775']
And for me time to buy a magic track pad. :-)

Now that I see oclDeviceQuery
I am getting this info :

CL_DRIVER_VERSION: CLH 1.0
CL_DEVICE_VERSION: OpenCL 1.1
CL_DEVICE_OPENCL_C_VERSION: OpenCL C 1.1

I will run some tests to test OpenCL 1.1 when I find time to deal with downloading and installing Xcode.

Cheers,
Alexander.
[/quote]

One of the most interesting things I observed is that for instance the OpenCL application qjulia (Apple's raytracing of a 4D quaternion) gives a static 95fps opposed to 40 fps in Snow Leopard. This means that a lot of optimization has been done. Lion OS X is going to provide a lot of exciting surprises...
[quote name='AlexanderAgathos' date='24 May 2011 - 06:54 PM' timestamp='1306252462' post='1241775']

And for me time to buy a magic track pad. :-)



Now that I see oclDeviceQuery

I am getting this info :



CL_DRIVER_VERSION: CLH 1.0

CL_DEVICE_VERSION: OpenCL 1.1

CL_DEVICE_OPENCL_C_VERSION: OpenCL C 1.1



I will run some tests to test OpenCL 1.1 when I find time to deal with downloading and installing Xcode.



Cheers,

Alexander.





One of the most interesting things I observed is that for instance the OpenCL application qjulia (Apple's raytracing of a 4D quaternion) gives a static 95fps opposed to 40 fps in Snow Leopard. This means that a lot of optimization has been done. Lion OS X is going to provide a lot of exciting surprises...

Dr. Alexander Agathos Degree in Maths, PhD in Computer Science (specialization in Computer Graphics)

Researcher in HPC, Department of Mathematics and Informatics, West University of Timisoara, Romania.

[email="agalex@iit.demokritos.gr"]Email[/email]

Website

--------------------
A famous researcher in parallelism said : Parallelism is a great problem. The basic question is though are you part of the solution or part of the problem?

The challenges of parallel computing are simple to enumerate : expose lots of parallelism and minimize communication (said another way : maximize locality)

The more complicated you present a subject the less you have really mastered it...Albert Einstein.

#6
Posted 05/25/2011 03:42 PM   
[quote name='AlexanderAgathos' date='25 May 2011 - 06:42 PM' timestamp='1306338127' post='1242223']
One of the most interesting things I observed is that for instance the OpenCL application qjulia (Apple's raytracing of a 4D quaternion) gives a static 95fps opposed to 40 fps in Snow Leopard. This means that a lot of optimization has been done. Lion OS X is going to provide a lot of exciting surprises...
[/quote]

Also ATI should really provide with an SDK for Apple. Even OCLinfo does not work...believe it or not it fails on program.build(device) for the CPU and the GPU. Something does not go well on the wrapper. Anyway by avoiding the execution of the Kernel the info output is that OpenCL 1.1 is supported.
[quote name='AlexanderAgathos' date='25 May 2011 - 06:42 PM' timestamp='1306338127' post='1242223']

One of the most interesting things I observed is that for instance the OpenCL application qjulia (Apple's raytracing of a 4D quaternion) gives a static 95fps opposed to 40 fps in Snow Leopard. This means that a lot of optimization has been done. Lion OS X is going to provide a lot of exciting surprises...





Also ATI should really provide with an SDK for Apple. Even OCLinfo does not work...believe it or not it fails on program.build(device) for the CPU and the GPU. Something does not go well on the wrapper. Anyway by avoiding the execution of the Kernel the info output is that OpenCL 1.1 is supported.

Dr. Alexander Agathos Degree in Maths, PhD in Computer Science (specialization in Computer Graphics)

Researcher in HPC, Department of Mathematics and Informatics, West University of Timisoara, Romania.

[email="agalex@iit.demokritos.gr"]Email[/email]

Website

--------------------
A famous researcher in parallelism said : Parallelism is a great problem. The basic question is though are you part of the solution or part of the problem?

The challenges of parallel computing are simple to enumerate : expose lots of parallelism and minimize communication (said another way : maximize locality)

The more complicated you present a subject the less you have really mastered it...Albert Einstein.

#7
Posted 05/25/2011 08:10 PM   
When you say Lion supports graphics acceleration for Fermi Cards, do you know if they are also now supporting Fermi cards as OpenCL devices?

I specifically bought a NVIDIA Quadro 4000 from Apple for my Mac Pro and have been frustrated that OS 10.6 OpenCL does not support it.

Thanks.
When you say Lion supports graphics acceleration for Fermi Cards, do you know if they are also now supporting Fermi cards as OpenCL devices?



I specifically bought a NVIDIA Quadro 4000 from Apple for my Mac Pro and have been frustrated that OS 10.6 OpenCL does not support it.



Thanks.

#8
Posted 06/21/2011 04:26 PM   
Yes you need to do some hacking though, I think that the need to have OpenCL for Fermi cards justify me pointing at this site :

http://netkas.org/?p=794

HexEdit as it instructs and you will have OpenCL on your Quadro. Save the bundle before you alter it just in case.

[quote name='noah_r' date='21 June 2011 - 07:26 PM' timestamp='1308673600' post='1254813']
When you say Lion supports graphics acceleration for Fermi Cards, do you know if they are also now supporting Fermi cards as OpenCL devices?

I specifically bought a NVIDIA Quadro 4000 from Apple for my Mac Pro and have been frustrated that OS 10.6 OpenCL does not support it.

Thanks.
[/quote]

Edit : People who have background in GPGPU should already realize that the term GPGPU is shifting to heterogenous device computing. OpenCL offers this transition. However it is nice having a CUDA enabled device since many software companies, academia institutes, have already invested on CUDA. Mac OS X for me is the definite system for OpenCL. Firstly it is guaranteed that your program will run on all systems having Mac OS X. Secondly it is Unix based which is a huge plus. Thirdly Apple creates the Framework meaning that there is a uniform way to code on all the devices it supports. In Windows and Linux you should have the drivers of a specific vendor.
Yes you need to do some hacking though, I think that the need to have OpenCL for Fermi cards justify me pointing at this site :



http://netkas.org/?p=794



HexEdit as it instructs and you will have OpenCL on your Quadro. Save the bundle before you alter it just in case.



[quote name='noah_r' date='21 June 2011 - 07:26 PM' timestamp='1308673600' post='1254813']

When you say Lion supports graphics acceleration for Fermi Cards, do you know if they are also now supporting Fermi cards as OpenCL devices?



I specifically bought a NVIDIA Quadro 4000 from Apple for my Mac Pro and have been frustrated that OS 10.6 OpenCL does not support it.



Thanks.





Edit : People who have background in GPGPU should already realize that the term GPGPU is shifting to heterogenous device computing. OpenCL offers this transition. However it is nice having a CUDA enabled device since many software companies, academia institutes, have already invested on CUDA. Mac OS X for me is the definite system for OpenCL. Firstly it is guaranteed that your program will run on all systems having Mac OS X. Secondly it is Unix based which is a huge plus. Thirdly Apple creates the Framework meaning that there is a uniform way to code on all the devices it supports. In Windows and Linux you should have the drivers of a specific vendor.

Dr. Alexander Agathos Degree in Maths, PhD in Computer Science (specialization in Computer Graphics)

Researcher in HPC, Department of Mathematics and Informatics, West University of Timisoara, Romania.

[email="agalex@iit.demokritos.gr"]Email[/email]

Website

--------------------
A famous researcher in parallelism said : Parallelism is a great problem. The basic question is though are you part of the solution or part of the problem?

The challenges of parallel computing are simple to enumerate : expose lots of parallelism and minimize communication (said another way : maximize locality)

The more complicated you present a subject the less you have really mastered it...Albert Einstein.

#9
Posted 07/06/2011 10:55 AM   
Anyone experience with OpenCL + NVIDIA on the final version of Lion?

Regards,
Markus

PS: Not yet decided when to upgrade on my private machine, will take a while until I get it for my office machine, but very curious!
Anyone experience with OpenCL + NVIDIA on the final version of Lion?



Regards,

Markus



PS: Not yet decided when to upgrade on my private machine, will take a while until I get it for my office machine, but very curious!

#10
Posted 07/21/2011 03:24 PM   
Does NVIDIA Visual Profiler work in Lion? I can't get it to work in Snow Leopard, and I think it's because of Apple's implementation of OpenCL; maybe in Lion it's possible to profile OpenCL programs...
Does NVIDIA Visual Profiler work in Lion? I can't get it to work in Snow Leopard, and I think it's because of Apple's implementation of OpenCL; maybe in Lion it's possible to profile OpenCL programs...

#11
Posted 02/11/2012 02:23 PM   
OpenCL works with Lion vs SL a bit faster. For my 9600 GT its not much diff, only a few like OceanWave run significant faster.
The faster the gpu the more benefit by newer Lion OPenCL Framework/Driver.
[b]LUXMARK[/b], an well known OpenCL raytraycing benchmark (AMD uses it itself for tests / benchmarks) is available in an V2.0 version.
Also the resuts database was updated (LUXMARK can submit results).

[url="http://www.luxrender.net/forum/viewtopic.php?f=34&t=7769&sid=e882faeee7a6e0a981a95d9418e2c826"]LUXMARK[/url]

[b]DL: [/b]Mac OS X 64 Bit: [url="http://www.luxrender.net/release/luxmark/LuxMark_v2.0_OSXIntel64.zip"]LUXMARK V2 OS X[/url]

[b]Results DB[/b] (you can also use new searcg funktion to select OS , GPU type, for narrowing shown results)
[url="http://www.luxrender.net/luxmark/"]LUXMARK V2 results DB[/url]
You will find real Macs and, if GPU TYPE is Fermi (GTX 4/5xx) hackintoshs /wink.gif' class='bbc_emoticon' alt=';)' /> Fermi gpu users need, as someone told already an patch (few bytes hex) to get OpenCL run.
Because no AMD 7xxx GPU possible (even for Hackintoshs) , fastest OpenCL GPus are Nvidia Fermi at this time.
[color="#006400"]Some results i collected : Luxmark V2 , gpu only, default Scene SALA (medium)[/color]
[i]AMD 7970 (Win!) = 1800[/i]
Nvidia GTX 580 ("MSI Ligtning") = 1230
Nvidia GTX 560 = 620
MacPro AMD Radeon 5870 Mac = 588
AMD Radeon HIS 6870 OS X 10.7.2 = 484
MacPro AMD Radeon 5770 Mac = 306
AMD Sapphire 6850 = 351
AMD Radeon 5770 = 315
AMD Radeon 4850 = 224
Nvidia GTS 240 *2 = 191
AMD Radeon 4830, OS X 10.7.2 = 151
iMac AMD Radeon 6750M = 151
Geforce 9800GT 512 MB = 78
9600 GT , OS X 10.7.3 = 77
OpenCL works with Lion vs SL a bit faster. For my 9600 GT its not much diff, only a few like OceanWave run significant faster.

The faster the gpu the more benefit by newer Lion OPenCL Framework/Driver.

LUXMARK, an well known OpenCL raytraycing benchmark (AMD uses it itself for tests / benchmarks) is available in an V2.0 version.

Also the resuts database was updated (LUXMARK can submit results).



LUXMARK



DL: Mac OS X 64 Bit: LUXMARK V2 OS X



Results DB (you can also use new searcg funktion to select OS , GPU type, for narrowing shown results)

LUXMARK V2 results DB

You will find real Macs and, if GPU TYPE is Fermi (GTX 4/5xx) hackintoshs /wink.gif' class='bbc_emoticon' alt=';)' /> Fermi gpu users need, as someone told already an patch (few bytes hex) to get OpenCL run.

Because no AMD 7xxx GPU possible (even for Hackintoshs) , fastest OpenCL GPus are Nvidia Fermi at this time.

Some results i collected : Luxmark V2 , gpu only, default Scene SALA (medium)

AMD 7970 (Win!) = 1800

Nvidia GTX 580 ("MSI Ligtning") = 1230

Nvidia GTX 560 = 620

MacPro AMD Radeon 5870 Mac = 588

AMD Radeon HIS 6870 OS X 10.7.2 = 484

MacPro AMD Radeon 5770 Mac = 306

AMD Sapphire 6850 = 351

AMD Radeon 5770 = 315

AMD Radeon 4850 = 224

Nvidia GTS 240 *2 = 191

AMD Radeon 4830, OS X 10.7.2 = 151

iMac AMD Radeon 6750M = 151

Geforce 9800GT 512 MB = 78

9600 GT , OS X 10.7.3 = 77

#12
Posted 02/15/2012 07:59 PM   
Hi,

I am just starting with OpenCL and Nvidia. I apologize for this rookie question. I am trying to get nvvp Visual profiler working with OpenCL on Mac OSX Lion. I am using the Nvidia include files and libraries in Developer/GPU computing/OpenCL. I have used g++ and clang. I can compile and run code from a terminal with a make file. But I cannot profile the code in nvvp. The message is that there is no timeline. It compiles and runs in the nvvp console window, but the analysis window says no timeline.

I notice when I attempt to profile the oclBlackScholes that I get WARNING: "Nvidia OpenCL platform not found - defaulting to first platform."

I can profile the CUDA samples provided by Nvidia without a problem, but none of the OpenCL examples. Bandwidth test is the simplest example of something that works under CUDA but not the oclBandwidthTest version in the samples.

I am sure this is something simple but I don't get it. I can't find any explanation of how to do this on web nor blog.

Thanks for any help you can provide.

Regards
Hi,



I am just starting with OpenCL and Nvidia. I apologize for this rookie question. I am trying to get nvvp Visual profiler working with OpenCL on Mac OSX Lion. I am using the Nvidia include files and libraries in Developer/GPU computing/OpenCL. I have used g++ and clang. I can compile and run code from a terminal with a make file. But I cannot profile the code in nvvp. The message is that there is no timeline. It compiles and runs in the nvvp console window, but the analysis window says no timeline.



I notice when I attempt to profile the oclBlackScholes that I get WARNING: "Nvidia OpenCL platform not found - defaulting to first platform."



I can profile the CUDA samples provided by Nvidia without a problem, but none of the OpenCL examples. Bandwidth test is the simplest example of something that works under CUDA but not the oclBandwidthTest version in the samples.



I am sure this is something simple but I don't get it. I can't find any explanation of how to do this on web nor blog.



Thanks for any help you can provide.



Regards

#13
Posted 04/10/2012 01:14 AM   
You cannot profile OpenCL programs on OSX since nvvp needs the program to be linked against NVIDIA's OpenCL implementation, which is not available for OSX. If you look at the drivers installation package, there is no OpenCL library in there. Hope that helps.

[quote name='PersistencePays' date='10 April 2012 - 02:14 AM' timestamp='1334020461' post='1393985']
Hi,

I am just starting with OpenCL and Nvidia. I apologize for this rookie question. I am trying to get nvvp Visual profiler working with OpenCL on Mac OSX Lion. I am using the Nvidia include files and libraries in Developer/GPU computing/OpenCL. I have used g++ and clang. I can compile and run code from a terminal with a make file. But I cannot profile the code in nvvp. The message is that there is no timeline. It compiles and runs in the nvvp console window, but the analysis window says no timeline.

I notice when I attempt to profile the oclBlackScholes that I get WARNING: "Nvidia OpenCL platform not found - defaulting to first platform."

I can profile the CUDA samples provided by Nvidia without a problem, but none of the OpenCL examples. Bandwidth test is the simplest example of something that works under CUDA but not the oclBandwidthTest version in the samples.

I am sure this is something simple but I don't get it. I can't find any explanation of how to do this on web nor blog.

Thanks for any help you can provide.

Regards
[/quote]
You cannot profile OpenCL programs on OSX since nvvp needs the program to be linked against NVIDIA's OpenCL implementation, which is not available for OSX. If you look at the drivers installation package, there is no OpenCL library in there. Hope that helps.



[quote name='PersistencePays' date='10 April 2012 - 02:14 AM' timestamp='1334020461' post='1393985']

Hi,



I am just starting with OpenCL and Nvidia. I apologize for this rookie question. I am trying to get nvvp Visual profiler working with OpenCL on Mac OSX Lion. I am using the Nvidia include files and libraries in Developer/GPU computing/OpenCL. I have used g++ and clang. I can compile and run code from a terminal with a make file. But I cannot profile the code in nvvp. The message is that there is no timeline. It compiles and runs in the nvvp console window, but the analysis window says no timeline.



I notice when I attempt to profile the oclBlackScholes that I get WARNING: "Nvidia OpenCL platform not found - defaulting to first platform."



I can profile the CUDA samples provided by Nvidia without a problem, but none of the OpenCL examples. Bandwidth test is the simplest example of something that works under CUDA but not the oclBandwidthTest version in the samples.



I am sure this is something simple but I don't get it. I can't find any explanation of how to do this on web nor blog.



Thanks for any help you can provide.



Regards

#14
Posted 04/10/2012 06:51 AM   
Hi, for my knowledge there is an OpenGL + OpenCL debugger (profiler?) for OS X:.

[url="http://www.gremedy.com/?sdk"]http://www.gremedy.com/?sdk[/url]

Screenshoots:
[url="http://www.gremedy.com/screenshotsCL.php"]http://www.gremedy.com/screenshotsCL.php[/url]

Its free - i dont know if also the latest version is free.
The bad - its not supporting OS X 10.7 already. (10.5 -10.6)
Hi, for my knowledge there is an OpenGL + OpenCL debugger (profiler?) for OS X:.



http://www.gremedy.com/?sdk



Screenshoots:

http://www.gremedy.com/screenshotsCL.php



Its free - i dont know if also the latest version is free.

The bad - its not supporting OS X 10.7 already. (10.5 -10.6)

#15
Posted 04/18/2012 08:25 AM   
  1 / 2    
Scroll To Top