Ejemplo n.º 1
0
 def setUp(self):
     config = LBConfig()
     config.init_iters = 0
     config.seed = 0
     config.precision = 'single'
     config.block_size = 8
     config.mem_alignment = 8
     config.lat_nx, config.lat_ny, config.lat_nz = self.lattice_size
     config.logger = DummyLogger()
     config.grid = 'D3Q19'
     config.mode = 'batch'
     self.sim = LBSim(config)
     self.backend = DummyBackend()
Ejemplo n.º 2
0
 def setUp(self):
     config = LBConfig()
     config.init_iters = 0
     config.seed = 0
     config.precision = 'single'
     config.block_size = 8
     config.mem_alignment = 8
     config.lat_nx, config.lat_ny, config.lat_nz = self.lattice_size
     config.logger = DummyLogger()
     config.grid = 'D3Q19'
     config.mode = 'batch'
     self.sim = LBSim(config)
     self.backend = DummyBackend()
Ejemplo n.º 3
0
 def setUp(self):
     config = LBConfig()
     config.init_iters = 0
     config.seed = 0
     config.access_pattern = 'AA'
     config.precision = 'single'
     config.block_size = 8
     config.mem_alignment = 8
     config.mode = 'batch'
     # Does not affect behaviour of any of the functions tested here.
     config.lat_nz, config.lat_nx, config.lat_ny = self.size_3d
     config.logger = DummyLogger()
     config.grid = 'D3Q19'
     self.sim = LBSim(config)
     self.backend = DummyBackend()
Ejemplo n.º 4
0
 def setUp(self):
     config = LBConfig()
     config.init_iters = 0
     config.seed = 0
     config.access_pattern = 'AA'
     config.precision = 'single'
     config.block_size = 8
     config.mem_alignment = 8
     config.mode = 'batch'
     # Does not affect behaviour of any of the functions tested here.
     config.lat_nz, config.lat_nx, config.lat_ny = self.size_3d
     config.logger = DummyLogger()
     config.grid = 'D3Q19'
     self.sim = LBSim(config)
     self.backend = DummyBackend()
Ejemplo n.º 5
0
 def setUp(self):
     config = LBConfig()
     config.seed = 0
     config.init_iters = 0
     config.access_pattern = 'AA'
     config.precision = 'single'
     config.block_size = 8
     config.mem_alignment = 8
     config.mode = 'batch'
     config.lat_nx, config.lat_ny = 40, 80
     config.logger = DummyLogger()
     config.grid = 'D2Q9'
     config.benchmark_sample_from = 0
     config.benchmark_minibatch = 1
     config.bulk_boundary_split = False
     config.output = ''
     self.config = config
     self.backend = DummyBackend()
     self.ctx = zmq.Context()
Ejemplo n.º 6
0
 def setUp(self):
     config = LBConfig()
     config.seed = 0
     config.init_iters = 0
     config.access_pattern = 'AA'
     config.precision = 'single'
     config.block_size = 8
     config.mem_alignment = 8
     config.mode = 'batch'
     config.lat_nx, config.lat_ny = 40, 80
     config.logger = DummyLogger()
     config.grid = 'D2Q9'
     config.benchmark_sample_from = 0
     config.benchmark_minibatch = 1
     config.bulk_boundary_split = False
     config.output = ''
     self.config = config
     self.backend = DummyBackend()
     self.ctx = zmq.Context()
Ejemplo n.º 7
0
 def setUp(self):
     config = LBConfig()
     config.init_iters = 0
     config.seed = 0
     config.precision = 'single'
     config.block_size = 8
     config.mem_alignment = 8
     config.node_addressing = 'direct'
     config.lat_nx, config.lat_ny, config.lat_nz = self.lattice_size
     config.logger = DummyLogger()
     config.grid = 'D3Q19'
     config.mode = 'batch'
     config.periodic_x = False
     config.periodic_y = False
     config.periodic_z = False
     config.use_link_tags = False
     config.time_dependence = False
     config.space_dependence = False
     self.sim = LBSim(config)
     self.backend = DummyBackend()
Ejemplo n.º 8
0
 def setUp(self):
     config = LBConfig()
     config.init_iters = 0
     config.seed = 0
     config.precision = "single"
     config.block_size = 8
     config.mem_alignment = 8
     config.node_addressing = "direct"
     config.lat_nx, config.lat_ny = self.lattice_size
     config.logger = DummyLogger()
     config.grid = "D2Q9"
     config.mode = "batch"
     config.periodic_x = False
     config.periodic_y = False
     config.use_link_tags = False
     config.time_dependence = False
     config.space_dependence = False
     config.access_pattern = "AB"
     self.sim = LBSim(config)
     self.config = config
     self.backend = DummyBackend()
Ejemplo n.º 9
0
 def setUp(self):
     config = LBConfig()
     config.init_iters = 0
     config.seed = 0
     config.precision = 'single'
     config.block_size = 8
     config.mem_alignment = 8
     config.node_addressing = 'direct'
     config.lat_nx, config.lat_ny, config.lat_nz = self.lattice_size
     config.logger = DummyLogger()
     config.grid = 'D3Q19'
     config.mode = 'batch'
     config.periodic_x = False
     config.periodic_y = False
     config.periodic_z = False
     config.use_link_tags = False
     config.time_dependence = False
     config.space_dependence = False
     config.access_pattern = 'AB'
     self.sim = LBSim(config)
     self.backend = DummyBackend()