From 6031095be9bc9f2e34ffbf9a4a1a2bcb7ed60f25 Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Thu, 15 Nov 2018 12:28:41 +0100
Subject: [PATCH] UniformGridGPU: Changes related to intel compiler

- intel 19 internal bug when using auto, and implicit capture in lambdas
---
 apps/benchmarks/UniformGridGPU/UniformGridGPU.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/apps/benchmarks/UniformGridGPU/UniformGridGPU.cpp b/apps/benchmarks/UniformGridGPU/UniformGridGPU.cpp
index 085c316d..572326ea 100644
--- a/apps/benchmarks/UniformGridGPU/UniformGridGPU.cpp
+++ b/apps/benchmarks/UniformGridGPU/UniformGridGPU.cpp
@@ -111,8 +111,8 @@ int main( int argc, char **argv )
             {
                {
                   auto p = boundaryInnerStreams.parallelSection( innerStream );
-                  p.run( [&]( auto s ) { ubb.inner( &block, s ); } );
-                  p.run( [&]( auto s ) { noSlip.inner( &block, s ); } );
+                  p.run( [&block, &ubb]( cudaStream_t s ) { ubb.inner( &block, s ); } );
+                  p.run( [&block, &noSlip]( cudaStream_t s ) { noSlip.inner( &block, s ); } );
                }
                lbKernel.inner( &block, innerStream );
             }
@@ -125,8 +125,8 @@ int main( int argc, char **argv )
             {
                {
                   auto p = boundaryOuterStreams.parallelSection( outerStream );
-                  p.run( [&]( auto s ) { ubb.outer( &block, s ); } );
-                  p.run( [&]( auto s ) { noSlip.outer( &block, s ); } );
+                  p.run( [&block, &ubb]( cudaStream_t s ) { ubb.outer( &block, s ); } );
+                  p.run( [&block, &noSlip]( cudaStream_t s ) { noSlip.outer( &block, s ); } );
                }
                lbKernel.outer( &block, outerStream );
             }
@@ -142,8 +142,8 @@ int main( int argc, char **argv )
          {
             {
                auto p = boundaryStreams.parallelSection( defaultStream );
-               p.run( [&]( auto s ) { ubb( &block, s ); } );
-               p.run( [&]( auto s ) { noSlip( &block, s ); } );
+               p.run( [&block, &ubb]( cudaStream_t s ) { ubb( &block, s ); } );
+               p.run( [&block, &noSlip]( cudaStream_t s ) { noSlip( &block, s ); } );
             }
             lbKernel( &block );
          }
-- 
GitLab