From be5a3b94383f2cf0139f1e09b3542b0a9c0ee44d Mon Sep 17 00:00:00 2001 From: aveksler1 <124003120+aveksler1@users.noreply.github.com> Date: Thu, 24 Aug 2023 00:07:04 -0700 Subject: add error message if cuda 11.6 is used with the yee solver (#4222) --- Source/Initialization/WarpXInitData.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/Initialization/WarpXInitData.cpp') diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index 233d03a0c..78b3129c3 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -1347,6 +1347,16 @@ void WarpX::CheckKnownIssues() "applied directly to particles." ); } + +#if defined(__CUDACC__) && (__CUDACC_VER_MAJOR__ == 11) && (__CUDACC_VER_MINOR__ == 6) + if (WarpX::electromagnetic_solver_id == ElectromagneticSolverAlgo::Yee) + { + WARPX_ABORT_WITH_MESSAGE( + "CUDA 11.6 does not work with the Yee Maxwell " + "solver: https://github.com/AMReX-Codes/amrex/issues/2607" + ); + } +#endif } #if defined(WARPX_USE_OPENPMD) && !defined(WARPX_DIM_1D_Z) && !defined(WARPX_DIM_XZ) -- cgit v1.2.3