Skip to content
Snippets Groups Projects
Commit 106f8a3c authored by Markus Holzer's avatar Markus Holzer
Browse files

Merge branch 'suffa/CodeGen_Tutorial_Fix' into 'master'

Fixes GPU-Local-Communication-Error in 03_AdvancedLBMCodegen Tutorial

See merge request !645
parents 686862be cd6f1332
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