Skip to content

Commit e274fbe

Browse files
author
Caspar van Leeuwen
committed
Merge branch 'CUDA_cuDNN_hooks_202506' of github.com:casparvl/software-layer-scripts into CUDA_cuDNN_hooks_202506
2 parents 079e04c + 15324ec commit e274fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eb_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def get_cuda_version(ec, check_deps=True, check_builddeps=True):
158158
If (ec) is simply CUDA itself, it will return the version.
159159
If no CUDA is used as (build)dependency, this function returns None.
160160
"""
161+
# Provide default
161162
cudaver = None
162163
ec_dict = ec.asdict()
163164

@@ -173,7 +174,6 @@ def get_cuda_version(ec, check_deps=True, check_builddeps=True):
173174
if check_builddeps:
174175
deps = deps + ec_dict['builddependencies'][:]
175176

176-
# Provide default
177177
for dep in deps:
178178
if dep['name'] == 'CUDA':
179179
cudaver = dep['version']

0 commit comments

Comments
 (0)