Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transpose not working #6

Open
denizyuret opened this issue Sep 19, 2015 · 1 comment
Open

transpose not working #6

denizyuret opened this issue Sep 19, 2015 · 1 comment

Comments

@denizyuret
Copy link
Contributor

Thanks for porting this library! I had started doing this a few months ago and gave up after I discovered a problem with transpose. I am not sure if NVIDIA fixed it. Here is what I get with your code:

julia> a=sprand(3,5,.3)
3x5 sparse matrix with 3 Float64 entries:
        [3, 1]  =  0.545957
        [3, 3]  =  0.191656
        [1, 5]  =  0.0424254

julia> b=CudaSparseMatrixCSR(a);

julia> c=transpose(b);

julia> full(to_host(b))
3x5 Array{Float64,2}:
 0.0       0.0  0.0       0.0  0.0424254
 0.0       0.0  0.0       0.0  0.0
 0.545957  0.0  0.191656  0.0  0.0

julia> full(to_host(c))
3x5 Array{Float64,2}:
 0.0       0.0  0.0       0.0  0.0424254
 0.0       0.0  0.0       0.0  0.0
 0.545957  0.0  0.191656  0.0  0.0

@kshyatt
Copy link
Contributor

kshyatt commented Oct 26, 2015

Sorry it took so long for me to get to this. I can reproduce and will look into it. I think what is happening here is that I forgot to define a transpose function!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants