Jump to content

OpenCL Oceanwave & Bandwidth Bench - 07. March 2013

OpenCL AMD NVIDIA

  • Please log in to reply
343 replies to this topic

#181
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Not Telling
moved over to 10.8...can't run the benchmark now...tried the opencl fix from before...but still errors... :hammer:
Edit: actually installing the bundle after patching helps :thumbsup_anim:
here's my results
[codebox]INITIALISING: 1 OpenCL platform found!
[Platform 0]
Name: Apple
Vendor: Apple
Version: OpenCL 1.2 (Jun 20 2012 14:18:19)
Profile: FULL_PROFILE
Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event

[OpenCL-only Context]
2 OpenCL devices found!
[Device 0]
Name: Intel® Core™2 Duo CPU E6550 @ 2.33GHz
Vendor: Intel
Type: CPU
Device Version: OpenCL 1.2
Driver Version: 1.1
Compute Units: 2
Work Group Size: 1024
Clock: 2327 MHz
Global Memory (Total): 8192 MB
Global Memory (Host): 8192 MB
Global Memory (PCIe): 0 MB
Local Memory: 32 KB
Cache Size: 0.0625 KB
Cache Line Size: 4194304 Bytes
Available: Yes
Double-Precision: Yes
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_fp64
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_int64_base_atomics
cl_khr_int64_extended_atomics
cl_khr_3d_image_writes
cl_APPLE_fp64_basic_ops
cl_APPLE_fixed_alpha_channel_orders
cl_APPLE_biased_fixed_point_image_formats
[Device 1]
Name: GeForce GT 520
Vendor: NVIDIA
Type: GPU
Device Version: OpenCL 1.1
Driver Version: CLH 1.0
Compute Units: 1
Work Group Size: 1024
Clock: 1620 MHz
Global Memory: 1024 MB
Local Memory: 48 KB
Cache Size: 0 KB
Cache Line Size: 0 Bytes
Available: Yes
Double-Precision: No
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_byte_addressable_store
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_APPLE_fp64_basic_ops
[shared OpenCL+OpenGL Context]
2 OpenCL devices found!
[Device 0]
Name: GeForce GT 520
Vendor: NVIDIA
Type: GPU
Device Version: OpenCL 1.1
Driver Version: CLH 1.0
Compute Units: 1
Work Group Size: 1024
Clock: 1620 MHz
Global Memory: 1024 MB
Local Memory: 48 KB
Cache Size: 0 KB
Cache Line Size: 0 Bytes
Available: Yes
Double-Precision: No
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_byte_addressable_store
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_APPLE_fp64_basic_ops
[Device 1]
Name: Intel® Core™2 Duo CPU E6550 @ 2.33GHz
Vendor: Intel
Type: CPU
Device Version: OpenCL 1.2
Driver Version: 1.1
Compute Units: 2
Work Group Size: 1024
Clock: 2327 MHz
Global Memory (Total): 8192 MB
Global Memory (Host): 8192 MB
Global Memory (PCIe): 0 MB
Local Memory: 32 KB
Cache Size: 0.0625 KB
Cache Line Size: 4194304 Bytes
Available: Yes
Double-Precision: Yes
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_fp64
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_int64_base_atomics
cl_khr_int64_extended_atomics
cl_khr_3d_image_writes
cl_APPLE_fp64_basic_ops
cl_APPLE_fixed_alpha_channel_orders
cl_APPLE_biased_fixed_point_image_formats
[/codebox]

Edited by robertx, 09 August 2012 - 02:13 AM.


#182
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Not Telling
using the newest retail nvidia drivers for 10.8.1 i get this error again..."ERROR: Failed to initialize OpenCL= mostly by OpenCL driver didnt know your gpu, like Fermi GTX.... which need to be patched"

#183
p.H

p.H

    InsanelyMac Legend

  • FAQ Team
  • 743 posts
  • Gender:Male
  • Interests:Hackintosh & NBA & COD4 promod

using the newest retail nvidia drivers for 10.8.1 i get this error again..."ERROR: Failed to initialize OpenCL= mostly by OpenCL driver didnt know your gpu, like Fermi GTX.... which need to be patched"

main thread has a way to fix this.
patch

#184
choocha777

choocha777

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
  • Gender:Male
  • Location:Moscow, Russia
3930K 4.2GHz + GTX680
Attached File  Screen Shot.jpg   528.34KB   41 downloads

#185
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Not Telling
...cannot apply patch...search and replace 78 E8 83 F8 02 7C 11 with 78 E8 83 F8 03 7C 11 (not found in GeforceGLDriver version 8.4.4 304.00.00f20)...also not found...8B 87 1C 0C 00 00 89 06 8B 87 20 0C 00 00 89 02 ( in GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib)

#186
choocha777

choocha777

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
  • Gender:Male
  • Location:Moscow, Russia

... which need to be patched"

This one
/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
http://netkas.org/?p=1161
for ML (10.8.1)
find 3d 01 00 00 80 73 e7
replace with 3d 01 00 00 80 90 90

AND!!!
find ff 50 68 4c 39 e0 73 e7
replace with ff 50 68 4c 39 e0 90 90


Only this worked for me... :wink2: despite the warning "... P.S. doesnt applies to gtx670/gtx680, they have a different problem"

#187
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Not Telling

This one
/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
http://netkas.org/?p=1161
for ML (10.8.1)
find 3d 01 00 00 80 73 e7
replace with 3d 01 00 00 80 90 90

AND!!!
find ff 50 68 4c 39 e0 73 e7
replace with ff 50 68 4c 39 e0 90 90


Only this worked for me... :wink2: despite the warning "... P.S. doesnt applies to gtx670/gtx680, they have a different problem"

...tried that as well...no luck...

#188
choocha777

choocha777

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
  • Gender:Male
  • Location:Moscow, Russia
Try my file directly

UP
Sorry ... I did not notice ))))) your video ATI Radeon

Attached Files



#189
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Not Telling

Sorry ... I did not notice ))))) your video ATI Radeon

...i've been swapping gfx cards...zotac geforce gt520 is my current card...i'll try the attachment...)
edit: no go...same result....(ephemeral opencl screensaver works with either file)

Edited by robertx, 12 September 2012 - 08:08 PM.


#190
choocha777

choocha777

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
  • Gender:Male
  • Location:Moscow, Russia
have you tried patches from ##### 5.0.2 ?

#191
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Not Telling

have you tried patches from ##### 5.0.2 ?

...as i'm not sure what those patches are/do, no... :smoke:

#192
choocha777

choocha777

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
  • Gender:Male
  • Location:Moscow, Russia
... oh... just the same thing, but in a more pleasant packaging )))

#193
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Not Telling
...from way back in the "deadmoo" days...pleasant packaging scares me...i like to look under the hood...

and another check...displacement, run from terminal
[codebox]Downloads/Release/displacement
----------------------------------------------------------------------
Setting up Graphics...
----------------------------------------------------------------------
Creating Shadow FrameBuffer...
Creating Jitter Texture...
Loading Light Probe "stpeters_probe.pfm"
Creating Light Probe Texture (1500 x 1500)....
----------------------------------------------------------------------
Filling Sphere 1040384 bytes 65024 elements (127 x 512) => (127 x 512)
Loading Shader Program "fresnel.vert"...
Loading Shader Program "fresnel.frag"...
Loading Shader Program "phong.vert"...
Loading Shader Program "phong.frag"...
Loading Shader Program "skybox.vert"...
Loading Shader Program "skybox.frag"...
----------------------------------------------------------------------
Setting up Compute...
----------------------------------------------------------------------
Using active OpenGL context...
----------------------------------------------------------------------
Connecting to NVIDIA GeForce GT 520...
----------------------------------------------------------------------
Allocating buffers on compute device...
----------------------------------------------------------------------
Loading kernel source from file 'displacement_kernel.cl'...
----------------------------------------------------------------------
Building compute program...
OpenCL Build Warning : Compiler build log:
<program source>:107:5: warning: no previous prototype for function 'mod'
int mod(int x, int a)
^
<program source>:116:7: warning: no previous prototype for function 'mix1d'
float mix1d(float a, float b, float t)
^
<program source>:124:8: warning: no previous prototype for function 'mix2d'
float2 mix2d(float2 a, float2 b, float t)
^
<program source>:132:8: warning: no previous prototype for function 'mix3d'
float4 mix3d(float4 a, float4 b, float t)
^
<program source>:140:7: warning: no previous prototype for function 'smooth'
float smooth(float t)
^
<program source>:145:5: warning: no previous prototype for function 'lattice3d'
int lattice3d(int4 i)
^
<program source>:150:7: warning: no previous prototype for function 'gradient3d'
float gradient3d(int4 i, float4 v)
^
<program source>:157:8: warning: no previous prototype for function 'normalized'
float4 normalized(float4 v)
^
<program source>:166:7: warning: no previous prototype for function 'gradient_noise3d'
float gradient_noise3d(float4 position)
^
<program source>:214:7: warning: no previous prototype for function 'ridgedmultifractal3d'
float ridgedmultifractal3d(
^
<program source>:223:8: warning: unused variable 'remainder'
float remainder = 0.0f;
^
<program source>:224:8: warning: unused variable 'sample'
float sample = 0.0f;
^
<program source>:252:8: warning: no previous prototype for function 'cross3'
float4 cross3(float4 va, float4 vb)
^
<program source>:280:14: warning: comparison of integers of different signs: 'int' and 'uint' (aka 'unsigned int')
if(index >= count)
~~~~~ ^ ~~~~~
<program source>:283:10: warning: unused variable 'di'
int2 di = (int2)(tx, ty);
^
<program source>:275:9: warning: unused variable 'ix'
int ix = (int) dimx;
^

Break on OpenCLWarningBreak to debug.
Creating kernel 'displace'...
Maximum Workgroup Size '768'
----------------------------------------------------------------------
Starting event loop...
----------------------------------------------------------------------
Leslies-Mac-Pro:Release leslie$
[/codebox]
... :2cents:

#194
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
Yep, it can be that some OpenCL Apps work and other not when some minor OpenCL bugs are in the OpenCL driver.
Because the native gpu code is compiled at runtime (for YOUR gpu type on YOUR system) and not precompiled within the OpenCL App suchs OpenCL driver (exactly OpenCL compiler) bugs come up at runtime.
Because OpenCL compiler must handle lots of much different gpu types and also two vendors (AMD+Nvidia) its very complex and so some gpu types may fail on some OpemCL source code and work with other source code.
An very small bug in the compiler may fail in usage for some gpu types.
At the beginning of OpenCL mostly AMD gpus had lots of probs with OpenCL (mostly non of the OpenCL sources didnt work). Now the problems are much less on both vendors, but are there because of rising newer gpu types every half year.

That reason (OpenCL must handle lots of gpu types + may fail on some in rare code cases) is one of the reason why OpenCL isnt used much today compared to the Nvidia CUDA, which is limited to gpu types from Nvidia - and there are already lots enough (without AMD!) gpus from them to handle.
OpenCL is really great for the main stream market and has future, Nvidia is more for the highend market (save for highend computing with very expensive gpu computing cards).
Last but not least: The available OPenCL benches, beside LUxmark, are all from Apple itself!
But they will NOT have any high priority to fix OpenCL problems (together with AMD/NVIDIA engineers) for gpu types they dont sell (already). So upcoming GTX cards from Apple may solve such gpu realted probs in the future. Now they will only fix probs with gpu types they already sell+use in real macs.


You may try to install new Nvidia drivers (10. sept. / OpenCL is within that DL) and maybe it helps. (10.8.1 is needed, Pacifist is needed if installer complains non mac pro). For sure they also need patched to get OpenCL active on unsupported gpus!

http://www.insanelym...howtopic=282729

#195
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Not Telling
thanks mitch...i rolled back to the stock 10.8.1 Apple drivers (which i did manage to patch) :angel_not:

#196
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
OpenCL - today is not really needed. So no prob if some OpenCL code isnt working or even OpenCL isnt active.

#197
BALDY_MAN

BALDY_MAN

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 276 posts
  • Gender:Male
  • Location:uk
Open CL Oceanwave. Gigabyte windforce 670 GTX. 1070.8 fps

#198
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
Great - my 9600 GT oldie only gets 83 fps ;)

#199
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Not Telling
got it working now with the new nvidia drivers...an opencl patch can be found here http://www.insanelym...ic=266318&st=80


my humble results...

Attached File  GT520.png   385.18KB   9 downloads

#200
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
Yep, but GT520 is more an low end gpu, even newer.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy