mirror of https://github.com/BOINC/boinc.git
Mac Client: Call NSVersionOfRunTimeLibrary("cuda") to set cc.display_driver_version
svn path=/trunk/boinc/; revision=23970
This commit is contained in:
parent
77e4e987f6
commit
34d4385c23
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue