mirror of https://github.com/BOINC/boinc.git
boinccmd: in --get_host_info, don't need to compute peak flops
This commit is contained in:
parent
4e5c1e7723
commit
adfd50e8c2
|
@ -247,16 +247,15 @@ void HOST_INFO::print() {
|
||||||
printf(" disk size: %f\n", d_total);
|
printf(" disk size: %f\n", d_total);
|
||||||
printf(" disk free: %f\n", d_free);
|
printf(" disk free: %f\n", d_free);
|
||||||
|
|
||||||
// show GPU info.
|
// Show GPU info.
|
||||||
// This is way harder than it should be,
|
// This is harder than it should be,
|
||||||
// because the structures aren't populated like they were
|
// because the structures aren't populated like they were
|
||||||
// at GPU detection time.
|
// at GPU detection time.
|
||||||
// So we have to kind of patch things together.
|
// Would be better for the client to export the description strings.
|
||||||
//
|
//
|
||||||
char buf[256];
|
char buf[256];
|
||||||
COPROC_NVIDIA& cn = coprocs.nvidia;
|
COPROC_NVIDIA& cn = coprocs.nvidia;
|
||||||
if (cn.count) {
|
if (cn.count) {
|
||||||
cn.set_peak_flops();
|
|
||||||
cn.description(buf, sizeof(buf));
|
cn.description(buf, sizeof(buf));
|
||||||
printf(" NVIDIA GPU: %s\n", buf);
|
printf(" NVIDIA GPU: %s\n", buf);
|
||||||
if (cn.count > 1) {
|
if (cn.count > 1) {
|
||||||
|
@ -272,7 +271,6 @@ void HOST_INFO::print() {
|
||||||
}
|
}
|
||||||
COPROC_ATI &ca = coprocs.ati;
|
COPROC_ATI &ca = coprocs.ati;
|
||||||
if (ca.count) {
|
if (ca.count) {
|
||||||
ca.set_peak_flops();
|
|
||||||
ca.description(buf, sizeof(buf));
|
ca.description(buf, sizeof(buf));
|
||||||
printf(" AMD GPU: %s\n", buf);
|
printf(" AMD GPU: %s\n", buf);
|
||||||
if (ca.count > 1) {
|
if (ca.count > 1) {
|
||||||
|
@ -292,7 +290,6 @@ void HOST_INFO::print() {
|
||||||
if (ci.count > 1) {
|
if (ci.count > 1) {
|
||||||
printf(" Count: %d\n", ci.count);
|
printf(" Count: %d\n", ci.count);
|
||||||
}
|
}
|
||||||
ci.set_peak_flops();
|
|
||||||
if (ci.have_opencl) {
|
if (ci.have_opencl) {
|
||||||
ci.opencl_prop.peak_flops = ci.peak_flops;
|
ci.opencl_prop.peak_flops = ci.peak_flops;
|
||||||
ci.opencl_prop.opencl_available_ram = ci.opencl_prop.global_mem_size;
|
ci.opencl_prop.opencl_available_ram = ci.opencl_prop.global_mem_size;
|
||||||
|
|
Loading…
Reference in New Issue