Opened 12 years ago

#1201 new Defect

patch: lib/coproc.cpp - indentiation, initialisation of double with int

Reported by: steffen_moeller Owned by:
Priority: Trivial Milestone: Undetermined
Component: Undetermined Version: 7.0.31
Keywords: Cc:

Description

while I look at it, I presume the truly correct form would be 0.0L, am reporting it only for the better readability since the nvidia value is indeed a long integer with almost the same name, but this is not what is stored here, if I am not erroneous.

Steffen

--- boinc.orig/lib/coproc.cpp   2012-08-01 20:55:51.707915924 +0200

+++ boinc/lib/coproc.cpp        2012-08-01 20:56:08.403690215 +0200

@@ -480,7 +480,7 @@
     cuda_version = 0;
     display_driver_version = 0;
     strcpy(prop.name, "");
-    prop.totalGlobalMem = 0;
+    prop.totalGlobalMem = 0.0;
     prop.sharedMemPerBlock = 0;
     prop.regsPerBlock = 0;
     prop.warpSize = 0;
@@ -510,7 +510,7 @@
     while (!xp.get_tag()) {
         if (xp.match_tag("/coproc_cuda")) {
             if (!peak_flops) {
-                               set_peak_flops();
+                set_peak_flops();
             }
             if (!available_ram) {
                 available_ram = prop.totalGlobalMem;

Change History (0)

Note: See TracTickets for help on using tickets.