- client: don't write deviceHandle to NVIDIA XML description.

Um, pointers don't have any meaning outside the process


svn path=/trunk/boinc/; revision=25528
This commit is contained in:
David Anderson 2012-04-02 22:41:28 +00:00
parent 36529da919
commit aed704e61b
2 changed files with 8 additions and 3 deletions

View File

@ -3191,3 +3191,10 @@ David 2 Apr 2012
coproc.h
client/
coproc_detect.cpp
David 2 Apr 2012
- client: don't write deviceHandle to NVIDIA XML description.
Um, pointers don't have any meaning outside the process
lib/
coproc.cpp

View File

@ -397,7 +397,6 @@ void COPROC_NVIDIA::write_xml(MIOFILE& f, bool include_request) {
" <peak_flops>%f</peak_flops>\n"
" <cudaVersion>%d</cudaVersion>\n"
" <drvVersion>%d</drvVersion>\n"
" <deviceHandle>%p</deviceHandle>\n"
" <totalGlobalMem>%u</totalGlobalMem>\n"
" <sharedMemPerBlock>%u</sharedMemPerBlock>\n"
" <regsPerBlock>%d</regsPerBlock>\n"
@ -416,7 +415,6 @@ void COPROC_NVIDIA::write_xml(MIOFILE& f, bool include_request) {
peak_flops,
cuda_version,
display_driver_version,
prop.deviceHandle,
(unsigned int)prop.totalGlobalMem,
(unsigned int)prop.sharedMemPerBlock,
prop.regsPerBlock,
@ -499,7 +497,7 @@ int COPROC_NVIDIA::parse(XML_PARSER& xp) {
if (xp.parse_str("name", prop.name, sizeof(prop.name))) continue;
if (xp.parse_int("deviceHandle", prop.deviceHandle)) continue;
if (xp.parse_double("totalGlobalMem", prop.dtotalGlobalMem)) {
prop.totalGlobalMem = (int)prop.dtotalGlobalMem;
prop.totalGlobalMem = (size_t)prop.dtotalGlobalMem;
continue;
}
if (xp.parse_int("sharedMemPerBlock", (int&)prop.sharedMemPerBlock)) continue;