diff --git a/src/hash_workspace.cu b/src/hash_workspace.cu index d501359d..ba142aca 100644 --- a/src/hash_workspace.cu +++ b/src/hash_workspace.cu @@ -53,7 +53,7 @@ Hash_Workspace, Key_type >::~Hash_Workspace template< AMGX_VecPrecision V, AMGX_MatPrecision M, AMGX_IndPrecision I, typename Key_type > void Hash_Workspace, Key_type >::allocate_workspace() { - const int NUM_WARPS_IN_GRID = m_grid_size * m_max_warp_count; + const size_t NUM_WARPS_IN_GRID = m_grid_size * m_max_warp_count; // Allocate memory to store the keys of the device-based hashtable. if ( m_keys != NULL ) diff --git a/src/solvers/dense_lu_solver.cu b/src/solvers/dense_lu_solver.cu index 900296e3..9032a38e 100644 --- a/src/solvers/dense_lu_solver.cu +++ b/src/solvers/dense_lu_solver.cu @@ -881,7 +881,7 @@ solver_setup(bool reuse_matrix_structure) // Allocate mem for cudense pivoting sequence. allocMem(m_ipiv, m_num_rows, false); // Allocate memory to store the dense A and initialize to zero. - allocMem(m_dense_A, m_num_cols * m_lda, true); + allocMem(m_dense_A, static_cast(m_num_cols) * m_lda, true); csr_to_dense(); // copy sparse A to dense_A }