Skip to content

Commit

Permalink
Ensure wavefield reallocation with nvidia
Browse files Browse the repository at this point in the history
  • Loading branch information
ccuetom committed Oct 5, 2023
1 parent 2779afc commit b7a6285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stride/physics/iso_acoustic/devito.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ async def before_forward(self, wavelets, vp, rho=None, alpha=None, **kwargs):

else:
# If the wavefield is lazily streamed, re-create every time
if save_wavefield and 'nvidia' in platform and devito.pro_available:
if 'nvidia' in platform and devito.pro_available:
self.dev_grid.undersampled_time_function('p_saved',
bounds=kwargs.pop('save_bounds', None),
factor=self.undersampling_factor,
Expand Down

0 comments on commit b7a6285

Please sign in to comment.