Skip to content

Commit

Permalink
Update gpu_burn.py
Browse files Browse the repository at this point in the history
Define hip and cuda as environment feature
  • Loading branch information
CedricJour authored Oct 4, 2024
1 parent 7a1e65f commit 79046da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpctestlib/microbenchmarks/gpu/gpu_burn.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def setup_build(self):

if self.gpu_build is None:
# Try to set the build type from the partition features
if 'cuda' in curr_part.features:
if 'cuda' in curr_env.features:
self.gpu_build = 'cuda'
elif 'hip' in curr_part.features:
elif 'hip' in curr_env.features:
self.gpu_build = 'hip'

gpu_devices = curr_part.select_devices('gpu')
Expand Down

0 comments on commit 79046da

Please sign in to comment.