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

RFC: Use non-blocking device side pointer mode in CUBLAS, with fallbacks #2616

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/cublas/CUBLAS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using ..APIUtils

using ..CUDA
using ..CUDA: CUstream, cuComplex, cuDoubleComplex, libraryPropertyType, cudaDataType, i32
using ..CUDA: unsafe_free!, retry_reclaim, isdebug, @sync, initialize_context
using ..CUDA: unsafe_free!, retry_reclaim, isdebug, @sync, initialize_context, CuRefArray, DeviceMemory

using ..CUDA: CUDA_Runtime
using ..CUDA_Runtime
Expand Down Expand Up @@ -130,6 +130,9 @@ function handle()
states[cuda.context] = state = update_math_mode(cuda, state)
end

# set pointer mode to device
cublasSetPointerMode_v2(state.handle, CUBLAS_POINTER_MODE_DEVICE)

return state.handle
end

Expand Down
Loading
Loading