31 cublasStatus_t status;
32 status = cublasSetVector(
36 assert( status == CUBLAS_STATUS_SUCCESS );
46 cublasStatus_t status;
47 status = cublasGetVector(
51 assert( status == CUBLAS_STATUS_SUCCESS );
62 cublasStatus_t status;
63 status = cublasSetVectorAsync(
66 dy_dst, incy, stream );
67 assert( status == CUBLAS_STATUS_SUCCESS );
78 cublasStatus_t status;
79 status = cublasGetVectorAsync(
82 hy_dst, incy, stream );
83 assert( status == CUBLAS_STATUS_SUCCESS );
95 cublasStatus_t status;
96 status = cublasSetMatrix(
100 assert( status == CUBLAS_STATUS_SUCCESS );
105 void magma_getmatrix(
110 cublasStatus_t status;
111 status = cublasGetMatrix(
115 assert( status == CUBLAS_STATUS_SUCCESS );
120 void magma_setmatrix_async(
124 cudaStream_t stream )
126 cublasStatus_t status;
127 status = cublasSetMatrixAsync(
130 dB_dst, ldb, stream );
131 assert( status == CUBLAS_STATUS_SUCCESS );
136 void magma_getmatrix_async(
140 cudaStream_t stream )
142 cublasStatus_t status;
143 status = cublasGetMatrixAsync(
146 hB_dst, ldb, stream );
147 assert( status == CUBLAS_STATUS_SUCCESS );
152 void magma_copymatrix(
158 status = cudaMemcpy2D(
159 dB_dst, ldb*elemSize,
160 dA_src, lda*elemSize,
161 m*elemSize, n, cudaMemcpyDeviceToDevice );
162 assert( status == cudaSuccess );
167 void magma_copymatrix_async(
171 cudaStream_t stream )
174 status = cudaMemcpy2DAsync(
175 dB_dst, ldb*elemSize,
176 dA_src, lda*elemSize,
177 m*elemSize, n, cudaMemcpyDeviceToDevice, stream );
178 assert( status == cudaSuccess );
181 #endif // HAVE_CUBLAS