Skip to content
Snippets Groups Projects
Commit cd6f1332 authored by Philipp Suffa's avatar Philipp Suffa
Browse files

Small change in 03_AdvancedLBMCodegen.cpp to avoid GPU-Local-Communication-Error

parent fdee9cff
Branches
No related merge requests found
...@@ -203,7 +203,7 @@ int main(int argc, char** argv) ...@@ -203,7 +203,7 @@ int main(int argc, char** argv)
// Communication // Communication
#if defined(WALBERLA_BUILD_WITH_GPU_SUPPORT) #if defined(WALBERLA_BUILD_WITH_GPU_SUPPORT)
const bool sendDirectlyFromGPU = false; const bool sendDirectlyFromGPU = false;
gpu::communication::UniformGPUScheme< Stencil_T > com(blocks, sendDirectlyFromGPU); gpu::communication::UniformGPUScheme< Stencil_T > com(blocks, sendDirectlyFromGPU, false);
com.addPackInfo(make_shared< PackInfo_T >(pdfFieldId)); com.addPackInfo(make_shared< PackInfo_T >(pdfFieldId));
auto communication = std::function< void() >([&]() { com.communicate(); }); auto communication = std::function< void() >([&]() { com.communicate(); });
#else #else
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment