[Trilinos-Users] Kokkos::parallel_reduce Argument Issues

Thorson, Zachary A ZATHORSON at CSBSJU.EDU
Thu Aug 7 10:17:40 MDT 2014


I am new to trilinos and am to be working through the tutorial on Kokkos that I received. The tutorial references files in the packages/kokkos/example/tutorial directory and they come ready to be compiled and examined. I cannot get any of them to compile after the one labeled 01_hello_world and receive the same compiler error every time:
g++ -O3 -I../../../core/src -I../../../containers/src -I../../../algorithms/src -I../../../linalg/src -I../ -DKOKKOS_DONT_INCLUDE_CORE_CONFIG_H  -mavx -DKOKKOS_HAVE_PTHREAD -DKOKKOS_HAVE_OPENMP  -fopenmp -c simple_reduce.cpp
simple_reduce.cpp: In function ‘int main()’:
simple_reduce.cpp:26: error: no matching function for call to ‘parallel_reduce(int, squaresum, int&)’
make: *** [simple_reduce.o] Error 1
For those that cannot see the file simple_reduce.cpp, squaresum is a simple functor that takes two inputs i and &sum and does the operation sum += i * i. I am using the supplied makefile and have tried both the gcc compiler (Version 4.4.7) and the intel icpc compiler (Version 13.1.3), I am also using a version of trilinos pulled from the public repository yesterday (08 - 06 - 14) which has a version label of 11.8.

Thanks for your help,
Zach Bookey


More information about the Trilinos-Users mailing list