From 489af25a773419b2201738e7493ffa1b7f93d8bc Mon Sep 17 00:00:00 2001 From: dy94rovu <ravi.k.ayyala@fau.de> Date: Fri, 7 Mar 2025 15:56:14 +0100 Subject: [PATCH] 1 way coupling performance benchmark parameter file and small adaption in .cpp file -> code works on cpu and gpu --- .../performancebenchmark/MaterialTransport.cpp | 4 ++-- .../one_way_coupling/performancebenchmark/benchmark.prm | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/benchmarks/MaterialTransport/one_way_coupling/performancebenchmark/MaterialTransport.cpp b/apps/benchmarks/MaterialTransport/one_way_coupling/performancebenchmark/MaterialTransport.cpp index df15bc5f5..6515b86ee 100644 --- a/apps/benchmarks/MaterialTransport/one_way_coupling/performancebenchmark/MaterialTransport.cpp +++ b/apps/benchmarks/MaterialTransport/one_way_coupling/performancebenchmark/MaterialTransport.cpp @@ -290,13 +290,13 @@ int main(int argc, char** argv) { // TIME LOOP // /////////////// #ifdef WALBERLA_BUILD_WITH_GPU_SUPPORT - initConcentrationField(blocks,densityConcentrationFieldID,simulationDomain,domainSize); + initConcentrationField(blocks,densityConcentrationFieldID,simulationDomain,domainSize, true); initFluidField(blocks, velFieldFluidID , Uinitialize,domainSize); gpu::fieldCpy<gpu::GPUField< real_t >, DensityField_concentration_T>(blocks, densityConcentrationFieldCPUGPUID,densityConcentrationFieldID); gpu::fieldCpy< gpu::GPUField< real_t >, VelocityField_fluid_T >(blocks, velFieldFluidCPUGPUID, velFieldFluidID); #else - initConcentrationField(blocks,densityConcentrationFieldCPUGPUID,simulationDomain,domainSize); + initConcentrationField(blocks,densityConcentrationFieldCPUGPUID,simulationDomain,domainSize,true); initFluidField(blocks, velFieldFluidCPUGPUID, Uinitialize,domainSize); #endif diff --git a/apps/benchmarks/MaterialTransport/one_way_coupling/performancebenchmark/benchmark.prm b/apps/benchmarks/MaterialTransport/one_way_coupling/performancebenchmark/benchmark.prm index 8f2d1b548..c9f95ddd0 100644 --- a/apps/benchmarks/MaterialTransport/one_way_coupling/performancebenchmark/benchmark.prm +++ b/apps/benchmarks/MaterialTransport/one_way_coupling/performancebenchmark/benchmark.prm @@ -9,9 +9,9 @@ NumericalSetup periodicInY false; periodicInZ false; - numXCellsPerBlock 128; + numXCellsPerBlock 256; numYCellsPerBlock 128; - numZCellsPerBlock 256; + numZCellsPerBlock 128; timeSteps 1000; @@ -26,7 +26,7 @@ NumericalSetup Output { - vtkSpacing 0; + vtkSpacing 100; vtkFolder vtk_out; performanceLogFrequency 500; -- GitLab