Exemple #1
0
def run_benchmark(num_blocks):
    # Lattice size is optimized for Tesla C2050.
    settings = {
        'max_iters': 1000,
        'every': 500,
        'quiet': True,
        'block_size': 128,
        'subdomains': num_blocks,
        'conn_axis': 'y',
        'lat_nx': 5118,
        'lat_ny': 5800 * num_blocks,
    }

    ctrl = LBSimulationController(LDCSim, EqualSubdomainsGeometry2D, settings)
    timing_infos, min_timings, max_timings, subdomains = ctrl.run()
    util.save_result('weak_2d_single', num_blocks, timing_infos, min_timings,
                     max_timings, subdomains)
Exemple #2
0
def run_benchmark(num_blocks):
    # Lattice size is optimized for Tesla C2050.
    settings = {
        'max_iters': 1000,
        'every': 500,
        'quiet': True,
        'block_size': 128,
        'subdomains': num_blocks,
        'conn_axis': 'y',
        'lat_nx': 5118,
        'lat_ny': 5800 * num_blocks,
        }

    ctrl = LBSimulationController(LDCSim, EqualSubdomainsGeometry2D, settings)
    timing_infos, min_timings, max_timings, subdomains = ctrl.run()
    util.save_result('weak_2d_single', num_blocks, timing_infos, min_timings,
            max_timings, subdomains)
Exemple #3
0
def run_benchmark(num_blocks):
    # Lattice size is optimized for Tesla C2050.
    settings = {
        'max_iters': 1000,
        'every': 500,
        'quiet': True,
        'block_size': 128,
        'subdomains': num_blocks,
        'conn_axis': 'y',
        'mode': 'benchmark',
        'periodic_x': False,
        'periodic_y': False,
        'lat_nx': 3710,
        'lat_ny': 3990 * num_blocks,
        }

    SeparationSCSim.subdomain = TestDomain
    ctrl = LBSimulationController(SeparationSCSim, EqualSubdomainsGeometry2D, settings)
    timing_infos, min_timings, max_timings, subdomains = ctrl.run()
    util.save_result('weak_2d_binary', num_blocks, timing_infos, min_timings,
            max_timings, subdomains)
Exemple #4
0
def run_benchmark(num_blocks):
    # Lattice size is optimized for Tesla C2050.
    settings = {
        'max_iters': 1000,
        'every': 500,
        'quiet': True,
        'block_size': 128,
        'subdomains': num_blocks,
        'conn_axis': 'y',
        'mode': 'benchmark',
        'periodic_x': False,
        'periodic_y': False,
        'lat_nx': 3710,
        'lat_ny': 3990 * num_blocks,
    }

    SeparationSCSim.subdomain = TestDomain
    ctrl = LBSimulationController(SeparationSCSim, EqualSubdomainsGeometry2D,
                                  settings)
    timing_infos, min_timings, max_timings, subdomains = ctrl.run()
    util.save_result('weak_2d_binary', num_blocks, timing_infos, min_timings,
                     max_timings, subdomains)