cmake -GNinja -DHPX_WITH_CUDA=ON -DCMAKE_INSTALL_PREFIX=/path/to/hpx/install -DHPX_WITH_MALLOC=system -DHPX_WITH_CXX2A=ON -DHPX_WITH_MAX_CPU_COUNT=8 -DHPX_WITH_APEX=TRUE -DAPEX_WITH_OTF2=TRUE -DOTF2_ROOT=/path/to/otf2/install -DAPEX_WITH_CUDA=TRUE .. && ninja install
../solution9.cpp: In function ‘int main()’:
../solution9.cpp:16:42: error: ‘cuda’ in namespace ‘hpx::compute’ does not name a type
using allocator_type = hpx::compute::cuda::default_allocator;
^~~~
../solution9.cpp:17:41: error: ‘cuda’ in namespace ‘hpx::compute’ does not name a type
using executor_type = hpx::compute::cuda::default_executor;
^~~~
../solution9.cpp:28:19: error: ‘hpx::compute::cuda’ has not been declared
hpx::compute::cuda::target device;
^~~~
../solution9.cpp:31:5: error: ‘allocator_type’ was not declared in this scope
allocator_type alloc(device);
^~~~~~~~~~~~~~
../solution9.cpp:31:5: note: suggested alternative: ‘fallocate’
allocator_type alloc(device);
^~~~~~~~~~~~~~
fallocate
../solution9.cpp:32:5: error: ‘executor_type’ was not declared in this scope
executor_type exec(device);
^~~~~~~~~~~~~
../solution9.cpp:41:48: error: type/value mismatch at argument 2 in template parameter list for ‘template<class T, class Allocator> class hpx::compute::vector’
hpx::compute::vector<double, allocator_type> c(1000000, 2.0, alloc);
^
../solution9.cpp:41:48: note: expected a type, got ‘allocator_type’
../solution9.cpp:41:66: error: ‘alloc’ was not declared in this scope
hpx::compute::vector<double, allocator_type> c(1000000, 2.0, alloc);
^~~~~
../solution9.cpp:41:66: note: suggested alternative: ‘valloc’
hpx::compute::vector<double, allocator_type> c(1000000, 2.0, alloc);
^~~~~
valloc
../solution9.cpp:41:71: error: expression list treated as compound expression in initializer [-fpermissive]
hpx::compute::vector<double, allocator_type> c(1000000, 2.0, alloc);
^
../solution9.cpp:44:60: error: ‘exec’ was not declared in this scope
hpx::parallel::reduce(hpx::parallel::execution::par.on(exec), std::begin(v),
^~~~
../solution9.cpp:44:60: note: suggested alternative: ‘rexec’
hpx::parallel::reduce(hpx::parallel::execution::par.on(exec), std::begin(v),
^~~~
rexec
../solution9.cpp:44:78: error: ‘v’ was not declared in this scope
hpx::parallel::reduce(hpx::parallel::execution::par.on(exec), std::begin(v),
^
ninja: build stopped: subcommand failed.