Skip to content

Commit

Permalink
Merge pull request #40 from xdslproject/diffusion_opts
Browse files Browse the repository at this point in the history
bench: Fix default opts for diffusion.
  • Loading branch information
georgebisbas authored Nov 27, 2023
2 parents d173494 + 5f7d025 commit a88175e
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 a88175e

Please sign in to comment.