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

小盆老师 我完成了hw06作业 #1

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

Conversation

suxiaoyinger
Copy link

一点疑问

  1. 感觉内存分配花的时间远远大于CPU计算的时间;
  2. 计算运行时间每次偏差比较大;
  3. 实做效果不太理想,不知道是不是和机器配置有关系。

}

std::lock_guard lck(spin_mtx);
ret += total;
Copy link
Contributor

Choose a reason for hiding this comment

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

建议用parallel_reduce?

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.

3 participants