p.H Posted September 12, 2012 Share Posted September 12, 2012 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 More sharing options...
choocha777 Posted September 12, 2012 Share Posted September 12, 2012 3930K 4.2GHz + GTX680 Link to comment Share on other sites More sharing options...
RobertX Posted September 12, 2012 Share Posted September 12, 2012 ...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 More sharing options...
choocha777 Posted September 12, 2012 Share Posted September 12, 2012 ... 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 More sharing options...
RobertX Posted September 12, 2012 Share Posted September 12, 2012 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 More sharing options...
choocha777 Posted September 12, 2012 Share Posted September 12, 2012 Try my file directly UP Sorry ... I did not notice ))))) your video ATI Radeon OpenCL.zip Link to comment Share on other sites More sharing options...
RobertX Posted September 12, 2012 Share Posted September 12, 2012 (edited) 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 September 12, 2012 by robertx Link to comment Share on other sites More sharing options...
choocha777 Posted September 12, 2012 Share Posted September 12, 2012 have you tried patches from [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] 5.0.2 ? Link to comment Share on other sites More sharing options...
RobertX Posted September 12, 2012 Share Posted September 12, 2012 have you tried patches from [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] 5.0.2 ? ...as i'm not sure what those patches are/do, no... Link to comment Share on other sites More sharing options...
choocha777 Posted September 12, 2012 Share Posted September 12, 2012 ... oh... just the same thing, but in a more pleasant packaging ))) Link to comment Share on other sites More sharing options...
RobertX Posted September 12, 2012 Share Posted September 12, 2012 ...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$ ... Link to comment Share on other sites More sharing options...
mitch_de Posted September 13, 2012 Author Share Posted September 13, 2012 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 More sharing options...
RobertX Posted September 13, 2012 Share Posted September 13, 2012 thanks mitch...i rolled back to the stock 10.8.1 Apple drivers (which i did manage to patch) Link to comment Share on other sites More sharing options...
mitch_de Posted September 13, 2012 Author Share Posted September 13, 2012 OpenCL - today is not really needed. So no prob if some OpenCL code isnt working or even OpenCL isnt active. Link to comment Share on other sites More sharing options...
BALDY_MAN Posted September 13, 2012 Share Posted September 13, 2012 Open CL Oceanwave. Gigabyte windforce 670 GTX. 1070.8 fps Link to comment Share on other sites More sharing options...
mitch_de Posted September 13, 2012 Author Share Posted September 13, 2012 Great - my 9600 GT oldie only gets 83 fps Link to comment Share on other sites More sharing options...
RobertX Posted September 14, 2012 Share Posted September 14, 2012 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... Link to comment Share on other sites More sharing options...
mitch_de Posted September 14, 2012 Author Share Posted September 14, 2012 Yep, but GT520 is more an low end gpu, even newer. Link to comment Share on other sites More sharing options...
RobertX Posted September 14, 2012 Share Posted September 14, 2012 Yep, but GT520 is more an low end gpu, even newer. ...and yet, it does work :wink2: 1 Link to comment Share on other sites More sharing options...
mitch_de Posted September 14, 2012 Author Share Posted September 14, 2012 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 More sharing options...
RobertX Posted September 20, 2012 Share Posted September 20, 2012 got opencl working again after update Link to comment Share on other sites More sharing options...
stefano.85 Posted December 4, 2012 Share Posted December 4, 2012 it seems that in this benchmark i've got a problem... Nvidia retail 304.00.05f02 drivers + Cuda 5.0.37 + ONLY opencl 2gb+ patch from netkas. I think i've to do some other patches....right? Link to comment Share on other sites More sharing options...
mitch_de Posted December 4, 2012 Author Share Posted December 4, 2012 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 More sharing options...
eep357 Posted January 4, 2013 Share Posted January 4, 2013 Link to comment Share on other sites More sharing options...
mitch_de Posted January 5, 2013 Author Share Posted January 5, 2013 WOW - new pole position with AMD 7970 - added to results list (post 1) 2 Link to comment Share on other sites More sharing options...
Recommended Posts