# CUDAnative tests failing on Windows 10

**URL:** <https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465>\
**Category:** GPU\
**Tags:** question\
**Created:** [May 22, 2019, 9:10am UTC](https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465 "2019-05-22T09:10:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![manderson](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@manderson](https://discourse.julialang.org/u/manderson)\
**Post date:** [May 22, 2019, 9:10am UTC](https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465/1 "2019-05-22T09:10:10Z")

</div>

Hello,  
I’m having some platform dependent problems getting CUDAnative working all the way. On my Ubuntu system I am having no problems, but on my windows machines the tests for the package are failing and I cannot make heads or tails out of it. I am seeing the same errors on 2 different systems with different GPUs, but both with Windows 10. I am including the mess that comes out of testing CUDAnative in the package manager.

Any ideas as to what the problem is and how I can fix it? I would really like to get this working on Windows.

Apologies for the newbie post.

```julia
(v1.1) pkg> test CUDAnative
   Testing CUDAnative
 Resolving package versions...
    Status `C:\Users\matda\AppData\Local\Temp\jl_50F2.tmp\Manifest.toml`
  [79e6a3ab] Adapt v0.4.2
  [3895d2a7] CUDAapi v0.6.3
  [c5f51814] CUDAdrv v3.0.0
  [be33ccc6] CUDAnative v2.1.0
  [a8cc5b0e] Crayons v4.0.0
  [864edb3b] DataStructures v0.15.0
  [929cbde3] LLVM v1.1.0
  [bac558e1] OrderedCollections v1.1.0
  [a759f4b9] TimerOutputs v0.5.0
  [2a0f44e3] Base64 [`@stdlib/Base64`]
  [ade2ca70] Dates [`@stdlib/Dates`]
  [8ba89e20] Distributed [`@stdlib/Distributed`]
  [b77e0a4c] InteractiveUtils [`@stdlib/InteractiveUtils`]
  [76f85450] LibGit2 [`@stdlib/LibGit2`]
  [8f399da3] Libdl [`@stdlib/Libdl`]
  [37e2e46d] LinearAlgebra [`@stdlib/LinearAlgebra`]
  [56ddb016] Logging [`@stdlib/Logging`]
  [d6f4376e] Markdown [`@stdlib/Markdown`]
  [44cfe95a] Pkg [`@stdlib/Pkg`]
  [de0858da] Printf [`@stdlib/Printf`]
  [3fa0cd96] REPL [`@stdlib/REPL`]
  [9a3f8284] Random [`@stdlib/Random`]
  [ea8e919c] SHA [`@stdlib/SHA`]
  [9e88b42a] Serialization [`@stdlib/Serialization`]
  [6462fe0b] Sockets [`@stdlib/Sockets`]
  [8dfed614] Test [`@stdlib/Test`]
  [cf7118a7] UUIDs [`@stdlib/UUIDs`]
  [4ec0a83e] Unicode [`@stdlib/Unicode`]
[ Info: Testing using device GeForce GTX 1060
argument passing: Test Failed at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:876
  Expression: out == "1 2 3"
   Evaluated: "1 0 2" == "1 2 3"
Stacktrace:
 [1] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:876
 [2] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [3] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:863
 [4] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [5] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:808
 [6] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [7] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:5
argument passing: Test Failed at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:876
  Expression: out == "1 2 3"
   Evaluated: "1 0 2" == "1 2 3"
Stacktrace:
 [1] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:876
 [2] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [3] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:863
 [4] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [5] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:808
 [6] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [7] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:5
argument passing: Test Failed at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:876
  Expression: out == "1 2 3"
   Evaluated: "1 0 2" == "1 2 3"
Stacktrace:
 [1] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:876
 [2] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [3] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:863
 [4] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [5] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:808
 [6] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [7] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:5
argument passing: Test Failed at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:876
  Expression: out == "1 2 3"
   Evaluated: "1 0 2" == "1 2 3"
Stacktrace:
 [1] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:876
 [2] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [3] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:863
 [4] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [5] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:808
 [6] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
 [7] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:5
cooperative groups: Error During Test at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:952
  Got exception outside of a @test
  CUDA error: operation not supported (code #801, ERROR_NOT_SUPPORTED)
  Stacktrace:
   [1] macro expansion at C:\Users\matda\.julia\packages\CUDAdrv\3cR2F\src\base.jl:147 [inlined]
   [2] (::getfield(CUDAdrv, Symbol("##25#26")){Bool,Int64,CuStream,CuFunction})(::Array{Ptr{Nothing},1}) at C:\Users\matda\.julia\packages\CUDAdrv\3cR2F\src\execution.jl:92
   [3] macro expansion at .\gcutils.jl:87 [inlined]
   [4] macro expansion at C:\Users\matda\.julia\packages\CUDAdrv\3cR2F\src\execution.jl:61 [inlined]
   [5] pack_arguments(::getfield(CUDAdrv, Symbol("##25#26")){Bool,Int64,CuStream,CuFunction}, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}) at C:\Users\matda\.julia\packages\CUDAdrv\3cR2F\src\execution.jl:40
   [6] #launch#24(::Int64, ::Int64, ::Bool, ::Int64, ::CuStream, ::Function, ::CuFunction, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}, ::Vararg{CuDeviceArray{Float32,2,CUDAnative.AS.Global},N} where N) at C:\Users\matda\.julia\packages\CUDAdrv\3cR2F\src\execution.jl:90
   [7] #launch at .\none:0 [inlined]
   [8] #30 at C:\Users\matda\.julia\packages\CUDAdrv\3cR2F\src\execution.jl:179 [inlined]
   [9] macro expansion at .\gcutils.jl:87 [inlined]
   [10] macro expansion at C:\Users\matda\.julia\packages\CUDAdrv\3cR2F\src\execution.jl:139 [inlined]
   [11] convert_arguments at C:\Users\matda\.julia\packages\CUDAdrv\3cR2F\src\execution.jl:123 [inlined]
   [12] #cudacall#29 at C:\Users\matda\.julia\packages\CUDAdrv\3cR2F\src\execution.jl:178 [inlined]
   [13] #cudacall at .\none:0 [inlined]
   [14] #cudacall#155 at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\src\execution.jl:272 [inlined]
   [15] #cudacall at .\none:0 [inlined]
   [16] macro expansion at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\src\execution.jl:257 [inlined]
   [17] #call#143(::Base.Iterators.Pairs{Symbol,Integer,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:cooperative, :threads, :blocks),Tuple{Bool,Int64,Int64}}}, ::typeof(CUDAnative.call), ::CUDAnative.HostKernel{getfield(Main, Symbol("#kernel_vadd#324"))(),Tuple{CuDeviceArray{Float32,2,CUDAnative.AS.Global},CuDeviceArray{Float32,2,CUDAnative.AS.Global},CuDeviceArray{Float32,2,CUDAnative.AS.Global}}}, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}) at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\src\execution.jl:234
   [18] (::getfield(CUDAnative, Symbol("#kw##call")))(::NamedTuple{(:cooperative, :threads, :blocks),Tuple{Bool,Int64,Int64}}, ::typeof(CUDAnative.call), ::CUDAnative.HostKernel{getfield(Main, Symbol("#kernel_vadd#324"))(),Tuple{CuDeviceArray{Float32,2,CUDAnative.AS.Global},CuDeviceArray{Float32,2,CUDAnative.AS.Global},CuDeviceArray{Float32,2,CUDAnative.AS.Global}}}, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}, ::Vararg{CuDeviceArray{Float32,2,CUDAnative.AS.Global},N} where N) at .\none:0
   [19] #call#158(::Base.Iterators.Pairs{Symbol,Integer,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:cooperative, :threads, :blocks),Tuple{Bool,Int64,Int64}}}, ::CUDAnative.HostKernel{getfield(Main, Symbol("#kernel_vadd#324"))(),Tuple{CuDeviceArray{Float32,2,CUDAnative.AS.Global},CuDeviceArray{Float32,2,CUDAnative.AS.Global},CuDeviceArray{Float32,2,CUDAnative.AS.Global}}}, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}, ::Vararg{CuDeviceArray{Float32,2,CUDAnative.AS.Global},N} where N) at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\src\execution.jl:395
   [20] (::getfield(CUDAnative, Symbol("#kw#HostKernel")))(::NamedTuple{(:cooperative, :threads, :blocks),Tuple{Bool,Int64,Int64}}, ::CUDAnative.HostKernel{getfield(Main, Symbol("#kernel_vadd#324"))(),Tuple{CuDeviceArray{Float32,2,CUDAnative.AS.Global},CuDeviceArray{Float32,2,CUDAnative.AS.Global},CuDeviceArray{Float32,2,CUDAnative.AS.Global}}}, ::CuDeviceArray{Float32,2,CUDAnative.AS.Global}, ::Vararg{CuDeviceArray{Float32,2,CUDAnative.AS.Global},N} where N) at .\none:0
   [21] top-level scope at gcutils.jl:87
   [22] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\src\execution.jl:171
   [23] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:968
   [24] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
   [25] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:953
   [26] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
   [27] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\device\execution.jl:5
   [28] include at .\boot.jl:326 [inlined]
   [29] include_relative(::Module, ::String) at .\loading.jl:1038
   [30] include(::Module, ::String) at .\sysimg.jl:29
   [31] include(::String) at .\client.jl:403
   [32] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\runtests.jl:70
   [33] top-level scope at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
   [34] top-level scope at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\runtests.jl:13
   [35] include at .\boot.jl:326 [inlined]
   [36] include_relative(::Module, ::String) at .\loading.jl:1038
   [37] include(::Module, ::String) at .\sysimg.jl:29
   [38] include(::String) at .\client.jl:403
   [39] top-level scope at none:0
   [40] eval(::Module, ::Any) at .\boot.jl:328
   [41] exec_options(::Base.JLOptions) at .\client.jl:243
   [42] _start() at .\client.jl:436
 ────────────────────────────────────────────────────────────────────────────────────
                                             Time Allocations
                                     ────────────────────── ───────────────────────
          Tot / % measured: 333s / 5.94% 9.55GiB / 17.0%

 Section ncalls time %tot avg alloc %tot avg
 ────────────────────────────────────────────────────────────────────────────────────
 LLVM middle-end 309 8.98s 45.5% 29.1ms 637MiB 38.3% 2.06MiB
   IR generation 309 6.49s 32.9% 21.0ms 566MiB 34.0% 1.83MiB
     emission 309 3.96s 20.0% 12.8ms 399MiB 23.9% 1.29MiB
     rewrite 308 2.32s 11.8% 7.54ms 162MiB 9.74% 540KiB
       lower throw 308 666ms 3.37% 2.16ms 54.1MiB 3.25% 180KiB
       hide unreachable 1.76k 375ms 1.90% 213μs 22.7MiB 1.36% 13.2KiB
         predecessors 1.76k 179ms 0.91% 102μs 12.8MiB 0.77% 7.43KiB
         find 1.76k 102ms 0.52% 58.1μs 438KiB 0.03% 255B
         replace 1.76k 77.8ms 0.39% 44.2μs 5.33MiB 0.32% 3.10KiB
       hide trap 308 56.2ms 0.28% 182μs 3.08MiB 0.19% 10.2KiB
     clean-up 308 129ms 0.66% 420μs 5.05MiB 0.30% 16.8KiB
     linking 308 64.6ms 0.33% 210μs 4.81KiB 0.00% 16.0B
   optimization 303 2.24s 11.4% 7.40ms 68.9MiB 4.14% 233KiB
   device library 1 103ms 0.52% 103ms 1.44KiB 0.00% 1.44KiB
   runtime library 63 70.4ms 0.36% 1.12ms 74.0KiB 0.00% 1.18KiB
 validation 548 6.96s 35.3% 12.7ms 586MiB 35.2% 1.07MiB
 CUDA object generation 216 3.03s 15.3% 14.0ms 437MiB 26.2% 2.02MiB
   linking 216 1.86s 9.42% 8.62ms 216MiB 13.0% 1.00MiB
   compilation 216 1.16s 5.90% 5.39ms 220MiB 13.2% 1.02MiB
 LLVM back-end 254 773ms 3.92% 3.04ms 6.00MiB 0.36% 24.2KiB
   machine-code generation 254 663ms 3.36% 2.61ms 953KiB 0.06% 3.75KiB
   preparation 254 110ms 0.55% 431μs 5.06MiB 0.30% 20.4KiB
 Julia front-end 310 4.25ms 0.02% 13.7μs 81.3KiB 0.00% 269B
 strip debug info 68 377μs 0.00% 5.54μs 0.00B 0.00% 0.00B
 ────────────────────────────────────────────────────────────────────────────────────
Test Summary: | Pass Fail Error Broken Total
CUDAnative | 354 4 1 1 360
  base interface | No tests
  pointer | 20 20
  code generation | 90 1 91
  code generation (relying on a device) | 6 6
  execution | 68 4 1 73
    @cuda | 10 10
    argument passing | 28 28
    exceptions | 17 17
    shmem divergence bug | 7 7
    dynamic parallelism | 6 4 10
      basic usage | 1 1
      anonymous functions | 1 1
      closures | 1 1
      argument passing | 1 4 5
      self-recursion | 1 1
      deep recursion | 1 1
    cooperative groups | 1 1
  pointer | 41 41
  device arrays | 20 20
  CUDA functionality | 98 98
  examples | 6 6
ERROR: LoadError: Some tests did not pass: 354 passed, 4 failed, 1 errored, 1 broken.
in expression starting at C:\Users\matda\.julia\packages\CUDAnative\wU0tS\test\runtests.jl:9
ERROR: Package CUDAnative errored during testing

```

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [May 22, 2019, 1:14pm UTC](https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465/2 "2019-05-22T13:14:15Z")

</div>

Ah, I know what’s wrong. Another case of using the wrong formatting specifiers. Shouldn’t impact functionality though, so there’s nothing wrong with CUDAnative per se.

The ERROR\_NOT\_SUPPORTED is because apparently our tests try to use cooperative groups when they aren’t supported. Again, nothing wrong with CUDAnative, the tests should be fixed.

---

<div class="post-metadata">

**Author:** ![manderson](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@manderson](https://discourse.julialang.org/u/manderson)\
**Post date:** [May 22, 2019, 11:17pm UTC](https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465/3 "2019-05-22T23:17:53Z")

</div>

Thanks for clearing that up. I’m also having trouble with errors and CuArrays. When I test CuArrays, it returns numerous errors, but all tests pass. Then when I load the package I get a bunch of errors. Are these errors similar to the CUDAnative test erros, or do I have a build problem?

Again, sorry for the uninspiring questions, but I’d really like to know that the packages are all working properly before I start implementing things.

```julia
             _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.0.4 (2019-05-16)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> using CUDAnative

julia> using CUDAdrv

julia> using CuArrays
Internal error: encountered unexpected error in runtime:
BoundsError(a=Array{Core.Compiler.BasicBlock, (32,)}[
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=1, last=7), preds=Array{Int64, (1,)}[32], succs=Array{Int64, (1,)}[2]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=8, last=14), preds=Array{Int64, (1,)}[1], succs=Array{Int64, (2,)}[5, 3]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=15, last=20), preds=Array{Int64, (1,)}[2], succs=Array{Int64, (1,)}[4]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=21, last=21), preds=Array{Int64, (1,)}[3], succs=Array{Int64, (1,)}[7]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=22, last=28), preds=Array{Int64, (1,)}[2], succs=Array{Int64, (1,)}[6]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=29, last=29), preds=Array{Int64, (1,)}[5], succs=Array{Int64, (1,)}[7]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=30, last=47), preds=Array{Int64, (2,)}[4, 6], succs=Array{Int64, (2,)}[9, 8]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=48, last=49), preds=Array{Int64, (1,)}[7], succs=Array{Int64, (0,)}[]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=50, last=50), preds=Array{Int64, (1,)}[7], succs=Array{Int64, (1,)}[10]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=51, last=52), preds=Array{Int64, (1,)}[9], succs=Array{Int64, (1,)}[11]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=53, last=53), preds=Array{Int64, (1,)}[10], succs=Array{Int64, (1,)}[12]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=54, last=54), preds=Array{Int64, (1,)}[11], succs=Array{Int64, (1,)}[13]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=55, last=56), preds=Array{Int64, (1,)}[12], succs=Array{Int64, (1,)}[14]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=57, last=65), preds=Array{Int64, (1,)}[13], succs=Array{Int64, (1,)}[15]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=66, last=71), preds=Array{Int64, (1,)}[14], succs=Array{Int64, (2,)}[17, 16]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=72, last=74), preds=Array{Int64, (1,)}[15], succs=Array{Int64, (0,)}[]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=75, last=82), preds=Array{Int64, (1,)}[15], succs=Array{Int64, (2,)}[19, 18]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=83, last=84), preds=Array{Int64, (1,)}[17], succs=Array{Int64, (0,)}[]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=85, last=85), preds=Array{Int64, (1,)}[17], succs=Array{Int64, (1,)}[20]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=86, last=87), preds=Array{Int64, (1,)}[19], succs=Array{Int64, (1,)}[21]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=88, last=88), preds=Array{Int64, (1,)}[20], succs=Array{Int64, (1,)}[22]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=89, last=89), preds=Array{Int64, (1,)}[21], succs=Array{Int64, (1,)}[23]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=90, last=90), preds=Array{Int64, (1,)}[22], succs=Array{Int64, (1,)}[24]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=91, last=92), preds=Array{Int64, (1,)}[23], succs=Array{Int64, (1,)}[25]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=93, last=93), preds=Array{Int64, (1,)}[24], succs=Array{Int64, (1,)}[26]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=94, last=94), preds=Array{Int64, (1,)}[25], succs=Array{Int64, (1,)}[27]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=95, last=95), preds=Array{Int64, (1,)}[26], succs=Array{Int64, (2,)}[29, 28]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=96, last=98), preds=Array{Int64, (1,)}[27], succs=Array{Int64, (0,)}[]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=99, last=102), preds=Array{Int64, (1,)}[27], succs=Array{Int64, (2,)}[31, 30]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=103, last=103), preds=Array{Int64, (1,)}[29], succs=Array{Int64, (1,)}[32]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=104, last=104), preds=Array{Int64, (1,)}[29], succs=Array{Int64, (1,)}[32]),
  Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=105, last=107), preds=Array{Int64, (2,)}[30, 31], succs=Array{Int64, (1,)}[1])], i=(0,))
rec_backtrace at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\stackwalk.c:94
record_backtrace at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\task.c:246
jl_throw at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\task.c:577
jl_bounds_error_ints at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\rtutils.c:187
getindex at .\array.jl:731
jfptr_getindex_1595.clone_1 at C:\Users\matda\AppData\Local\Julia-1.0.4\lib\julia\sys.dll (unknown line)
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2162
replace_code_newstyle! at .\compiler/ssair\legacy.jl:80
optimize at .\compiler\optimize.jl:212
typeinf at .\compiler\typeinfer.jl:35
typeinf_ext at .\compiler\typeinfer.jl:574
typeinf_ext at .\compiler\typeinfer.jl:611
jfptr_typeinf_ext_1.clone_1 at C:\Users\matda\AppData\Local\Julia-1.0.4\lib\julia\sys.dll (unknown line)
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2162
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1537 [inlined]
jl_apply_with_saved_exception_state at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\rtutils.c:257
jl_type_infer at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:253
jl_compile_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1764 [inlined]
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1808
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2162
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1537 [inlined]
start_task at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\task.c:268

```

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [May 23, 2019, 5:46am UTC](https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465/4 "2019-05-23T05:46:50Z")

</div>

Those are Julia errors, and only occur on Julia 1.0. If you upgrade to, say, 1.1, those errors will be gone.

---

<div class="post-metadata">

**Author:** ![manderson](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@manderson](https://discourse.julialang.org/u/manderson)\
**Post date:** [May 23, 2019, 7:53pm UTC](https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465/5 "2019-05-23T19:53:18Z")

</div>

After upgrading to Julia 1.1, I am getting no errors. The reason I was using Julia 1.0.4 in the first place was that the readme on github for CuArrays says that it works out of the box with Julia 1.0 and I assumed that it might not be ready for Julia 1.1. It may be a good idea to clear that up in the readme so that other people like me don’t fall into the same confusion.

Thank you so much for your help!

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [May 23, 2019, 7:57pm UTC](https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465/6 "2019-05-23T19:57:07Z")

</div>

Good suggestion, I’ve clarified the README.
