Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to cublas when using CUDA and Hypre #2933

Merged
merged 1 commit into from
Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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