mirror of https://github.com/BOINC/boinc.git
- client and user web: show NVIDIA driver version and CUDA version
as, e.g., 275.33 instead of 27533 svn path=/trunk/boinc/; revision=24378
This commit is contained in:
parent
cb3cdae1a5
commit
0793e66ff7
|
@ -7091,3 +7091,12 @@ David 11 Oct 2011
|
||||||
client_types.cpp,h
|
client_types.cpp,h
|
||||||
client_state.cpp
|
client_state.cpp
|
||||||
coproc_detect.cpp
|
coproc_detect.cpp
|
||||||
|
|
||||||
|
David 11 Oct 2011
|
||||||
|
- client and user web: show NVIDIA driver version and CUDA version
|
||||||
|
as, e.g., 275.33 instead of 27533
|
||||||
|
|
||||||
|
html/inc/
|
||||||
|
host.inc
|
||||||
|
lib/
|
||||||
|
coproc.cpp
|
||||||
|
|
|
@ -261,7 +261,10 @@ function gpu_desc($x) {
|
||||||
$str .= " (".$d[3].")";
|
$str .= " (".$d[3].")";
|
||||||
if (array_key_exists(4, $d)) {
|
if (array_key_exists(4, $d)) {
|
||||||
if ($d[4] != "" && $d[4] != 0) {
|
if ($d[4] != "" && $d[4] != 0) {
|
||||||
$str .= " driver: ".$d[4];
|
$i = (int)$d[4];
|
||||||
|
$maj = (int)($i/100);
|
||||||
|
$min = $i%100;
|
||||||
|
$str .= " driver: $maj.$min";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -350,14 +350,23 @@ void COPROCS::write_xml(MIOFILE& mf, bool include_request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void COPROC_NVIDIA::description(char* buf) {
|
void COPROC_NVIDIA::description(char* buf) {
|
||||||
char vers[256];
|
char vers[256], cuda_vers[256];
|
||||||
if (display_driver_version) {
|
if (display_driver_version) {
|
||||||
sprintf(vers, "%d", display_driver_version);
|
int maj = display_driver_version/100;
|
||||||
|
int min = display_driver_version%100;
|
||||||
|
sprintf(vers, "%d.%d", maj, min);
|
||||||
} else {
|
} else {
|
||||||
strcpy(vers, "unknown");
|
strcpy(vers, "unknown");
|
||||||
}
|
}
|
||||||
sprintf(buf, "%s (driver version %s, CUDA version %d, compute capability %d.%d, %.0fMB, %.0fMB available, %.0f GFLOPS peak)",
|
if (cuda_version) {
|
||||||
prop.name, vers, cuda_version, prop.major, prop.minor,
|
int maj = cuda_version/100;
|
||||||
|
int min = cuda_version%100;
|
||||||
|
sprintf(cuda_vers, "%d.%d", maj, min);
|
||||||
|
} else {
|
||||||
|
strcpy(cuda_vers, "unknown");
|
||||||
|
}
|
||||||
|
sprintf(buf, "%s (driver version %s, CUDA version %s, compute capability %d.%d, %.0fMB, %.0fMB available, %.0f GFLOPS peak)",
|
||||||
|
prop.name, vers, cuda_vers, prop.major, prop.minor,
|
||||||
prop.totalGlobalMem/MEGA, available_ram/MEGA, peak_flops/1e9
|
prop.totalGlobalMem/MEGA, available_ram/MEGA, peak_flops/1e9
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue