+- +-
Say hello if visiting :) by Gecko
11 Jan 2023, 07:43:05 pm

Seti is down again by Mike
09 Aug 2017, 10:02:44 am

Some considerations regarding OpenCL MultiBeam app tuning from algorithm view by Raistmer
11 Dec 2016, 06:30:56 am

Loading APU to the limit: performance considerations by Mike
05 Nov 2016, 06:49:26 am

Better sleep on Windows - new round by Raistmer
26 Aug 2016, 02:02:31 pm

Author Topic: OSX Multibeam OpenCL question  (Read 48031 times)

Offline Joe Fox

  • Volunteer Developer
  • Knight o' The Realm
  • *****
  • Posts: 84
Re: OSX Multibeam OpenCL question
« Reply #15 on: 10 Oct 2014, 06:46:52 pm »
Oh, and as far as execution time with the reference result set. I will go back through and build CPU only, then GPU and report back here with the processing times.

-Joe

Offline Urs Echternacht

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 4121
  • ++
Re: OSX Multibeam OpenCL question
« Reply #16 on: 10 Oct 2014, 07:01:31 pm »
Your better of to check which hardware the new Mac Pro workstations contain :
https://www.apple.com/mac-pro/

So far we have build separate apps, one per device vendor.
_\|/_
U r s

Offline Joe Fox

  • Volunteer Developer
  • Knight o' The Realm
  • *****
  • Posts: 84
Re: OSX Multibeam OpenCL question
« Reply #17 on: 10 Oct 2014, 07:04:23 pm »
Ok, so boinc has the ability to distribute the correct client for not just the OS platform, but other parameters like gpu vendor? That's cool

-Joe

Offline Joe Fox

  • Volunteer Developer
  • Knight o' The Realm
  • *****
  • Posts: 84
Re: OSX Multibeam OpenCL question
« Reply #18 on: 10 Oct 2014, 07:08:01 pm »
oh, and looks like the mac pro has dual AMD D300s or D500s, not nvidia. My mistake.

Offline Joe Fox

  • Volunteer Developer
  • Knight o' The Realm
  • *****
  • Posts: 84
Re: OSX Multibeam OpenCL question
« Reply #19 on: 10 Oct 2014, 07:16:27 pm »
Looks like there may be another problem. My binary runs successfully, but doesn't produce valid results. Attached is the results.sah and stderr.txt from my latest run. For what it is worth this ran in 14 minutes and 10 seconds.


Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: OSX Multibeam OpenCL question
« Reply #20 on: 11 Oct 2014, 02:34:15 am »
Ah, I examined the svn diff, and looks like the code is now wrapped with an ifdef USE_OPENCL_INTEL. When I set that macro in the CFLAGS, then my binary works again. Thank you!

That leads me to a question. What should the USE_OPENCL_??? macros be set at for a wide distribution build, like a beta build? For my local machine, which has an Intel GPU, the USE_OPENCL_INTEL makes sense, but what about for the new Mac Pro desktop workstations? They have an nvidia GPU if I recall correctly. How would a widely distributed binary that was compiled with USE_OPENCL_INTEL work for the nvidia system?

Thanks for the assistance!
-Joe

Currently we use 3 separate binaries  for different GPU types. There are some pecularities for each GPU vendor so I consider easier to maintain 3 separate optimized builds instead of universal under-optimized one.

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: OSX Multibeam OpenCL question
« Reply #21 on: 11 Oct 2014, 09:13:37 am »
Looks like there may be another problem. My binary runs successfully, but doesn't produce valid results. Attached is the results.sah and stderr.txt from my latest run. For what it is worth this ran in 14 minutes and 10 seconds.



Glancing on your first log it seems you missed correct set of defines.
I'll post what I use for Windows here, maybe Urs will correct it for OS X specific.

Offline Joe Fox

  • Volunteer Developer
  • Knight o' The Realm
  • *****
  • Posts: 84
Re: OSX Multibeam OpenCL question
« Reply #22 on: 11 Oct 2014, 10:12:47 am »
Regarding maintaining the different binaries, that makes sense. Regarding the incorrect defines, thanks. I'll go back to the OSX list, as well as compare to the windows build list that you send.

Thanks
-Joe

Offline Urs Echternacht

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 4121
  • ++
