MAC OS X OpenCL Application Added
log in

Advanced search

Message boards : News : MAC OS X OpenCL Application Added

1 · 2 · Next
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 13227 - Posted: 5 Jan 2012, 20:17:19 UTC

An OpenCL application for Mac OS X 10.6 (or higher) is now avaialable. It should run on both nVidia and AMD graphics cards. Please be aware that checkpointing has not been fully tested.

juice3
Send message
Joined: 6 Dec 11
Posts: 19
Credit: 971,466
RAC: 0
Message 13231 - Posted: 6 Jan 2012, 1:53:51 UTC

Putting one of my ATI/Nvidia mix Xeon Crunchers on it for 24 hours to see what she does ;)

http://boincstats.com/stats/boinc_host_graph.php?pr=bo&id=71cef6576608b4963918af2f6c051484

juice3
Send message
Joined: 6 Dec 11
Posts: 19
Credit: 971,466
RAC: 0
Message 13232 - Posted: 6 Jan 2012, 4:20:14 UTC

No longer getting WU's, Out of them already?

juice3
Send message
Joined: 6 Dec 11
Posts: 19
Credit: 971,466
RAC: 0
Message 13233 - Posted: 6 Jan 2012, 4:25:22 UTC

One of my 2011 Mini's:


Thu Jan 5 23:08:24 2012 | | OpenCL: ATI GPU 0: ATI Radeon HD 6630M (driver version 1.0, device version OpenCL 1.1, 256MB)
Thu Jan 5 23:08:24 2012 | | ATI GPU is OpenCL-capable


And then I get:


Thu Jan 5 23:21:20 2012 | Collatz Conjecture | Message from server: ATI GPU: Upgrade to the latest driver to process tasks using your computer's GPU


juice3
Send message
Joined: 6 Dec 11
Posts: 19
Credit: 971,466
RAC: 0
Message 13234 - Posted: 6 Jan 2012, 5:07:55 UTC

Thu Jan 5 23:49:22 2012 | | OpenCL: ATI GPU 0: ATI Radeon HD 6750M (driver version 1.0, device version OpenCL 1.1, 1024MB)
Thu Jan 5 23:49:22 2012 | | ATI GPU is OpenCL-capable



Thu Jan 5 23:49:52 2012 | Collatz Conjecture | Message from server: ATI GPU: Upgrade to the latest driver to process tasks using your computer's GPU



We have 50+ of these exact systems that sit around from 5pm-8am and Fri-Monday.

Let's get em Crunching!

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 13237 - Posted: 6 Jan 2012, 15:21:57 UTC - in response to Message 13234.

Thu Jan 5 23:49:22 2012 | | OpenCL: ATI GPU 0: ATI Radeon HD 6750M (driver version 1.0, device version OpenCL 1.1, 1024MB)
Thu Jan 5 23:49:22 2012 | | ATI GPU is OpenCL-capable



Thu Jan 5 23:49:52 2012 | Collatz Conjecture | Message from server: ATI GPU: Upgrade to the latest driver to process tasks using your computer's GPU



We have 50+ of these exact systems that sit around from 5pm-8am and Fri-Monday.

Let's get em Crunching!


Rather than spend several weeks getting the latest version of the server tweaked the way I want it, I just added OpenCL support to the older version. I only added support for Darwin 10.6.x and 10.7.x and not 11.x.x. You should be getting ATI work OK now.

juice3
Send message
Joined: 6 Dec 11
Posts: 19
Credit: 971,466
RAC: 0
Message 13239 - Posted: 6 Jan 2012, 17:42:14 UTC

It pulled down one WU on this system and I'm at:

Ready to Start (Scheduler Wait)

I have everything on Run Always and Boinc is the only application open.

Thoughts?

juice3
Send message
Joined: 6 Dec 11
Posts: 19
Credit: 971,466
RAC: 0
Message 13240 - Posted: 6 Jan 2012, 17:46:26 UTC
Last modified: 6 Jan 2012, 18:35:36 UTC

I was running BOINC Manager 7.0.2 at the time. I'm going to download the Current Stable (Which has various OpenCL issues on some cards) and the 7.0.3

I'll report back.

Edit: 6.12.35 doesn't recognize a useable GPU, 7.0.3 gave me the following:


Fri Jan 6 13:19:51 2012 | Collatz Conjecture | Scheduler request completed: got 0 new tasks
Fri Jan 6 13:19:51 2012 | Collatz Conjecture | Didn't resend lost task collatz_2373364247555992168808_824633720832_0 (expired)
Fri Jan 6 13:19:51 2012 | Collatz Conjecture | Not sending work - last request too recent: 59 sec


Edit (2): I uninstalled Boinc, and removed all the data directories and then reinstaleld 7.0.3, this is the Event Log results. I'm sitting at scheduler wait for the only WU I got.


Fri Jan 6 13:33:26 2012 | Collatz Conjecture | Sending scheduler request: To fetch work.
Fri Jan 6 13:33:26 2012 | Collatz Conjecture | Requesting new tasks for ATI
Fri Jan 6 13:33:28 2012 | Collatz Conjecture | Scheduler request completed: got 1 new tasks
Fri Jan 6 13:33:28 2012 | Collatz Conjecture | Message from server: ATI GPU: Upgrade to the latest driver to process tasks using your computer's GPU
Fri Jan 6 13:33:30 2012 | Collatz Conjecture | Started download of mini_collatz_3.03_x86_64-apple-darwin__opencl_osx
Fri Jan 6 13:33:30 2012 | Collatz Conjecture | Started download of collatz_2373365068169623611752_103079215104
Fri Jan 6 13:33:31 2012 | Collatz Conjecture | Finished download of collatz_2373365068169623611752_103079215104
Fri Jan 6 13:33:36 2012 | Collatz Conjecture | Finished download of mini_collatz_3.03_x86_64-apple-darwin__opencl_osx

juice3
Send message
Joined: 6 Dec 11
Posts: 19
Credit: 971,466
RAC: 0
Message 13241 - Posted: 6 Jan 2012, 20:20:07 UTC - in response to Message 13237.

Rather than spend several weeks getting the latest version of the server tweaked the way I want it, I just added OpenCL support to the older version. I only added support for Darwin 10.6.x and 10.7.x and not 11.x.x. You should be getting ATI work OK now.



Ok I re read what you wrote a few times. So what your saying is that anything below Lion (Darwin 11.x.x) doesn't support this?

You need 11.x.x (Lion) to get OpenCL support for most high end GPUs.

Profile [AF>Le_Pommier>MacBidouille.com]Prof
Send message
Joined: 27 Dec 11
Posts: 22
Credit: 1,445,444,345
RAC: 233,718
Message 13242 - Posted: 6 Jan 2012, 20:59:22 UTC
Last modified: 6 Jan 2012, 21:04:00 UTC

Coooollll!!!!
But there is a problem....
Download of app & WUs is ok but after that in the manager in the title of the work unit it's written :"awaiting planning"???(en attente de planification in french)
What's this???

Edit: Same message with BM 7.0.3 under OS X 10.6.8 or 10.7.2

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 13243 - Posted: 6 Jan 2012, 21:43:47 UTC - in response to Message 13241.

Rather than spend several weeks getting the latest version of the server tweaked the way I want it, I just added OpenCL support to the older version. I only added support for Darwin 10.6.x and 10.7.x and not 11.x.x. You should be getting ATI work OK now.



Ok I re read what you wrote a few times. So what your saying is that anything below Lion (Darwin 11.x.x) doesn't support this?

You need 11.x.x (Lion) to get OpenCL support for most high end GPUs.


The server was previously set to allow 10.6.x and 10.7.x. 11.x was not included. Not it is. Anything from 10.6.x or higher (which now includes 11.x.x) should work.

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 13245 - Posted: 6 Jan 2012, 23:31:05 UTC

Version 3.05 has been installed for OpenCL and OS X which should fix the issues with OS X Lion. Both nVidia and AMD will hopefully now work properly.

Thanks to juice3 for all his help this afternoon which really helped with finding the problem (e.g. omitting -Werror when building the OpenCL kernel in Lion to avoid the "no previous prototype for function" error.)

juice3
Send message
Joined: 6 Dec 11
Posts: 19
Credit: 971,466
RAC: 0
Message 13247 - Posted: 7 Jan 2012, 4:14:07 UTC

Glad to help. The problem I'm having now is that in 10.7.2 with Several Different Versions of the BOINC software it reports my 6750M has not having enough memory to start the WU.

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 13248 - Posted: 7 Jan 2012, 5:06:13 UTC

Maybe the totally experimental version 7.0.7 from http://boinc.berkeley.edu/dl/ will work.

http://boinc.berkeley.edu/dl/boinc_7.0.7_i686-apple-darwin.zip

The app requests 100MB of GPU RAM so I wonder whether the issue is whether the ATI cards are reporting the correct amount of RAM to the BOINC client.

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 13249 - Posted: 7 Jan 2012, 5:09:22 UTC

It looks like the BOINC client is showing the megabytes instead of bytes:


<coprocs>
<coproc_ati>
<count>1</count>
<name></name>
<available_ram>0.000000</available_ram>
<have_cal>0</have_cal>
<have_opencl>1</have_opencl>
<req_secs>0.000000</req_secs>
<req_instances>0.000000</req_instances>
<estimated_delay>0.000000</estimated_delay>
<peak_flops>348000000000.000000</peak_flops>
<CALVersion></CALVersion>
<target>0</target>
<localRAM>512</localRAM>
<uncachedRemoteRAM>0</uncachedRemoteRAM>
<cachedRemoteRAM>0</cachedRemoteRAM>
<engineClock>725</engineClock>
<memoryClock>0</memoryClock>
<wavefrontSize>0</wavefrontSize>
<numberOfSIMD>0</numberOfSIMD>
<doublePrecision>0</doublePrecision>
<pitch_alignment>0</pitch_alignment>
<surface_alignment>0</surface_alignment>
<maxResource1DWidth>0</maxResource1DWidth>
<maxResource2DWidth>0</maxResource2DWidth>
<maxResource2DHeight>0</maxResource2DHeight>
<coproc_opencl>
<name>ATI Radeon HD 6770M</name>
<vendor>AMD</vendor>
<vendor_id>16915200</vendor_id>
<available>1</available>
<half_fp_config>0</half_fp_config>
<single_fp_config>30</single_fp_config>
<double_fp_config>0</double_fp_config>
<endian_little>1</endian_little>
<execution_capabilities>1</execution_capabilities>
<extensions>cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes</extensions>
<global_mem_size>536870912</global_mem_size>
<local_mem_size>32768</local_mem_size>
<max_clock_frequency>725</max_clock_frequency>
<max_compute_units>6</max_compute_units>
<opencl_platform_version>OpenCL 1.1 (Jul 25 2011 15:56:09)</opencl_platform_version>
<opencl_device_version>OpenCL 1.1 </opencl_device_version>
<opencl_driver_version>1.0</opencl_driver_version>
</coproc_opencl>
</coproc_ati>
</coprocs>


