From 5f7d025037e2464ea0a59883d37fbc90feb5f290 Mon Sep 17 00:00:00 2001 From: Emilien Bauer Date: Mon, 27 Nov 2023 13:39:38 +0000 Subject: [PATCH] Fix default opts for diffusion examples. --- fast/diffusion_2D_wBCs.py | 2 +- fast/diffusion_3D_wBCs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fast/diffusion_2D_wBCs.py b/fast/diffusion_2D_wBCs.py index 8f0ddbdac7..0d117eee35 100644 --- a/fast/diffusion_2D_wBCs.py +++ b/fast/diffusion_2D_wBCs.py @@ -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)}) diff --git a/fast/diffusion_3D_wBCs.py b/fast/diffusion_3D_wBCs.py index e93cc92e81..30e52bb055 100644 --- a/fast/diffusion_3D_wBCs.py +++ b/fast/diffusion_3D_wBCs.py @@ -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)