Jump to content

OpenCL Oceanwave Bench and (new) CompuBench CL


mitch_de
 Share

367 posts in this topic

Recommended Posts

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

Link to comment
Share on other sites

...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)

Link to comment
Share on other sites

... 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"

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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
Link to comment
Share on other sites

...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

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$

... :2cents:

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Yep, GT520 has good power consumtion. Only the VRAM bandwidth is low (64 Bit vs 128 /192 Bit others).

I also looking for some newer low end gpu - perhaps GT630 (similar speed as 9600GT, lower Watt). GT630OEM would be even better (much faster Kepler vs Fermi non OEM).

Link to comment
Share on other sites

  • 2 months later...

Nope - you have already patched for OpenCL available but the newer drivers fail in the code of Oceanwave.

Doesnt matter much if other OpenCL Apps run well.

Perhaps next drivers work well (after patching them also) with that Code.

In the past often (even OpenCL works in general) OceanWave shows now water reflections = driver bug.

Link to comment
Share on other sites

  • 1 month later...
 Share

×
×
  • Create New...