- edited description
Verbose output
Issue #150
duplicate
[Note: I'm still debugging the attached code, but the rput-then-rpc is taken from a working code example]
The code builds but is warning me that I'm not using the result returned by rput. But is the result interesting, given that the completion is handled via a promise? Rget would suffer from the same problem?
Also, why is the spec wiring in the as_future completion (p 56)? I wouldn't classify this as a bug, but I didn't find another category that fit, so I chose "task"
10 template < typename T,
11 typename Completions = decltype ( operation_cx :: as_future ()) >
12 RType rput (T value , global_ptr <T> dest ,
13 Completions cxs= Completions {});
/usr/bin/c++ -DUPCXX_ASSERT_ENABLED=0 -DUPCXX_BACKEND=1 -DUPCXX_BACKEND_GASNET_SEQ=1 -DUPCXX_LPC_INBOX_lockfree=1 -D_GNU_SOURCE=1 -DGASNET_SEQ -I/Users/baden/bin/upcxx/gasnet.opt/include -I/Users/baden/bin/upcxx/gasnet.opt/include/smp-conduit -I/Users/baden/bin/upcxx/upcxx.O3.gasnet_seq.smp/include --std=c++11 -O3 -I../common -c fillGhost-nd-lbarr.cpp
In file included from fillGhost-nd-lbarr.cpp:7:
In file included from /Users/baden/bin/upcxx/upcxx.O3.gasnet_seq.smp/include/upcxx/upcxx.hpp:18:
/Users/baden/bin/upcxx/upcxx.O3.gasnet_seq.smp/include/upcxx/rput.hpp:333:69: warning: expression result unused [-Wunused-value]
detail::completions_has_event<Cxs, operation_cx_event>::value |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/baden/bin/upcxx/upcxx.O3.gasnet_seq.smp/include/upcxx/diagnostic.hpp:35:109: note: expanded from macro 'UPCXX_ASSERT_ALWAYS'
#define UPCXX_ASSERT_ALWAYS(...) UPCXX_ASSERT_DISPATCH(__VA_ARGS__, UPCXX_ASSERT_2, UPCXX_ASSERT_1, _DUMMY)(__VA_ARGS__)
^~~~~~~~~~~
/Users/baden/bin/upcxx/upcxx.O3.gasnet_seq.smp/include/upcxx/diagnostic.hpp:12:10: note: expanded from macro 'UPCXX_ASSERT_1'
if(!(ok)) \
^~
fillGhost-nd-lbarr.cpp:32:5: note: in instantiation of function template specialization 'upcxx::rput<double, upcxx::completions<upcxx::rpc_cx<upcxx::remote_cx_event, upcxx::bound_function<(lambda at fillGhost-nd-lbarr.cpp:32:54), int> >, upcxx::promise_cx<upcxx::operation_cx_event> > >' requested here
rput( &u[1], uL-1, 1, upcxx::remote_cx::as_rpc( []
^
In file included from fillGhost-nd-lbarr.cpp:7:
In file included from /Users/baden/bin/upcxx/upcxx.O3.gasnet_seq.smp/include/upcxx/upcxx.hpp:18:
/Users/baden/bin/upcxx/upcxx.O3.gasnet_seq.smp/include/upcxx/rput.hpp:333:69: warning: expression result unused [-Wunused-value]
detail::completions_has_event<Cxs, operation_cx_event>::value |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/baden/bin/upcxx/upcxx.O3.gasnet_seq.smp/include/upcxx/diagnostic.hpp:35:109: note: expanded from macro 'UPCXX_ASSERT_ALWAYS'
#define UPCXX_ASSERT_ALWAYS(...) UPCXX_ASSERT_DISPATCH(__VA_ARGS__, UPCXX_ASSERT_2, UPCXX_ASSERT_1, _DUMMY)(__VA_ARGS__)
^~~~~~~~~~~
/Users/baden/bin/upcxx/upcxx.O3.gasnet_seq.smp/include/upcxx/diagnostic.hpp:12:10: note: expanded from macro 'UPCXX_ASSERT_1'
if(!(ok)) \
^~
Comments (2)
-
-
- changed status to duplicate
Duplicate of
#146. - Log in to comment