99 replies to this topic
#81
Posted 13 September 2012 - 05:55 AM
Is there any solution for enabling OpenCL for this new driver from NVIDIA?
I have GT 430 with 1GB memory.
I have GT 430 with 1GB memory.
#82
Posted 14 September 2012 - 04:17 AM
...think i've got the fix now...from "the other place"
"Anyway I just wanted to share this patch for libclh.dylib since the old one doesn't work anymore and it's quite frustrating that OpenCL isn't working out of the box so to speak. And it took some time to work it out since Nvidia anonymized the function names in the library.
Just copy and paste this in a terminal window (don't forget to backup libclh.dylib beforehand).
Code:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
Alternatively you can use a hex editor to search for:
8b 81 1c 0c 00 00 eb 06 8b 81 20 0c 00 00
and replace it by:
b8 02 00 00 00 90 eb 06 b8 00 00 00 00 90
There should be only one occurrence of this in the whole file. The perl script will tell you the number of substitutions it made.
Normally it should take effect immediately so there's no need to reboot, it should also trigger a rebuild of the kernel cache.
If like me you're a cautious person feel free to do those two things manually."(all credit to this code digger) credit removed
...using the new drivers from nvidia for 10.8.1 i can now run the LuxMark v2.0 benchmark ...
LuxMark v2.0 GT520.png 668.88K
416 downloads
GFX.png 271.66K
392 downloads
"Anyway I just wanted to share this patch for libclh.dylib since the old one doesn't work anymore and it's quite frustrating that OpenCL isn't working out of the box so to speak. And it took some time to work it out since Nvidia anonymized the function names in the library.
Just copy and paste this in a terminal window (don't forget to backup libclh.dylib beforehand).
Code:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
Alternatively you can use a hex editor to search for:
8b 81 1c 0c 00 00 eb 06 8b 81 20 0c 00 00
and replace it by:
b8 02 00 00 00 90 eb 06 b8 00 00 00 00 90
There should be only one occurrence of this in the whole file. The perl script will tell you the number of substitutions it made.
Normally it should take effect immediately so there's no need to reboot, it should also trigger a rebuild of the kernel cache.
If like me you're a cautious person feel free to do those two things manually."
...using the new drivers from nvidia for 10.8.1 i can now run the LuxMark v2.0 benchmark ...
LuxMark v2.0 GT520.png 668.88K
416 downloads
GFX.png 271.66K
392 downloads
Edited by robertx, 07 April 2013 - 06:35 PM.
Link to tonymac removed
#83
Posted 14 September 2012 - 05:11 AM
robertx, on 14 September 2012 - 04:17 AM, said:
...think i've got the fix now...from "the other place"
"Anyway I just wanted to share this patch for libclh.dylib since the old one doesn't work anymore and it's quite frustrating that OpenCL isn't working out of the box so to speak. And it took some time to work it out since Nvidia anonymized the function names in the library.
Just copy and paste this in a terminal window (don't forget to backup libclh.dylib beforehand).
Code:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
Alternatively you can use a hex editor to search for:
8b 81 1c 0c 00 00 eb 06 8b 81 20 0c 00 00
and replace it by:
b8 02 00 00 00 90 eb 06 b8 00 00 00 00 90
There should be only one occurrence of this in the whole file. The perl script will tell you the number of substitutions it made.
Normally it should take effect immediately so there's no need to reboot, it should also trigger a rebuild of the kernel cache.
If like me you're a cautious person feel free to do those two things manually." (all credit to this code digger)
...using the new drivers from nvidia for 10.8.1 i can now run the LuxMark v2.0 benchmark ...
LuxMark v2.0 GT520.png
GFX.png
"Anyway I just wanted to share this patch for libclh.dylib since the old one doesn't work anymore and it's quite frustrating that OpenCL isn't working out of the box so to speak. And it took some time to work it out since Nvidia anonymized the function names in the library.
Just copy and paste this in a terminal window (don't forget to backup libclh.dylib beforehand).
Code:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
Alternatively you can use a hex editor to search for:
8b 81 1c 0c 00 00 eb 06 8b 81 20 0c 00 00
and replace it by:
b8 02 00 00 00 90 eb 06 b8 00 00 00 00 90
There should be only one occurrence of this in the whole file. The perl script will tell you the number of substitutions it made.
Normally it should take effect immediately so there's no need to reboot, it should also trigger a rebuild of the kernel cache.
If like me you're a cautious person feel free to do those two things manually." (all credit to this code digger)
...using the new drivers from nvidia for 10.8.1 i can now run the LuxMark v2.0 benchmark ...
IT IS A PERFECT SOLUTION!!!
Edited by Micky1979, 30 March 2013 - 04:10 PM.
link to tonymac removed
#84
Posted 14 September 2012 - 05:18 AM
#85
Posted 15 September 2012 - 05:23 AM
Don't work for GT640
#86
Posted 20 September 2012 - 12:41 AM
on 10.8.2 now...and again a new patch seems to be required...
..."a hunting I will go..."
#87
Posted 20 September 2012 - 10:30 PM
for the stock 10.8.2 drivers (8.0.61 295.30.20f02 version) this fix still works
"So, open up a hex editor of your liking and do this:
open /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib (as root or with sudo)
find: 8B 87 1C 0C 00 00 89 06 8B 87 20 0C 00 00 89 02
replace by: 31 C0 FF C0 FF C0 89 06 31 C0 89 02 90 90 90 90
save
reboot is not required, but recommended" from the first post...
"So, open up a hex editor of your liking and do this:
open /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib (as root or with sudo)
find: 8B 87 1C 0C 00 00 89 06 8B 87 20 0C 00 00 89 02
replace by: 31 C0 FF C0 FF C0 89 06 31 C0 89 02 90 90 90 90
save
reboot is not required, but recommended" from the first post...
#88
Posted 11 October 2012 - 05:07 PM
robertx, on 20 September 2012 - 10:30 PM, said:
for the stock 10.8.2 drivers (8.0.61 295.30.20f02 version) this fix still works
"So, open up a hex editor of your liking and do this:
open /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib (as root or with sudo)
find: 8B 87 1C 0C 00 00 89 06 8B 87 20 0C 00 00 89 02
replace by: 31 C0 FF C0 FF C0 89 06 31 C0 89 02 90 90 90 90
save
reboot is not required, but recommended" from the first post...
"So, open up a hex editor of your liking and do this:
open /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib (as root or with sudo)
find: 8B 87 1C 0C 00 00 89 06 8B 87 20 0C 00 00 89 02
replace by: 31 C0 FF C0 FF C0 89 06 31 C0 89 02 90 90 90 90
save
reboot is not required, but recommended" from the first post...
By doing so, OpenCL doesn't work for me.
I'm on OS X 10.8.2 (12C60) and my graphics card is Gigabyte GeForce GTX 560 Ti 1024 MB.
What I am doing wrong?
Greetings and thanks.
#89
Posted 11 October 2012 - 07:14 PM
tora, on 11 October 2012 - 05:07 PM, said:
By doing so, OpenCL doesn't work for me.
I'm on OS X 10.8.2 (12C60) and my graphics card is Gigabyte GeForce GTX 560 Ti 1024 MB.
What I am doing wrong?
Greetings and thanks.
I'm on OS X 10.8.2 (12C60) and my graphics card is Gigabyte GeForce GTX 560 Ti 1024 MB.
What I am doing wrong?
Greetings and thanks.
well,
this script with latest nVidia drivers get back openCL for me
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
#90
Posted 11 October 2012 - 08:29 PM
...good to see people using their heads...
#91
Posted 03 April 2013 - 01:02 AM
Hi, this guide is succesfully enable my openCL 
but when click on oceanwave test the image is having some glitches
(see the bottom of the sun)
is it normal???
Screen Shot 2013-04-03 at 8.59.09 AM.png 780.56K
49 downloads
but when click on oceanwave test the image is having some glitches
(see the bottom of the sun)
is it normal???
Screen Shot 2013-04-03 at 8.59.09 AM.png 780.56K
49 downloads
#92
Posted 03 April 2013 - 04:29 PM
aankun.ganteng, on 03 April 2013 - 01:02 AM, said:
Hi, this guide is succesfully enable my openCL 
but when click on oceanwave test the image is having some glitches
(see the bottom of the sun)
is it normal???
Screen Shot 2013-04-03 at 8.59.09 AM.png
but when click on oceanwave test the image is having some glitches
(see the bottom of the sun)
is it normal???
No, the rendering is not correct. The waves are missed.
You can try much newer (than 1.2) OceanWave version , but i think (because the OpenCL code wasnt changed) the missing waves will stay.
Such things may happen with some of the subgpu types which not already fully supported by the OpenCL drivers .
to be more excact: to on the fly OpenCL compiler which compiles the source for the found gpu type on the host system. Other than CUDA, which is compiled by the dev already (for several nvidia gpu types) OpenCL used OpenCL source code and compiled it later on run time (first run).
Doesnt matter much, because the complex used OpenCL functions in OceanWave , which fail on your gpu may not used in other OpenCL acceled apps.
#93
Posted 04 April 2013 - 01:22 AM
mitch_de, on 03 April 2013 - 04:29 PM, said:
No, the rendering is not correct. The waves are missed.
You can try much newer (than 1.2) OceanWave version , but i think (because the OpenCL code wasnt changed) the missing waves will stay.
Such things may happen with some of the subgpu types which not already fully supported by the OpenCL drivers .
to be more excact: to on the fly OpenCL compiler which compiles the source for the found gpu type on the host system. Other than CUDA, which is compiled by the dev already (for several nvidia gpu types) OpenCL used OpenCL source code and compiled it later on run time (first run).
Doesnt matter much, because the complex used OpenCL functions in OceanWave , which fail on your gpu may not used in other OpenCL acceled apps.
You can try much newer (than 1.2) OceanWave version , but i think (because the OpenCL code wasnt changed) the missing waves will stay.
Such things may happen with some of the subgpu types which not already fully supported by the OpenCL drivers .
to be more excact: to on the fly OpenCL compiler which compiles the source for the found gpu type on the host system. Other than CUDA, which is compiled by the dev already (for several nvidia gpu types) OpenCL used OpenCL source code and compiled it later on run time (first run).
Doesnt matter much, because the complex used OpenCL functions in OceanWave , which fail on your gpu may not used in other OpenCL acceled apps.
Thanks for the reply,
anyway a redo all the patch from the beginning
now the rendering is flickering between screenshot #1 and #2
i think it's getting better?
Screen Shot 2013-04-04 at 9.18.22 AM.png 486.57K
4 downloads
Screen Shot 2013-04-04 at 9.18.52 AM.png 345.52K
4 downloads
#94
Posted 04 April 2013 - 03:59 PM
You are on the right way
#95
Posted 07 April 2013 - 05:00 AM
robertx, on 14 September 2012 - 04:17 AM, said:
...think i've got the fix now...from "the other place"
"Anyway I just wanted to share this patch for libclh.dylib since the old one doesn't work anymore and it's quite frustrating that OpenCL isn't working out of the box so to speak. And it took some time to work it out since Nvidia anonymized the function names in the library.
Just copy and paste this in a terminal window (don't forget to backup libclh.dylib beforehand).
Code:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
"Anyway I just wanted to share this patch for libclh.dylib since the old one doesn't work anymore and it's quite frustrating that OpenCL isn't working out of the box so to speak. And it took some time to work it out since Nvidia anonymized the function names in the library.
Just copy and paste this in a terminal window (don't forget to backup libclh.dylib beforehand).
Code:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
Thank YOU man! It's works fine for me. i'm using G75VW RS 72 and 10.8.3 and GTX 670m 3GB GDDR5
http://cl.ly/O6ro
#96
Posted 07 April 2013 - 06:39 PM
#97
Posted 21 April 2013 - 06:52 PM
#98
Posted 06 May 2013 - 02:33 PM
Cool Beta992! Edit you signature
#99
Posted 16 May 2013 - 08:28 PM
for the new nvidia "Web" drivers this works for me
...in Terminal type:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriverWeb.bundle/Contents/MacOS/libclh.dylib

edit: although the fix works, i now get this error in safari while attempting to view the iphone ad...
5/16/13 4:50:36.000 PM kernel[0]: NVDA(Video): Channel exception! exception type = 0x1f = Fifo: MMU Error
5/16/13 4:50:36.000 PM kernel[0]: NVDA(Video): Channel exception! exception type = 0x1f = Fifo: MMU Error
5/16/13 4:50:44.365 PM WebProcess[405]: VADriver: Channel timeout (client), ch = 2
5/16/13 4:50:56.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:51:16.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:51:24.809 PM WebProcess[405]: VADriver: Channel timeout (client), ch = 3
5/16/13 4:51:36.000 PM kernel[0]: NVDA(OpenGL): Channel timeout!
5/16/13 4:51:57.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:52:17.000 PM kernel[0]: NVDA(OpenGL): Channel timeout!
...totally locks up my system...i'll keep hunting
...changed my smbios.plist to MacPro 3.1 and no longer have the channel timeout freeze in safari
...in Terminal type:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriverWeb.bundle/Contents/MacOS/libclh.dylib
edit: although the fix works, i now get this error in safari while attempting to view the iphone ad...
5/16/13 4:50:36.000 PM kernel[0]: NVDA(Video): Channel exception! exception type = 0x1f = Fifo: MMU Error
5/16/13 4:50:36.000 PM kernel[0]: NVDA(Video): Channel exception! exception type = 0x1f = Fifo: MMU Error
5/16/13 4:50:44.365 PM WebProcess[405]: VADriver: Channel timeout (client), ch = 2
5/16/13 4:50:56.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:51:16.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:51:24.809 PM WebProcess[405]: VADriver: Channel timeout (client), ch = 3
5/16/13 4:51:36.000 PM kernel[0]: NVDA(OpenGL): Channel timeout!
5/16/13 4:51:57.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:52:17.000 PM kernel[0]: NVDA(OpenGL): Channel timeout!
...totally locks up my system...i'll keep hunting
...changed my smbios.plist to MacPro 3.1 and no longer have the channel timeout freeze in safari
Edited by robertx, 17 May 2013 - 12:11 AM.
#100
Posted 16 May 2013 - 09:40 PM
robertx, on 16 May 2013 - 08:28 PM, said:
for the new nvidia "Web" drivers this works for me
...in Terminal type:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriverWeb.bundle/Contents/MacOS/libclh.dylib

edit: although the fix works, i now get this error in safari while attempting to view the iphone ad...
5/16/13 4:50:36.000 PM kernel[0]: NVDA(Video): Channel exception! exception type = 0x1f = Fifo: MMU Error
5/16/13 4:50:36.000 PM kernel[0]: NVDA(Video): Channel exception! exception type = 0x1f = Fifo: MMU Error
5/16/13 4:50:44.365 PM WebProcess[405]: VADriver: Channel timeout (client), ch = 2
5/16/13 4:50:56.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:51:16.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:51:24.809 PM WebProcess[405]: VADriver: Channel timeout (client), ch = 3
5/16/13 4:51:36.000 PM kernel[0]: NVDA(OpenGL): Channel timeout!
5/16/13 4:51:57.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:52:17.000 PM kernel[0]: NVDA(OpenGL): Channel timeout!
...totally locks up my system...i'll keep hunting
...in Terminal type:
sudo perl -pi -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); }' /System/Library/Extensions/GeForceGLDriverWeb.bundle/Contents/MacOS/libclh.dylib
edit: although the fix works, i now get this error in safari while attempting to view the iphone ad...
5/16/13 4:50:36.000 PM kernel[0]: NVDA(Video): Channel exception! exception type = 0x1f = Fifo: MMU Error
5/16/13 4:50:36.000 PM kernel[0]: NVDA(Video): Channel exception! exception type = 0x1f = Fifo: MMU Error
5/16/13 4:50:44.365 PM WebProcess[405]: VADriver: Channel timeout (client), ch = 2
5/16/13 4:50:56.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:51:16.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:51:24.809 PM WebProcess[405]: VADriver: Channel timeout (client), ch = 3
5/16/13 4:51:36.000 PM kernel[0]: NVDA(OpenGL): Channel timeout!
5/16/13 4:51:57.000 PM kernel[0]: NVDA(Video): Channel timeout!
5/16/13 4:52:17.000 PM kernel[0]: NVDA(OpenGL): Channel timeout!
...totally locks up my system...i'll keep hunting
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



Sign In
Create Account