Re: OSX Multibeam OpenCL question
« Reply #23 on: 11 Oct 2014, 10:14:57 am »
Looks like there may be another problem. My binary runs successfully, but doesn't produce valid results. Attached is the results.sah and stderr.txt from my latest run. For what it is worth this ran in 14 minutes and 10 seconds.
The "reference_work_unit.sah" in the "test_workunits" directory seems to be an old v6 workunit without autocorr-signal detection. Instead, try to use "refquick.wu" or "reftiny.wu" from "DynWUs" directory for quick testing.
Additionally i've tried to adapt the readme (see attached) you have been referring your work to for Intel GPU builds. You may want to compare the "-D" commandline switches (you used the term "macro" before) , also called "preprocessor directives", from your build to what is in there. Especially "-DSETI7" is important for good results.
_\|/_
U r s

Offline Joe Fox

  • Volunteer Developer
  • Knight o' The Realm
  • *****
  • Posts: 84
Re: OSX Multibeam OpenCL question
« Reply #24 on: 11 Oct 2014, 10:34:33 am »
Thank you Urs, I will go through these and report back.

Offline Joe Fox

  • Volunteer Developer
  • Knight o' The Realm
  • *****
  • Posts: 84
Re: OSX Multibeam OpenCL question
« Reply #25 on: 11 Oct 2014, 10:39:53 am »
The "reference_work_unit.sah" in the "test_workunits" directory seems to be an old v6 workunit without autocorr-signal detection. Instead, try to use "refquick.wu" or "reftiny.wu" from "DynWUs" directory for quick testing.

I don't see those files inside of DynWUs. I only have the following:
PG0009.wu
PG0395.wu
PG0444.wu
PG1327.wu
init_data.xml
PG0009_v7.wu
PG0395_v7.wu
PG0444_v7.wu
PG1327_v7.wu

Any advice?

-Joe

Offline Joe Fox

  • Volunteer Developer
  • Knight o' The Realm
  • *****
  • Posts: 84
Re: OSX Multibeam OpenCL question
« Reply #26 on: 11 Oct 2014, 11:04:59 am »
Here is what I found with using one of the DynWUs.

I used "PG1327_v7.wu"

and got the attached results.

Elapsed time was 6 minutes and seconds 37

How can I test the results for accuracy?

Thanks
-Joe

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: OSX Multibeam OpenCL question
« Reply #27 on: 11 Oct 2014, 12:59:53 pm »
list of defines I used in windows build:
OCL_CHIRP3;USE_OPENCL;ATI_OS_WIN;SETI7;USE_FFTW;WIN32;_WIN32;_MT;NDEBUG;_WINDOWS;CLIENT;_CONSOLE;USE_I386_OPTIMIZATIONS;USE_I386_XEON;USE_SSE;USE_AMD

OCL_CHIRP3 is required  for best precision, USE_FFTW - for CPU FFT when needed, SETI7 as Urs already described required too.

Offline Urs Echternacht

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 4121
  • ++
Re: OSX Multibeam OpenCL question
« Reply #28 on: 11 Oct 2014, 01:25:52 pm »
In lunatics Downloads you will find some Tools, like more testworkunits and a benchmark-script for "Terminal" usage. That benchmark-package contains another tool for result comparison (rescmp4_d, d for Darwin) That comparison tool you could use also standalone if you have two results to compare (e.g. result_a.sah, result_b.sah).
If you start the comparison tool without arguments you get some howto use.
_\|/_
U r s

Offline Joe Fox

  • Volunteer Developer
  • Knight o' The Realm
  • *****
  • Posts: 84
Re: OSX Multibeam OpenCL question
« Reply #29 on: 14 Oct 2014, 01:28:24 pm »
One interesting thing that I have found in my testing of the new builds. Only the build with USE_OPENCL_INTEL works correctly, regardless of the video card manufacturer used for the mac. I have tested on a new Mac Pro with dual  AMD D700s, a MacBook Pro with an Intel Iris, and an older MacBook Pro with an nvidia. The USE_OPENCL_HD5xxx build would fail to compike the .cl files, and the USE_OPENCL_NV build would fail with the original error I ran in to (CL error -49). My conclusion is that the macs are using intel opencl drivers. Does this seem reasonable?


 

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?
Members
Total Members: 97
Latest: ToeBee
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 59559
Total Topics: 1672
Most Online Today: 18
Most Online Ever: 983
(20 Jan 2020, 03:17:55 pm)
Users Online
Members: 0
Guests: 12
Total: 12
Powered by EzPortal