Skip to content

Commit a42ee8a

Browse files
committed
make success not error when nvcc isn't available
1 parent 30a76f7 commit a42ee8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backends/cudanative/cudanative.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ immutable CUFunction{T}
146146
kernel::T
147147
end
148148

149-
if success(`nvcc --version`)
149+
if try success(`nvcc --version`); catch false; end
150150
include("compilation.jl")
151151
hasnvcc() = true
152152
else

test/cudanative.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ end
102102
jy = Array(y)
103103
@test map!(sin, jy, jy) Array(x)
104104
end
105-
105+
#
106106
# if CUBackend.hasnvcc()
107107
# @testset "Custom kernel from string function" begin
108108
# x = GPUArray(rand(Float32, 100))

0 commit comments

Comments
 (0)