New MAC OS X OpenCL Version
log in

Advanced search

Message boards : News : New MAC OS X OpenCL Version

Author Message
Profile Slicker
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 11 Jun 09
Posts: 2525
Credit: 740,580,099
RAC: 1
Message 14185 - Posted: 7 Jun 2012, 17:45:59 UTC

The MAC OS X version has been updated to v3.10. It contains several performance updates and [hopefully] a bug fix that was causing sporadic errors when running the larger collatz workunits.

demik
Avatar
Send message
Joined: 11 Mar 12
Posts: 2
Credit: 127,744,022
RAC: 0
Message 14221 - Posted: 12 Jun 2012, 6:33:52 UTC

Wow, nice job !

On an iMac with a Radeon 5670 (host 94626), mini_collatz went from about 4800 seconds to 1400 seconds. Thats a 3x speedup !

zombie67 [MM]
Volunteer tester
Avatar
Send message
Joined: 3 Jul 09
Posts: 156
Credit: 612,750,506
RAC: 241
Message 14228 - Posted: 12 Jun 2012, 23:45:50 UTC
Last modified: 12 Jun 2012, 23:47:50 UTC

Lag has become a problem on my ATI mac.

FWIW, run time came down from 3400 to 1300 seconds.
____________
Dublin, California
Team: SETI.USA

Jon Fox
Send message
Joined: 6 Sep 09
Posts: 36
Credit: 351,669,263
RAC: 262,860
Message 14229 - Posted: 13 Jun 2012, 4:18:47 UTC

Tue Jun 12 18:09:00 2012 | | OS: Mac OS X 10.7.4 (Darwin 11.4.0)
Tue Jun 12 18:09:00 2012 | | Memory: 12.00 GB physical, 894.95 GB virtual
Tue Jun 12 18:09:00 2012 | | OpenCL: ATI GPU 0: ATI Radeon HD 6770M (driver version 1.0, device version OpenCL 1.1, 512MB, 512MB available)


Yes, i'm seeing significant frame lag on all windowed functions with a very significant lag in any video playback (50-75% frame drop rates).

I haven't compared runtime performance yet but will report that as well.

--
Jon

Jon Fox
Send message
Joined: 6 Sep 09
Posts: 36
Credit: 351,669,263
RAC: 262,860
Message 14233 - Posted: 13 Jun 2012, 12:38:29 UTC - in response to Message 14229.
Last modified: 13 Jun 2012, 12:40:29 UTC

Looking at recent results run times are 40-45% of the 3.06 version.

--
Jon

Profile Slicker
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 11 Jun 09
Posts: 2525
Credit: 740,580,099
RAC: 1
Message 14235 - Posted: 13 Jun 2012, 14:42:30 UTC
Last modified: 13 Jun 2012, 16:02:40 UTC

With OpenCL, it is very hard to find the best settings for both crunching speed and video response, especially settings that work on all GPUs - both nVidia and AMD. Settings that work well on one machine cause another to have slow response. If I used settings that worked on an 8400 GS, then the speed would go back down to the same as the 3.06 version.


The following app info file should give better video response and you can play with the settings to find what works best for you. If everyone posts what settings work well for them, I can have the BOINC scheduler make those the default settings when sending the WU.

The command line settings are:

I = items per kernel (default is 1048576 but can be reduced to as little as 16384; it must be divisible by 16384; hint powers of 2 work well)

K = kernels per reduction (default is 64)

S = milliseconds to sleep while waiting for the kernels to finish

T = items per workgroup (default is auto); if used, it should be a multiple of 32 for nVidia and a multiple of 64 for AMD. 256 is probably the max for both nVidia and AMD. You might be able to use 512 for high end nVidia GPUs.

On Windows, using values too high for I,K, or T crash the video driver and with the latest nVidia drivers it requires a COLD reboot to recover. On OS X, using values too large can cause video repsponse to be so bad that you think the machine is hung (e.g. takes 30 seconds or longer for each mouse click to register).

<app_info>
<app>
<name>collatz</name>
<user_friendly_name>collatz</user_friendly_name>
</app>
<file_info>
<name>collatz_3.10_x86_64-apple-darwin__opencl_osx</name>
<executable/>
</file_info>
<app_version>
<app_name>collatz</app_name>
<version_num>310</version_num>
<flops>1.0e11</flops>
<api_version>7.0.28</api_version>
<coproc>
<type>ATI</type>
<count>1.0</count>
</coproc>
<plan_class>opencl_osx</plan_class>
<avg_ncpus>0.01</avg_ncpus>
<max_ncpus>1.0</max_ncpus>
<cmdline>I524288 K128 S1</cmdline>
<file_ref> <file_name>collatz_3.10_x86_64-apple-darwin__opencl_osx</file_name>
<main_program/>
</file_ref>
</app_version>
<app>
<name>mini_collatz</name>
<user_friendly_name>mini_collatz</user_friendly_name>
</app>
<file_info>
<name>collatz_2.03_x86_64-apple-darwin</name>
<executable/>
</file_info>
<app_version>
<app_name>mini_collatz</app_name>
<version_num>203</version_num>
<avg_ncpus>1.00</avg_ncpus>
<max_ncpus>1.00</max_ncpus>
<file_ref>
<file_name>collatz_2.03_x86_64-apple-darwin</file_name>
<main_program/>
</file_ref>
</app_version>
</app_info>


Note: Since installing the app info, BOINC won't download any work. Seems to be a bug in 7.x.x with anonymouse platforms.

Profile Slicker
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 11 Jun 09
Posts: 2525
Credit: 740,580,099
RAC: 1
Message 14242 - Posted: 13 Jun 2012, 20:21:23 UTC

Note: If you have an nVidia GPU, change <type>ATI</type>
in the coproc section above to be <type>CUDA</type>

[B@H] tomcat
Send message
Joined: 8 Jan 12
Posts: 2
Credit: 3,612,846
RAC: 0
Message 14269 - Posted: 16 Jun 2012, 8:56:08 UTC

Sorry I would prefer to report better news, I appreciate the big work you do and I can imagine how disappointing it may be to get only complaining.
I still have problems with the app. I'm not sure if I could do anything.
two issues:

1.) If the app is paused, most time the result is not valid.
(see: [url]http://boinc.thesonntags.com/collatz/result.php?resultid=118760490
[/url] for an example)

2.) I get messages to update the driver:

Collatz Conjecture: Motice from server
ATI GPU: auf neuesten Treiber aktualisieren, um die GPU diese Computers nutzen zu können.


How can I upgrade the driver?, - AFAIK Mac drive is coming from OS
What can I do.

Because the Mac stalls if GPU is running everytime I changed the setting to pause gpu if computer is in use
- which results in more invalid results, even if calculating long lasting collatz (see 1)

Any hints what I can do or where I can find some instrcution, are welcome as I' have insufficient knowledge about BOINC and GPU.



Bernd Schnitker
Send message
Joined: 27 Jun 10
Posts: 15
Credit: 1,598,649
RAC: 0
Message 14392 - Posted: 7 Jul 2012, 19:27:46 UTC - in response to Message 14269.

Sorry I would prefer to report better news, I appreciate the big work you do and I can imagine how disappointing it may be to get only complaining.
I still have problems with the app. I'm not sure if I could do anything.
two issues:

1.) If the app is paused, most time the result is not valid.
(see: [url]http://boinc.thesonntags.com/collatz/result.php?resultid=118760490
[/url] for an example)

2.) I get messages to update the driver:
Collatz Conjecture: Motice from server
ATI GPU: auf neuesten Treiber aktualisieren, um die GPU diese Computers nutzen zu können.


How can I upgrade the driver?, - AFAIK Mac drive is coming from OS
What can I do.

Because the Mac stalls if GPU is running everytime I changed the setting to pause gpu if computer is in use
- which results in more invalid results, even if calculating long lasting collatz (see 1)

Any hints what I can do or where I can find some instrcution, are welcome as I' have insufficient knowledge about BOINC and GPU.




I know that for NVIDIA GPUs you can get newer drivers on the dev website even for OSX. I have an older Mac mini (2010) and I can manually get newer drivers for my integrated 320M from the Nvidia website. I would look around the ATI/AMD website for a dev forum for Open CL.


Post to thread

Message boards : News : New MAC OS X OpenCL Version


Main page · Your account · Message boards


Copyright © 2018 Jon Sonntag; All rights reserved.