Closed weilewei closed 10 months ago
The readme states
If using stdexec from GitHub, then nvc++ 23.3 is required.
Can you try to update your toolchain and report whether this works?
yes, the simple hello world program works with 23.7 locally in my machine. The godbolt has some issue with stdexec when nvc++ >= 23.1.
but in a more complicated example, I got the following error after weekend's commits. and my code is here: https://github.com/NERSC/hpcpp/blob/main/apps/heat-equation/heat-equation-stdexec.cpp
"/global/homes/w/wwei/src/hpcpp/build_main/_deps/stdexec-src/include/stdexec/detail/basic_sender.hpp", line 162: error: no instance of function template "stdexec::sexpr<_ImplFn>::apply [with _ImplFn=lambda [](_Cvref, _Fun &&) mutable->decltype((
"/opt/cray/pe/gcc/12.2.0/snos/include/g++/type_traits", line 2199: error: incomplete type is not allowed
typedef typename decay_selector<__remove_type>::type type;
^
detected during:
instantiation of class "std::decay<_Tp> [with _Tp=
"/global/homes/w/wwei/src/hpcpp/build_main/_deps/stdexec-src/include/stdexec/detail/basic_sender.hpp", line 162: error: no instance of function template "stdexec::sexpr<_ImplFn>::apply [with _ImplFn=lambda [](_Cvref, _Fun &&) mutable->decltype((
"/global/homes/w/wwei/src/hpcpp/build_main/_deps/stdexec-src/include/stdexec/detail/basic_sender.hpp", line 308: error: no instance of function template "stdexec::sexpr<_ImplFn>::apply [with _ImplFn=lambda [](_Cvref, _Fun &&) mutable->decltype((
@weilewei is it possible for you to give us a self-contained repro of the issue? The bit of code you link to has dependencies on other parts of your app.
@ericniebler and @maikel, we found out the issue is on our end after some debugging. The fixes are 1) we forgot to enable CMAKE_GNU_EXTENSIONS and 2) some updates are needed for our local copy on repeat_n.cuh. details: https://github.com/NERSC/hpcpp/pull/18.
I am closing issue.
from NERSC/hpcpp#18:
Probably a recent in stdexec fails compilation without GNU exts which triggered this
I would consider that a stdexec bug. we should have fallbacks for any language extensions we use. i'll investigate, thanks.
I cannot compile examples with latest stdexec as of today Nov 20. See the simple hello world example using the latest stdexec library. https://godbolt.org/z/q461foj41. It would work if not pulling the latest stdexec version. Thanks.