| 318 | } |
| 319 | |
| 320 | cublasFillMode_t CUDABlasUpperLower(blas::UpperLower uplo) { |
| 321 | switch (uplo) { |
| 322 | case blas::UpperLower::kUpper: |
| 323 | return CUBLAS_FILL_MODE_UPPER; |
| 324 | case blas::UpperLower::kLower: |
| 325 | return CUBLAS_FILL_MODE_LOWER; |
| 326 | default: |
| 327 | LOG(FATAL) << "Invalid value of blas::UpperLower."; |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | cublasDiagType_t CUDABlasDiagonal(blas::Diagonal diag) { |
| 332 | switch (diag) { |
no outgoing calls
no test coverage detected