Skip to content

Analyze and implement lifetime behavior of DeviceSpecificArg, per device op states, etc. #905

Open

Description

@KateUnger

lib/runtime/src/task_spec/device_specific_arg.h:

How do we make sure that ptr actually gets deallocated eventually (don't fix this this PR, but add an issue or just think about it as we'll need to solve this in the future)

struct DeviceSpecificArg {

  private:
    T *ptr;
    size_t device_idx;
}

Activity

  1. self-assigned this
    on Jul 31, 2023
  2. changed the title [-]Ensure ptr deallocation[/-] [+]Analyze and implement lifetime behavior of `DeviceSpecificArg`, per device op states, etc.[/+] on Aug 10, 2023
  3. lockshaw commented on Aug 10, 2023

    @lockshaw
    Collaborator

    In general, we need to ensure proper deallocation for all of the objects during training that exist across iterations and are not explicitly destroyed by the C ffi (such as flexflow_stop_training and any flexflow_<something>_destroy methods)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions