Skip to content

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

Open
suxiaoyinger wants to merge 1 commit intoparallel101:mainfrom
suxiaoyinger:main
Open

小盆老师 我完成了hw06作业#1
suxiaoyinger wants to merge 1 commit intoparallel101:mainfrom
suxiaoyinger:main

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