cublasAlloc pinning

Can cublasAlloc() be forced to pin the memory it allocates? If not, is it legal to use the cudaAlloc/cudaFree functions directly to manage memory that will be used by cublas kernels?

You can use cudaMallocHost to allocate pinned memory that is going to be used by cublas kernel.

cublasAlloc will return non-pinned memory.