Skip to content

Commit

Permalink
Link to cublas when using CUDA and Hypre (AMReX-Codes#2933)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Sep 7, 2022
1 parent 9525ea8 commit 3e397bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Src/LinearSolvers/OpenBC/AMReX_OpenBC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,11 @@ Real OpenBCSolver::solve (const Vector<MultiFab*>& a_sol,
m_mlmg_2->setVerbose(m_verbose);
m_mlmg_2->setBottomVerbose(m_bottom_verbose);
m_mlmg_2->setBottomSolver(m_bottom_solver_type);
if (m_bottom_solver_type == BottomSolver::hypre) {
#ifdef AMREX_USE_HYPRE
if (m_bottom_solver_type == BottomSolver::hypre) {
m_mlmg_2->setHypreInterface(Hypre::Interface::structed);
#else
#endif
}
#endif
}
Vector<MultiFab*> solv_all = a_sol;
Vector<MultiFab const*> rhsv_all = a_rhs;
Expand Down
2 changes: 1 addition & 1 deletion Tools/GNUMake/packages/Make.hypre
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ ifdef AMREX_HYPRE_HOME
endif

ifeq ($(USE_CUDA),TRUE)
LIBRARIES += -lcusparse -lcurand
LIBRARIES += -lcusparse -lcurand -lcublas
endif

0 comments on commit 3e397bb

Please sign in to comment.