Skip to content

Remove problematic lambda functions

Kenneth Moreland requested to merge kmorel/vtk-m:summit-errors into master

The GCC 7 compiler on summit was failing to compile all of the code. The problematic parts involved using lambda functions. I think the problem is that the compiler has a bug where it has a problem resolving the type of variables captured by reference. The problem seems similar to this bug reported to Kokkos:

https://github.com/kokkos/kokkos-kernels/issues/349

Solved the problem by removing the lambdas with either a named method or just inline code.

I suspect the problem arose (without anyone's knowledge) with MR !2331 (merged), which moved VTK-m to C++14. This GCC error seems to happen with C++14 but not C++11. (The features of lambdas changed between these two versions of C++.)

Merge request reports

Loading