Skip to content

Commit

Permalink
Fix default opts for diffusion examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
PapyChacal committed Nov 27, 2023
1 parent d173494 commit 5f7d025
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fast/diffusion_2D_wBCs.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
if args.devito:

# To measure Devito at its best on GPU, we have to set the tile siwe manually
opt = None
opt = 'advanced'
if configuration['platform'].name == 'nvidiaX':
opt = ('advanced', {'par-tile': (32, 4, 8)})

Expand Down
2 changes: 1 addition & 1 deletion fast/diffusion_3D_wBCs.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
u.data[:, :, :, int(nz/2)] = 1

# To measure Devito at its best on GPU, we have to set the tile siwe manually
opt = None
opt = 'advanced'
if configuration['platform'].name == 'nvidiaX':
opt = ('advanced', {'par-tile': (32, 4, 8)})
op = Operator([eq_stencil], name='DevitoDiffusionOperator', opt=opt)
Expand Down

0 comments on commit 5f7d025

Please sign in to comment.