Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Making the library compatible with CUDAdrv and CuArrays.#40

Open
pevnak wants to merge 3 commits intoJuliaAttic:masterfrom
pevnak:pull-request/f79f310e
Open

Making the library compatible with CUDAdrv and CuArrays.#40
pevnak wants to merge 3 commits intoJuliaAttic:masterfrom
pevnak:pull-request/f79f310e

Conversation

@pevnak
Copy link
Copy Markdown
Collaborator

@pevnak pevnak commented Nov 15, 2017

There are couple issues I do not know, how to address.

  1. Some functions have been restricted to upper triangular form due to the ambiguity caused by CuArray<:AbstractArray being true

  2. I have removed streams from copy!, as I have not seen them really used. The connected problem is that I have commented

   statuscheck(ccall( (:cusparseSetStream, libcusparse), cusparseStatus_t, (cusparseHandle_t, cudaStream_t), handle, streamId))
end
function cusparseGetStream(handle, streamId)
  statuscheck(ccall( (:cusparseGetStream, libcusparse), cusparseStatus_t, (cusparseHandle_t, Ptr{cudaStream_t}), handle, streamId))
end

in libcusparse.jl. I have no idea, what streams are used for.

  1. I had to add conversion to the pointer, as
Base.unsafe_convert(::Type{Ptr{T}}, a::CuArray{T}) where {T} = Base.unsafe_convert(Ptr{T}, a.ptr)
  1. I had disable the following test
@test device(x)   == -1

since device is not the defined for CuArray.

@MikeInnes
Copy link
Copy Markdown

@pevnak I don't know if anyone is really maintaining this repo; if you want I can get you commit access so you can merge this at will?

@pevnak
Copy link
Copy Markdown
Collaborator Author

pevnak commented Jun 8, 2018

Hi Mike, I would probably not mind to get a commit access. I hope that I will have time to get back to programming for CUDA and make this work. In my area data are sparse.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants