Hello!
When I run this code to convert a vector of ints into a CuArray, I see something extremely weird…
julia> ListOfInts = collect(1:1*10^6)
1000000-element Vector{Int64}:
1
2
3
4
5
⋮
999997
999998
999999
1000000
julia> CuArray(ListOfInts)
1000000-element CuArray{Int64, 1, CUDA.Mem.DeviceBuffer}:
1
2
3
4
5
⋮
999997
999998
999999
1000000
julia> CuArray(ListOfInts)
1000000-element CuArray{Int64, 1, CUDA.Mem.DeviceBuffer}:
1
2
3
4
5
⋮
4533517044312782213
4529285733552316672
-9223372036854775808
-4708928475910122632
It works the first time, but completely errors out the second time. Makes me a bit nervous for using it, could anyone tell me where I am going wrong?
I am new to GPU programming.
Kind regards