Skip to content

Commit

Permalink
Update nvidia options
Browse files Browse the repository at this point in the history
  • Loading branch information
ccuetom committed Jul 24, 2024
1 parent a821bfd commit bb20a84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stride/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async def loop(worker, shot_id):

if using_gpu:
deviceid = devices[worker.indices[1] % num_gpus]
if platform == 'nvidia-acc':
if platform in ['nvidia-acc', 'nvidia-cuda']:
devito_args = _kwargs.get('devito_args', {})
devito_args['deviceid'] = deviceid
_kwargs['devito_args'] = devito_args
Expand Down Expand Up @@ -312,7 +312,7 @@ async def loop(worker, shot_id):

if using_gpu:
deviceid = devices[worker.indices[1] % num_gpus]
if platform == 'nvidia-acc':
if platform in ['nvidia-acc', 'nvidia-cuda']:
devito_args = _kwargs.get('devito_args', {})
devito_args['deviceid'] = deviceid
_kwargs['devito_args'] = devito_args
Expand Down

0 comments on commit bb20a84

Please sign in to comment.