packages/CudaUtils/cuda_utils/BLAS_device.cc
/*!
 * \brief Internal function to convert to CUDA enum
 */
\brief Internal function to convert to CUDA enum
\ brief Internal function to convert to CUDA enum
cublasOperation_t transpose_convert(const cuda::Transpose t)
{
    cublasOperation_t result = CUBLAS_OP_N;
    switch (t)
    {
        case cuda::NO_TRANS:   result = CUBLAS_OP_N; break;
        case cuda::TRANS:      result = CUBLAS_OP_T; break;
        case cuda::CONJ_TRANS: result = CUBLAS_OP_C; break;
        default:
            CHECK(0);
    }
    return result;
}
cublasOperation_t transpose_convert ( const cuda :: Transpose t ) { cublasOperation_t result = CUBLAS_OP_N ; switch ( t ) { case cuda :: NO_TRANS : result = CUBLAS_OP_N ; break ; case cuda :: TRANS : result = CUBLAS_OP_T ; break ; case cuda :: CONJ_TRANS : result = CUBLAS_OP_C ; break ; default : CHECK ( 0 ) ; } return result ; }
\brief Internal function to convert to CUDA enum
\ brief Internal function to convert to CUDA enum