JuliaAttic / CUBLAS.jl

Julia interface to CUBLAS
Other
26 stars 19 forks source link

iamin segmentation fault #10

Open una-dinosauria opened 9 years ago

una-dinosauria commented 9 years ago
using CUDArt, CUBLAS

a = rand( 10 );
d_a = CudaArray( a );

# All this works fine
CUBLAS.iamin( d_a );
CUBLAS.iamin( d_a );
CUBLAS.iamin( d_a );
...
CUBLAS.iamin( d_a );

# But after doing
devices(dev->true) do devlist
  ...
end

CUBLAS.iamin( d_a ); # Gives a segmentation fault

This does not happen with other functions such as axpy!, but it does happen with iamax and asum

Is this a bug or am I doing something wrong?