Skip to content

Commit 79046da

Browse files
authored
Update gpu_burn.py
Define hip and cuda as environment feature
1 parent 7a1e65f commit 79046da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hpctestlib/microbenchmarks/gpu/gpu_burn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def setup_build(self):
5252

5353
if self.gpu_build is None:
5454
# Try to set the build type from the partition features
55-
if 'cuda' in curr_part.features:
55+
if 'cuda' in curr_env.features:
5656
self.gpu_build = 'cuda'
57-
elif 'hip' in curr_part.features:
57+
elif 'hip' in curr_env.features:
5858
self.gpu_build = 'hip'
5959

6060
gpu_devices = curr_part.select_devices('gpu')

0 commit comments

Comments
 (0)