| 305 | // Helper functions transforming blas arguments into cuBLAS arguments. |
| 306 | |
| 307 | cublasOperation_t CUDABlasTranspose(blas::Transpose trans) { |
| 308 | switch (trans) { |
| 309 | case blas::Transpose::kNoTranspose: |
| 310 | return CUBLAS_OP_N; |
| 311 | case blas::Transpose::kTranspose: |
| 312 | return CUBLAS_OP_T; |
| 313 | case blas::Transpose::kConjugateTranspose: |
| 314 | return CUBLAS_OP_C; |
| 315 | default: |
| 316 | LOG(FATAL) << "Invalid value of blas::Transpose."; |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | cublasFillMode_t CUDABlasUpperLower(blas::UpperLower uplo) { |
| 321 | switch (uplo) { |
no outgoing calls
no test coverage detected