Commit 25cbbe77 authored by Berrill, Mark's avatar Berrill, Mark
Browse files

Updating printing

parent 88798267
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ static inline void free2( RayTrace::create_image_struct *info )
int run_tests( const std::string &filename, const Options &options )
{
    if ( rank() == 0 )
        printf( "\nRunning tests for %s\n\n", filename.c_str() );
        std::cout << "Running tests for " <<  filename.c_str() << std::endl;

    // Get the list of methods to try
    const auto &methods = options.methods;
@@ -101,7 +101,7 @@ int run_tests( const std::string &filename, const Options &options )
    std::vector<std::vector<double>> time( methods.size() );
    for ( size_t i = 0; i < methods.size(); i++ ) {
        if ( rank() == 0 )
            printf( "Running %s\n", methods[i].c_str() );
            std::cout << "  Running " << methods[i] << std::endl;
        bool serial = methods[i] == "cpu" || methods[i] == "Kokkos-Serial";
        int iterations = options.iterations;
        if ( serial && methods.size() > 1 )
@@ -146,6 +146,7 @@ int run_tests( const std::string &filename, const Options &options )
                N_errors++;
            }
        }
        std::cout << std::endl;
    }

    // Free memory and return
+1 −1
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ void printHardware()
    std::cout << "Hostname: " << hostname << std::endl;
    std::cout << "Number of threads: " << N_threads << std::endl;
    std::cout << "Number of gpus: " << N_gpu << std::endl;
    std::cout << "System memory: " << N_bytes/1073741824 << " GB" << std::endl;
    std::cout << "System memory: " << N_bytes/1073741824 << " GB" << std::endl << std::endl;
}