Skip to content

hw04作业 #26

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

hw04作业 #26

wants to merge 1 commit into from

Conversation

Uuq114
Copy link

@Uuq114 Uuq114 commented Feb 25, 2022

系统配置
Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz

优化结果
=================Baseline=================
Time elapsed: 1963 ms
=================Optimize=================
Initial energy: -13.414013
Final energy: -13.356913
Time elapsed: 300 ms

使用方法

  • 改为size_t
  • 函数改为static
  • unroll
  • 提取代数式中的不变量
  • alignas(32)
  • SOA,改float[]
  • 除法变乘法
  • #pragma GCC ivdep
  • 改frand()返回值为tuple

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant