- changed component to Runtime
- changed version to Development Branch
inlining failed warnings during compilation on linux
Issue #16
resolved
With the very simple code:
#include <upcxx/upcxx.hpp>
int main(int argc, char **argv) {
upcxx::wait(upcxx::rpc(0, [](int my_hits) { ; }, 0));
}
when building without nobs on linux, using the following command line (variables as defined in upcxx_meta):
g++ bug.cpp $PPFLAGS $LDFLAGS $LIBFLAGS -o bug
I get the following warnings:
In file included from /home/shofmeyr/code/upcxx-local/idir/include/upcxx/backend/gasnet1_seq/backend.hpp:5:0,
from /home/shofmeyr/code/upcxx-local/idir/include/upcxx/backend.hpp:118,
from /home/shofmeyr/code/upcxx-local/idir/include/upcxx/allocate.hpp:8,
from /home/shofmeyr/code/upcxx-local/idir/include/upcxx/upcxx.hpp:4,
from compute-pi-multi-examples.cpp:11:
/home/shofmeyr/code/upcxx-local/idir/include/upcxx/command.hpp: In function ‘upcxx::future<> upcxx::detail::command_executor(upcxx::parcel_reader&) [with Fn = upcxx::bound_function<upcxx::rpc(upcxx::intrank_t, Fn&&, Args&& ...) [with Fn = main(int, char**)::<lambda(int)>; Args = {int}]::<lambda(upcxx::bound_function<main(int, char**)::<lambda(int)>&&, int&&>&)>&&, upcxx::bound_function<main(int, char**)::<lambda(int)>&&, int&&>&&>]’:
/home/shofmeyr/code/upcxx-local/idir/include/upcxx/command.hpp:90:15: warning: inlining failed in call to ‘void upcxx::command_pack(upcxx::parcel_writer&, std::size_t, Fn&&) [with Fn = upcxx::bound_function<upcxx::detail::rpc_recipient_after<Pro>::operator()(Args&& ...) [with Args = {}; Pro = upcxx::promise<>]::<lambda(const std::tuple<>&)>&&, std::tuple<>&&>&]’: --param large-stack-frame-growth limit reached [-Winline]
inline void command_pack(
^~~~~~~~~~~~
In file included from /home/shofmeyr/code/upcxx-local/idir/include/upcxx/backend.hpp:118:0,
from /home/shofmeyr/code/upcxx-local/idir/include/upcxx/allocate.hpp:8,
from /home/shofmeyr/code/upcxx-local/idir/include/upcxx/upcxx.hpp:4,
from compute-pi-multi-examples.cpp:11:
/home/shofmeyr/code/upcxx-local/idir/include/upcxx/backend/gasnet1_seq/backend.hpp:147:5: note: called from here
command_pack(w, ub.size(), fn);
^~~~~~~~~~~~
The code runs fine.
Comments (3)
-
-
reporter - changed status to resolved
This issue seems to have cleared up in the latest.
-
-
assigned issue to
-
assigned issue to
- Log in to comment