Mac Client: Call NSVersionOfRunTimeLibrary("cuda") to set cc.display_driver_version

svn path=/trunk/boinc/; revision=23970
This commit is contained in:
Charlie Fenton 2011-08-09 01:09:36 +00:00
parent 77e4e987f6
commit 34d4385c23
2 changed files with 11 additions and 0 deletions

View File

@ -4764,3 +4764,11 @@ Charlie 8 Aug 2011
PostInstall.cpp
PTP-ReadMe.rtf
ReadMe.rtf
Charlie 8 Aug 2011
- Mac Client: Call NSVersionOfRunTimeLibrary("cuda") to set
cc.display_driver_version (from Oliver Bock.)
client/
coproc_detect.cpp

View File

@ -29,6 +29,7 @@
#ifdef __APPLE__
// Suppress obsolete warning when building for OS 10.3.9
#define DLOPEN_NO_WARN
#include <mach-o/dyld.h>
#endif
#include "config.h"
#include <dlfcn.h>
@ -863,6 +864,8 @@ void COPROC_NVIDIA::get(
if (cc.prop.major > 100) continue; // e.g. 9999 is an error
#if defined(_WIN32) && !defined(SIM)
cc.display_driver_version = Version.drvVersion;
#elif defined(__APPLE__)
cc.display_driver_version = NSVersionOfRunTimeLibrary("cuda");
#else
cc.display_driver_version = 0;
#endif