From 34d4385c23c12192880ccd00d225d2a50e4e8189 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 9 Aug 2011 01:09:36 +0000 Subject: [PATCH] Mac Client: Call NSVersionOfRunTimeLibrary("cuda") to set cc.display_driver_version svn path=/trunk/boinc/; revision=23970 --- checkin_notes | 8 ++++++++ client/coproc_detect.cpp | 3 +++ 2 files changed, 11 insertions(+) diff --git a/checkin_notes b/checkin_notes index 40f617a064..b1d6499bdc 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 + \ No newline at end of file diff --git a/client/coproc_detect.cpp b/client/coproc_detect.cpp index 108c0d3003..ee718a7f4a 100644 --- a/client/coproc_detect.cpp +++ b/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 #endif #include "config.h" #include @@ -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