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

HW04 #37

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

HW04 #37

wants to merge 2 commits into from

Conversation

M-Cyclone
Copy link

主要采取以下四个方案

  • 提取可以共同计算的部分,避免反复计算。
  • 分别计算动能和势能,简化循环体复杂度。
  • 使用SOA配合std::array,并要求各属性偏移到16的整数倍。
  • 使用#pragma clang loop unroll_count(4)循环展开。

- 提取可以共同计算的部分,避免反复计算。
- 分别计算动能和势能,简化循环体复杂度。
- 使用SOA配合std::array,并要求各属性偏移到16的整数倍。
- 使用`#pragma clang loop unroll_count(4)`循环展开。
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.

1 participant