> > so specifying the architecture worked, but now a different
> > problem occurs.
> >
> >
> > /usr/local/include/hpx/util/optional.hpp(244): error:
> > statement may not appear in a constexpr function
> >
> > /usr/local/include/hpx/util/optional.hpp(246): error: a
> > constexpr function must contain exactly one return
> > statement
> >
> > 2 errors detected in the compilation of
> > "/tmp/tmpxft_00002044_00000000-4_data_copy.cpp4.ii".
> > CMake Error at
> > cuda_copy_exe_generated_data_copy.cu.o.cmake:279
> > (message):
> >    Error generating file
> >
> >
> /home/kostov/Projects/Tests/data_copy/build/CMakeFiles/cuda_copy_exe.dir//
> > ./cuda_copy_exe_generated_data_copy.cu.o
> >
> >
> > Any idea what could be causing this?
> 
> This is another example of how broken the CUDA compiler is. Could you
> create a ticket for this please? We need to fix this in optional.hpp.
> As a workaround please replace constexpr on the function it complains
> about with HPX_CXX14_CONSTEXPR (or remove the 'constexpr' altogether).

Please see https://github.com/STEllAR-GROUP/hpx/pull/3268 for a possible
fix.

Regards Hartmut
---------------
http://boost-spirit.com
http://stellar.cct.lsu.edu



_______________________________________________
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to