Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FSU] Apply Static Memory allocation at FSU(Swap) #2949

Closed
wants to merge 3 commits into from

Conversation

DonghakPark
Copy link
Member

Replaced the FSU Logic from dynamically allocating memory --> overwriting and sharing statica allocated memory.

  1. In order to prevent multiple frees, I added a map to check whether the mem_address has already been processed. Previously, memory was allocated through buf, but now it is being allocated directly.

  2. Update FSU forwarding logic
    --> FSU will handle look ahead tensor inside of pool
    --> so we don't need to call Loadtensor for f + i

  3. inference we don't need optimizer at application : remove optimizer at application

Self evaluation:

  1. Build test: [X]Passed [ ]Failed [ ]Skipped
  2. Run test: [X]Passed [ ]Failed [ ]Skipped

Co-authored-by: jijoong.moon [email protected]
Signed-off-by: Donghak PARK [email protected]

Copy link
Contributor

@baek2sm baek2sm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work. LGTM!

DonghakPark and others added 3 commits February 25, 2025 13:02
for inference we don't need optimizer at application
- remove optimizer
- add summarize

**Self evaluation:**
1. Build test:	 [X]Passed [ ]Failed [ ]Skipped
2. Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK <[email protected]>
Update FSU forwarding logic
- FSU will handle look ahead tensor inside of pool
- so we don't need to call Loadtensor for f + i

**Self evaluation:**
1. Build test:	 [X]Passed [ ]Failed [ ]Skipped
2. Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK <[email protected]>
I have changed the method from using dynamic memory allocation to using static memory allocation.
In order to prevent multiple frees, I added a map to check whether the mem_address has already been processed. Previously, memory was allocated through buf, but now it is being allocated directly.

**Self evaluation:**
1. Build test:	 [X]Passed [ ]Failed [ ]Skipped
2. Run test:	 [X]Passed [ ]Failed [ ]Skipped

Co-authored-by: jijoong.moon <[email protected]>
Signed-off-by: Donghak PARK <[email protected]>
@DonghakPark
Copy link
Member Author

DonghakPark commented Feb 25, 2025

Close This PR for reorganize and resubmit it so that can be reviewed conveniently. Closed By #2969

@DonghakPark DonghakPark deleted the fsu_with_static_mem branch March 4, 2025 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants