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

Remove useless destructor and flag to enable the default move assignment #1

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

maki49
Copy link

@maki49 maki49 commented Dec 11, 2024

If we don't do this change, the default move assignment will cause segment fault in the destructor due to visiting the moved vector elements in such redundant "delete" functions.
Even if no move assignment, vector members do not need to be manually cleared in the destructor, as is well-known.

I've checked by valgrind that this change does not induce memory leak.

@YuLiu98 YuLiu98 merged commit 6c0b2b2 into YuLiu98:refactor Dec 12, 2024
YuLiu98 pushed a commit that referenced this pull request Dec 12, 2024
)

* Link mtblas library

* Add mtblas gemm kernel usage

* Finish memory_op on dsp

* Update CMakeLists

* Add compilation script

* Fix warnings

* Fix install script

* Initialize DSP hardware

* Replace gemm in math_kernel

* Fix CMakeLists Bug

* Fix bugs #1

* Fix bug 2

* Fix link to shared library error

* Stop use gemm_mt globally

* Modify op usage

* Fix bug

* Fix template usage

* Fix compilation

* Replace all dav_subspace gemm kernels

---------

Co-authored-by: Mohan Chen <[email protected]>
@maki49 maki49 deleted the refactor branch January 3, 2025 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants