Skip to content

Commit 463531b

Browse files
committed
fix error on calling CUDA before testing its functional
1 parent 36c63be commit 463531b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
with:
5050
files: lcov.info
5151
token: ${{ secrets.CODECOV_TOKEN }}
52-
fail_ci_if_error: false
52+
#fail_ci_if_error: false
53+
fail_ci_if_error: true
5354
docs:
5455
name: Documentation
5556
runs-on: ubuntu-latest

test/test_elbo.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ end;
5757

5858
# setup g as FluxNN on gpu
5959
using Flux
60-
scenario_flux = (scenario..., :use_Flux)
61-
g_flux, ϕg0_flux_cpu = get_hybridcase_MLapplicator(case; scenario = scenario_flux)
60+
61+
if CUDA.functional()
62+
scenario_flux = (scenario..., :use_Flux)
63+
g_flux, ϕg0_flux_cpu = get_hybridcase_MLapplicator(case; scenario = scenario_flux)
64+
end
6265

6366
if CUDA.functional()
6467
@testset "generate_ζ gpu" begin

0 commit comments

Comments
 (0)