Commit 750bc065 authored by Berrill, Mark's avatar Berrill, Mark
Browse files

Minor update

parent 799f40dc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -102,11 +102,12 @@ int run_tests( const std::string &filename, const Options &options )
    for ( size_t i = 0; i < methods.size(); i++ ) {
        if ( rank() == 0 )
            printf( "Running %s\n", methods[i].c_str() );
        bool serial = methods[i] == "cpu" || methods[i] == "Kokkos-Serial";
        int iterations = options.iterations;
        if ( methods[i] == "cpu" && methods.size() > 1 )
        if ( serial && methods.size() > 1 )
            iterations = 1;
        // Initialize the method to reduce runtime variability
        if ( methods[i] != "cpu" )
        if ( !serial )
            RayTrace::create_image( info2, methods[i] );
        // Run the timing tests
        double start = getTime();