Skip to content

Conversation

kyleskyguo
Copy link

目标,优化热区中step()
1,for循环中的int修改为size_t,并打开#pragma GCC ivdep
2,sqrt()改为std::sqrt()
3,循环中的常量尽量调整到函数外
4,打开-o3 -ffast-math -march=native -fopenmp

目标,优化热区中step()
1,for循环中的int修改为size_t,并打开#pragma GCC ivdep
2,sqrt()改为std::sqrt()
3,循环中的常量尽量调整到函数外
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