Skip to content
Snippets Groups Projects
Commit 65fe2898 authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

debug traces

parent cf4659c2
No related branches found
No related tags found
No related merge requests found
...@@ -34,8 +34,8 @@ def run(npts=64+1, cfl=0.5): ...@@ -34,8 +34,8 @@ def run(npts=64+1, cfl=0.5):
d3d=(npts,)*dim d3d=(npts,)*dim
box = Box(length=(2*pi,)*dim) box = Box(length=(2*pi,)*dim)
# impl = Implementation.PYTHON impl = Implementation.PYTHON
impl = Implementation.OPENCL_CODEGEN # impl = Implementation.OPENCL_CODEGEN
if impl is Implementation.OPENCL_CODEGEN: if impl is Implementation.OPENCL_CODEGEN:
autotuner_config = OpenClKernelAutotunerConfig( autotuner_config = OpenClKernelAutotunerConfig(
...@@ -77,6 +77,7 @@ def run(npts=64+1, cfl=0.5): ...@@ -77,6 +77,7 @@ def run(npts=64+1, cfl=0.5):
dx = dfields[scalar].space_step.min() dx = dfields[scalar].space_step.min()
dt = cfl*dx dt = cfl*dx
print 'DT = {}'.format(dt)
simu = Simulation(start=0.0, end=pi, dt0=0.01) simu = Simulation(start=0.0, end=pi, dt0=0.01)
problem.solve(simu) problem.solve(simu)
......
...@@ -27,7 +27,7 @@ __KERNEL_DEBUG__ = True ...@@ -27,7 +27,7 @@ __KERNEL_DEBUG__ = True
__ENABLE_LONG_TESTS__ = "OFF" is "ON" __ENABLE_LONG_TESTS__ = "OFF" is "ON"
# OpenCL # OpenCL
__DEFAULT_PLATFORM_ID__ = 1 __DEFAULT_PLATFORM_ID__ = 0
__DEFAULT_DEVICE_ID__ = 0 __DEFAULT_DEVICE_ID__ = 0
......
...@@ -242,14 +242,14 @@ class OpenClDirectionalAdvection(DirectionalAdvectionBase, OpenClDirectionalOper ...@@ -242,14 +242,14 @@ class OpenClDirectionalAdvection(DirectionalAdvectionBase, OpenClDirectionalOper
queue = self.cl_env.default_queue queue = self.cl_env.default_queue
dt = self.precision(simulation.time_step * self.dt_coeff) dt = self.precision(simulation.time_step * self.dt_coeff)
print 'DT= {}'.format(dt) # print 'DT= {}'.format(dt)
evt = self.advection_kernel_launcher(queue=queue, dt=dt) evt = self.advection_kernel_launcher(queue=queue, dt=dt)
print 'P' # print 'P'
self.dposition.print_with_ghosts() # self.dposition.print_with_ghosts()
evt = self.remesh_kernel_launcher(queue=queue) evt = self.remesh_kernel_launcher(queue=queue)
print 'S (before accumulation)' # print 'S (before accumulation)'
self.dadvected_fields_out.values()[0].print_with_ghosts() # self.dadvected_fields_out.values()[0].print_with_ghosts()
evt = self.accumulate_and_exchange(queue=queue) evt = self.accumulate_and_exchange(queue=queue)
print 'S (after accumulation)' # print 'S (after accumulation)'
self.dadvected_fields_out.values()[0].print_with_ghosts() # self.dadvected_fields_out.values()[0].print_with_ghosts()
evt.wait() evt.wait()
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