Skip to content

Commit 48902b2

Browse files
committed
Conditional setBackend
1 parent 09d6b8c commit 48902b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ main = do
2626
-- default backend throw (e.g. cl::Error: clGetDeviceIDs). Fall back to
2727
-- the CPU backend when running in CI.
2828
inCI <- isJust <$> lookupEnv "CI"
29-
A.setBackend (if inCI then A.CPU else A.Default)
29+
when (not inCI) (A.setBackend A.Default)
3030
-- checks (Proxy :: Proxy (A.Array (A.Complex Float)))
3131
-- checks (Proxy :: Proxy (A.Array (A.Complex Double)))
3232
-- checks (Proxy :: Proxy (A.Array Double))

0 commit comments

Comments
 (0)