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

Capture of access_handle_collection in ljp_dynamics #30

Closed jjwilke closed 6 years ago

jjwilke commented 7 years ago

timestep.cc:71

  create_work<PackMigratingParticles>(index, local_particles, migrate_parts, to_remove);

with variables

index=Index2D
local_particles=AH<vector<Particle>>
migrate_to_parts=AHC<vector<Particle>>
to_remove=AH<list<int>>

leads to error output

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
DARMA assertion failed:
  Expression should be true: false
  Assertion details:
    File: /Users/jjwilke/Programs/darma/charm/repos/frontend/src/include/darma/impl/capture.h
    Line: 388
    DARMA encountered a branch or feature that is not implemented in the current version of the translation layer.  Schedule-only permissions on handles that already have immediate Modify permissions.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dhollman commented 7 years ago

Ironically, I implemented this feature on Thursday, but I suspect you need this to also work for collections, which will take more work.

dhollman commented 7 years ago

This should be implemented now, but I think it still needs a test