tcuPrintf calls removed - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit ec183ca8ade021d0692df775a118759ddadd02d4
 (DIR) parent 80378c0db50ee07b6f13d09b0d1fcd3eb1b9e796
 (HTM) Author: Anders Damsgaard <adc@geo.au.dk>
       Date:   Mon, 22 Oct 2012 20:42:08 +0200
       
       cuPrintf calls removed
       
       Diffstat:
         M src/device.cu                       |      24 ------------------------
       
       1 file changed, 0 insertions(+), 24 deletions(-)
       ---
 (DIR) diff --git a/src/device.cu b/src/device.cu
       t@@ -17,8 +17,6 @@
        #include "contactsearch.cuh"
        #include "integration.cuh"
        
       -#include "cuPrintf.cu"
       -
        // Wrapper function for initializing the CUDA components.
        // Called from main.cpp
        //extern "C"
       t@@ -93,15 +91,6 @@ __global__ void checkConstantValues(int* dev_equal,
          // Values ok (0)
          *dev_equal = 0;
        
       -  cuPrintf("dev_grid.nd = %u\n", dev_grid->nd);
       -  cuPrintf("devC_grid.nd = %u\n", devC_grid.nd);
       -  cuPrintf("dev_grid.num.x = %u\n", dev_grid->num[0]);
       -  cuPrintf("devC_grid.num.x = %u\n", devC_grid.num[1]);
       -  cuPrintf("dev_params.np = %u\n", dev_params->np);
       -  cuPrintf("devC_params.np = %u\n", devC_params.np);
       -  cuPrintf("dev_params.mu_s = %f\n", dev_params->mu_s);
       -  cuPrintf("devC_params.mu_s = %f\n", devC_params.mu_s);
       -
          if (dev_grid->nd != 3) {
            *dev_equal = 3;
            return;
       t@@ -167,7 +156,6 @@ __global__ void checkConstantValues(int* dev_equal,
        // values in constant memory.
        __host__ void checkConstantMemory(Grid* grid, Params* params)
        {
       -  cudaPrintfInit();
        
          // Allocate space in global device memory
          Grid* dev_grid;
       t@@ -196,7 +184,6 @@ __host__ void checkConstantMemory(Grid* grid, Params* params)
          cudaFree(dev_params);
          cudaFree(dev_equal);
        
       -  cudaPrintfDisplay(stdout, true);
        
          // Are the values equal?
          if (*equal != 0) {
       t@@ -512,8 +499,6 @@ __host__ void gpuMain(Float4* host_x,
               << "             progress by executing:\n"
               << "                $ ./sphere_status " << inputbin << "\n\n";
        
       -  // Enable cuPrintf()
       -  //cudaPrintfInit();
        
          // Start GPU clock
          cudaEvent_t dev_tic, dev_toc;
       t@@ -629,9 +614,6 @@ __host__ void gpuMain(Float4* host_x,
                                              dev_contacts,
                                              dev_distmod);
        
       -      // Empty cuPrintf() buffer to console
       -      //cudaThreadSynchronize();
       -      //cudaPrintfDisplay(stdout, true);
        
              // Synchronization point
              cudaThreadSynchronize();
       t@@ -660,9 +642,6 @@ __host__ void gpuMain(Float4* host_x,
                                            dev_distmod,
                                            dev_delta_t);
        
       -    // Empty cuPrintf() buffer to console
       -    //cudaThreadSynchronize();
       -    //cudaPrintfDisplay(stdout, true);
        
            // Synchronization point
            cudaThreadSynchronize();
       t@@ -865,9 +844,6 @@ __host__ void gpuMain(Float4* host_x,
          }
        
        
       -  // Free memory allocated to cudaPrintfInit
       -  //cudaPrintfEnd();
       -
          // Free GPU device memory  
          printf("\nLiberating device memory:                        ");