DARMA-tasking-internal / darma-frontend

Header library providing the frontend programming model for the DARMA asynchronous many-task model
Other
7 stars 0 forks source link

Assertion failure in frontend with downgraded permissions in `create_work_while' subtask #23

Closed lifflander closed 7 years ago

lifflander commented 7 years ago

Minimal reproducer of this frontend bug:

#include <darma.h>
void darma_main_task(std::vector<std::string> args) {
  auto cur_iter = darma::initial_access<size_t>();
  darma::experimental::create_work_while([=]{
    return cur_iter.get_value() < 29;
  }).do_([=]{
    darma::create_work(reads(cur_iter),[=]{ cur_iter.get_value(); });
  });
}
DARMA_REGISTER_TOP_LEVEL_FUNCTION(darma_main_task);

Assertion failed: (new_ptr == nullptr), function make_captured_use_holder, file /Users/jliffla/codes/clean/darma-build/repos/frontend/src/include/darma/impl/capture.h, line 560.

lifflander commented 7 years ago

frontend commit: 84a1af3ca89d6d503e6044bcf67bac3dc3e932a6 darma-build commit: 640254bd255e33649234d3de9cf0ff4d46b55a72

dhollman commented 7 years ago

closed by fcf7309b263c3637acb003546f5de74a4a68594d