Skip to content
Snippets Groups Projects
Commit 95f5fbdd authored by Jean-Matthieu Etancelin's avatar Jean-Matthieu Etancelin
Browse files

syntax and add limitation to multi-gpu

parent 79ae5842
No related branches found
No related tags found
No related merge requests found
......@@ -194,17 +194,14 @@ kernels_config[3][DOUBLE_GPU]['advec_MS_comm'] = \
(['common.cl', "remeshing/weights_noVec_builtin.cl",
'kernels/comm_MS_advection_noVec.cl'],
False, 1, advection_index_space_3d)
kernels_config[3][DOUBLE_GPU]['remesh_comm'] = \
(['common.cl', 'remeshing/weights_noVec.cl',
'kernels/comm_remeshing_noVec.cl'],
False, 1, remeshing_index_space_3d)
kernels_config[3][DOUBLE_GPU]['advec_and_remesh_comm'] = \
(['common.cl', 'remeshing/weights_noVec.cl',
'kernels/comm_advection_and_remeshing_noVec.cl'],
False, 1, advection_and_remeshing_index_space)
kernels_config[3][DOUBLE_GPU]['advec_MS_and_remesh_comm'] = \
(['common.cl', 'remeshing/weights_noVec.cl',
'kernels/comm_advection_MS_and_remeshing_noVec.cl'],
......
......@@ -84,7 +84,7 @@ class GPUParticleAdvection(ParticleAdvection, GPUOperator):
if MultiScale in self.method:
if self.method[MultiScale] is not None:
self._isMultiScale = True
if self._isMultiScale:
self._synchronize = True
......
......@@ -47,13 +47,14 @@ class MultiGPUParticleAdvection(GPUParticleAdvection):
super(MultiGPUParticleAdvection, self).__init__(**kwds)
msg = "max_dt and _max_velocity must be given to advection "
msg += "for computing communication buffer sizes."
assert max_dt is not None and max_velocity is not None
msg = "The Multi-GPU works only with the RK2 TimeIntegrator"
assert self.method[TimeIntegrator] == RK2, msg
assert self._comm_size > 1, 'Parallel only'
assert self.dim == 3, 'A 2D multi-GPU version is not yet available'
msg = "max_dt and _max_velocity must be given to advection "
msg += "for computing communication buffer sizes."
assert max_dt is not None and max_velocity is not None
assert self.fields_topo.cutdir[self.direction]
assert self.fields_topo.shape[self.direction] > 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment