Skip to content

Commit

Permalink
add automate onGPU
Browse files Browse the repository at this point in the history
  • Loading branch information
annamariadziubyna committed Sep 18, 2024
1 parent a04f40b commit 7a949ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ using LinearAlgebra
using TensorCast
using Statistics
using MetaGraphs
using CUDA

disable_logging(LogLevel(1))

onGPU = true
user_onGPU = true # or false, based on user's preference
gpu_available = CUDA.functional()
onGPU = user_onGPU && gpu_available

using Test
my_tests = []
Expand Down

0 comments on commit 7a949ad

Please sign in to comment.