| 340 | } |
| 341 | |
| 342 | cublasSideMode_t CUDABlasSide(blas::Side side) { |
| 343 | switch (side) { |
| 344 | case blas::Side::kLeft: |
| 345 | return CUBLAS_SIDE_LEFT; |
| 346 | case blas::Side::kRight: |
| 347 | return CUBLAS_SIDE_RIGHT; |
| 348 | default: |
| 349 | LOG(FATAL) << "Invalid value of blas::Side."; |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | // CUDADataType<T>::type translates from a C++ type (e.g. float) to a |
| 354 | // cudaDataType_t (e.g. CUDA_R_32F). CUDAComputationType(ty) translates from a |
no outgoing calls
no test coverage detected