I'll release a new scheduler tomorrow that uses 100 instead of 100*MEGA for the RAM size if the GPU request is for AMD on OS X.

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 13250 - Posted: 7 Jan 2012, 5:26:16 UTC - in response to Message 13249.

I'll release a new scheduler tomorrow that uses 100 instead of 100*MEGA for the RAM size if the GPU request is for AMD on OS X.


I went ahead and installed the new scheduler. If you have any WUs stuck in a "scheduler wait" state that won't start or that start over and over, go ahead and abort them as they will just timeout eventually anyway. The new ones that get downloaded should (hopefully) run OK.

juice3
Send message
Joined: 6 Dec 11
Posts: 19
Credit: 971,466
RAC: 0
Message 13251 - Posted: 7 Jan 2012, 7:51:03 UTC
Last modified: 7 Jan 2012, 8:36:54 UTC

I'll try it in five minutes.

Two systems:

ATI 6750M 1GB Dedicated: Scheduler Wait
ATI 6630M 256GB Dedicated: Scheduler Wait

From the 6750M System:

Sat Jan 7 03:35:50 2012 | Collatz Conjecture | [coproc] Insufficient ATI for collatz_2373374995213434202472_103079215104_0; need 1, available 0
Sat Jan 7 03:35:50 2012 | Collatz Conjecture | [coproc] some instances lack available memory

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 13254 - Posted: 7 Jan 2012, 14:32:10 UTC - in response to Message 13251.

I'll try it in five minutes.

Two systems:

ATI 6750M 1GB Dedicated: Scheduler Wait
ATI 6630M 256GB Dedicated: Scheduler Wait

From the 6750M System:

Sat Jan 7 03:35:50 2012 | Collatz Conjecture | [coproc] Insufficient ATI for collatz_2373374995213434202472_103079215104_0; need 1, available 0
Sat Jan 7 03:35:50 2012 | Collatz Conjecture | [coproc] some instances lack available memory


That is the same error people complained to the boinc_alpha mailing list about over a month ago. Wheels turn slowly in BOINCland.

Profile [AF>Le_Pommier>MacBidouille.com]Prof
Send message
Joined: 27 Dec 11
Posts: 22
Credit: 1,445,444,345
RAC: 233,718
Message 13255 - Posted: 7 Jan 2012, 14:40:34 UTC
Last modified: 7 Jan 2012, 15:23:51 UTC

Hi!

Same message than before with the new app version : scheduler wait!!

No more info...

OS X 10.7.2 BM 7.0.3.
Edit 16h23 : idem with BM 7.07.

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 13256 - Posted: 7 Jan 2012, 16:15:38 UTC

int nfree = 0;
for (i=0; i<cp->count; i++) {
if (cp->available_ram_unknown[i]) {
continue;
}
if (!cp->usage[i]) {
if (rp->avp->gpu_ram > cp->available_ram[i]) {
defer_sched = true;
continue;
};
nfree++;
}
}
if (nfree < usage) {
if (log_flags.coproc_debug) {
msg_printf(rp->project, MSG_INFO,
"[coproc] Insufficient %s for %s; need %d, available %d",
cp->type, rp->name, (int)usage, nfree
);
if (defer_sched) {
msg_printf(rp->project, MSG_INFO,
"[coproc] some instances lack available memory"
);
}
}
return false;
}



GPU reports 512 or 1024 as localRAM to the server but somehow, when it is time to start the WU, it reports that there is not enough memory available. On a card with 1024MB RAM and with the app set to use 100MB, I find that a little hard to believe.

So... how to fix it on the server since I can't force everyone's BOINC client to do the right thing? For now, I set the gpu_ram requirement to 0 for ATI on OS X for OpenCL. That's right. It is now a magical app that requires no memory whatsoever as far as the BOINC client is concerned. But, that way, it should always think it has enough free RAM to run. The new scheduler has been installed. So, once again, abort any stuck WUs and when you get new ones, they should run OK.

1 · 2 · Next
Post to thread

Message boards : News : MAC OS X OpenCL Application Added


Main page · Your account · Message boards


Copyright © 2018 Jon Sonntag; All rights reserved.