sm 1.3:
31 C0 FF C0 89 06 FF C0 FF C0 89 02 90 90 90 90
untested, but it should work
This is working for my GTX480

Thank you cmf!
sm 1.3:
31 C0 FF C0 89 06 FF C0 FF C0 89 02 90 90 90 90
untested, but it should work

good news everyone
After I bought a GTX 560 Ti, I noticed a few odd things about the OpenCL support of this card.
It's telling you that it's capable of all these things, but it actually isn't and will produce compile errors like "requires .target sm_12 or higher" even though it's a sm_21 capable card. So, I started digging and from the looks of it, Apples OpenCL compiler is only (directly) supporting cards up to sm_20 (Quadro 4000, GTX 480/470/580/570). If it's higher than this it will fallback to sm_10 or sm_11.
The solution: let's just pretend we have a 2.0 card
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
What this basically does is replacing the dynamic cc device info in clhDeviceComputeCapability with a hardcoded 2.0 "info". Note that this is x64 only for the moment (which most people are certainly using since 10.7). I will add x86 support at a later point.
Also, if you have another non-sm2.0 capable nvidia card installed, this will (probably) break OpenCL support for it.
every single time the file is overwritten by an update, so yes, after the install and after each 10.7.x update.should I do this directly after install? Or should I, as I read earlier, install the netkas opencl that people were trying then do this?
huh? this isn't required for gtx 480.This is working for my GTX480
huh? this isn't required for gtx 480.
pyrit benchmark Pyrit 0.4.1-dev (svn r308) © 2008-2011 Lukas Lueg [url="http://pyrit.googlecode.com"]http://pyrit.googlecode.com[/url] This code is distributed under the GNU General Public License v3+ Running benchmark (61279.2 PMKs/s)... - Computed 61279.17 PMKs/s total. #1: 'CUDA-Device #1 'GeForce GTX 480'': 25619.8 PMKs/s (RTT 2.9) #2: 'OpenCL-Device 'ATI Radeon Barts XT Prototype'': 31135.4 PMKs/s (RTT 2.8) #3: 'OpenCL-Device 'GeForce GTX 480'': 6744.2 PMKs/s (RTT 3.2) #4: 'CPU-Core (SSE2)': 643.6 PMKs/s (RTT 3.0) #5: 'CPU-Core (SSE2)': 625.2 PMKs/s (RTT 3.1) #6: 'CPU-Core (SSE2)': 634.1 PMKs/s (RTT 3.0) #7: 'CPU-Core (SSE2)': 619.5 PMKs/s (RTT 3.0) #8: 'CPU-Core (SSE2)': 654.0 PMKs/s (RTT 3.0)
imac-de-thireus:Desktop thireus$ pyrit list_cores Pyrit 0.4.1-dev (svn r308) © 2008-2011 Lukas Lueg [url="http://pyrit.googlecode.com"]http://pyrit.googlecode.com[/url] This code is distributed under the GNU General Public License v3+ The following cores seem available... #1: 'CUDA-Device #1 'GeForce GTX 480'' #2: 'OpenCL-Device 'ATI Radeon Barts XT Prototype'' #3: 'CPU-Core (SSE2)' #4: 'CPU-Core (SSE2)' #5: 'CPU-Core (SSE2)' #6: 'CPU-Core (SSE2)' #7: 'CPU-Core (SSE2)' #8: 'CPU-Core (SSE2)'
[OpenCL-only Context] 2 OpenCL devices found! [Device 0] Name: Intel® Core(tm) i7-2600K CPU @ 3.40GHz Vendor: Intel Type: CPU Device Version: OpenCL 1.1 Driver Version: 1.1 Compute Units: 8 Work Group Size: 1024 Clock: 3411 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: 8388608 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: ATI Radeon Barts XT Prototype Vendor: AMD Type: GPU Device Version: OpenCL 1.1 Driver Version: 1.0 Compute Units: 14 Work Group Size: 1024 Clock: 970 MHz Global Memory: 512 MB Local Memory: 32 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_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_3d_image_writes
imac-de-thireus:~ thireus$ pyrit list_cores Pyrit 0.4.1-dev (svn r308) © 2008-2011 Lukas Lueg [url="http://pyrit.googlecode.com"]http://pyrit.googlecode.com[/url] This code is distributed under the GNU General Public License v3+ The following cores seem available... #1: 'CUDA-Device #1 'GeForce GTX 480'' #2: 'OpenCL-Device 'ATI Radeon Barts XT Prototype'' #3: 'OpenCL-Device 'GeForce GTX 480'' #4: 'CPU-Core (SSE2)' #5: 'CPU-Core (SSE2)' #6: 'CPU-Core (SSE2)' #7: 'CPU-Core (SSE2)' #8: 'CPU-Core (SSE2)'
[OpenCL-only Context] 3 OpenCL devices found! [Device 0] Name: Intel® Core(tm) i7-2600K CPU @ 3.40GHz Vendor: Intel Type: CPU Device Version: OpenCL 1.1 Driver Version: 1.1 Compute Units: 8 Work Group Size: 1024 Clock: 3411 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: 8388608 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: ATI Radeon Barts XT Prototype Vendor: AMD Type: GPU Device Version: OpenCL 1.1 Driver Version: 1.0 Compute Units: 14 Work Group Size: 1024 Clock: 970 MHz Global Memory: 512 MB Local Memory: 32 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_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_3d_image_writes [Device 2] Name: GeForce GTX 480 Vendor: NVIDIA Type: GPU Device Version: OpenCL 1.0 Driver Version: CLH 1.0 Compute Units: 60 Work Group Size: 1024 Clock: 0 MHz Global Memory: 1536 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
k, this is weird and interesting. but yes, it is probably because you have an ati card installed as your primary card.For my config it is, without this patch I don't have OpenCL working for my GTX 480. It might be related to the fact I have two GPUs on my HackinTosh: ATI HD6870 + NVidia GTX 480
So do you have an explanation why I need your patch?
Also, can you tell me what's the latest version of OpenCL that should be detected for both GPUs ?
I don't understand what "sm1.3" stands for... SM = ? And I don't understand why sm2.0 patch doesn't work for my GTX 480
yes.So everything should be fine with my "GeForceGLDriver.bundle" i guess ?
NVDAGF100Hal 7.12.9 270.05.10f03 ... you did add the device id, right? "0x120010de&0xffc0ffff"The problem is i cant get 1920*1080 with QE working with the new "NVDAGF100Hal.kext version: 7.12.9".
I have to go back to "NVDAGF100Hal.kext version: 7.10.8" to get full resolution and QE etc. working...![]()
What version of NVDAGF100Hal.kext are you sing for your gf 560ti? Do i need to change something in the new one?
Hi again ;-)
Luxmark i running fine now!
I tried to run OpenCL ocean_wave but it fails on launch with the message below. Have you got it working with your 560ti?
Connecting to NVIDIA GeForce GTX 560 Ti...
Error opening file compute_kernels.cl
Segmentation fault: 11
@cmf,
I have an Asus G74SX with a GTX 560M Nvidia graphics card and with the 10.7.1 update I applied only the Netkas hack back then. No issues QE/CL working 100% with the latest Chameleon trunk but now:
After the 10.7.2 update my desktop kept freezing with the latest Chameleon trunk using Chameleon Wizard. The freezing went away as soon as I installed the latest version of Chimera v1.5.4 r1394. That makes no sense why does Chimera support this card and the latest release of the Chameleon is now causing a freeze to my desktop?
EDITED COUPLE MINUTES LATER:
I am not getting the water wav affect for the add widgets in dashboard anymore? Even with show dashboard as space unchecked. Anyone else?
neither. use the one from the first post.I hex edited both files not just the GLDriver but the libclh.dylib as well. My question still remains which one of the sm strings do I use, sm1.1, sm1.2 or sm1.3?
the one from the first post sets it to ptx 2.0, the others set it to ptx 1.x. the latter is only required if you have another non-fermi card installed.@cmf,
Thanks for getting back with me. I just noticed that the one from the first post is different from the three you posted later. What are the others for?
Thanks
EDIT: It's working now, think i had some permission problems. Thanks for the help once again!
Tried to run luxmark and i get the:RUNTIME ERROR: Unable to find any appropiate IntersectionDevice
Dont know if i miss editing something? Sorry for being a noob btw
I made the changes below (posted before but here they are again:
GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver:
78e883f8 02 7c11
replaced by:
78e883f8 03 7c11
GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib:
8B 87 1C 0C 00 00 89 06 8B 87 20 0C 00 00 89 02
replaced by:
31 C0 FF C0 FF C0 89 06 31 C0 89 02 90 90 90 90
Changed the device ID in "NVDAGF100Hal.kext" info.plist
<key>IOPCIPrimaryMatch</key>
<string>
0x06c010de&0xffe0ffff
0x0dc010de&0xffc0ffff
0x0e2010de&0xffe0ffff
0x0ee010de&0xffe0ffff
0x0f0010de&0xffc0ffff
0x104010de&0xffc0ffff
0x124010de&0xffc0ffff
0x120010de&0xffc0ffff
</string>
0 members, 1 guests, 0 anonymous users