Skip to content

Commit

Permalink
functional only if cuDNN is functional
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Jul 10, 2024
1 parent a12e4eb commit 1d0489f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ext/DeviceUtilsCUDAExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ function _check_use_cuda!()
@warn """

Check warning on line 38 in ext/DeviceUtilsCUDAExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/DeviceUtilsCUDAExt.jl#L37-L38

Added lines #L37 - L38 were not covered by tests
cuDNN is not functional. Some functionality will not be available.
""" maxlog=1
end
end

# We make the device selectable only if cuDNN is functional
# to avoid issues with convolutions and other deep learning operations
USE_CUDA_GPU[] = false

Check warning on line 44 in ext/DeviceUtilsCUDAExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/DeviceUtilsCUDAExt.jl#L44

Added line #L44 was not covered by tests
end
end
return

Check warning on line 47 in ext/DeviceUtilsCUDAExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/DeviceUtilsCUDAExt.jl#L47

Added line #L47 was not covered by tests
end

Expand Down

0 comments on commit 1d0489f

Please sign in to comment.