.../unit_tests/test_alltoall.cpp(46): error: The enclosing parent function ("TestBody") for an extended __host__ __device__ lambda cannot have private or protected access within its class
__attribute__((host)) __attribute__((device))(const int i) { sv(i) = rank + i; });
^
.../unit_tests/test_alltoall.cpp(53): error: The enclosing parent function ("TestBody") for an extended __host__ __device__ lambda cannot have private or protected access within its class
__attribute__((host)) __attribute__((device))(const int &i, int &lsum) {
^
.../unit_tests/test_alltoall.cpp(75): error: The enclosing parent function ("TestBody") for an extended __host__ __device__ lambda cannot have private or protected access within its class
__attribute__((host)) __attribute__((device))(const int i) { rv(i) = rank + i; });
^
.../unit_tests/test_alltoall.cpp(82): error: The enclosing parent function ("TestBody") for an extended __host__ __device__ lambda cannot have private or protected access within its class
__attribute__((host)) __attribute__((device))(const int &i, int &lsum) {
Since we use lambdas in the unit tests.
Produces errors like