Skip to content

Conversation

@rsarm
Copy link
Contributor

@rsarm rsarm commented Jan 23, 2019

Closes #100

@vkarak vkarak changed the title [test] Add affinity test [test] Add CPU affinity test Jan 23, 2019
@jgphpc
Copy link
Contributor

jgphpc commented Jan 25, 2019

For the sake of clarity, i would add (the output of hwloc) for daint-gpu and daint-mc to
gpu_omp_bind_cores.txt and mc_omp_bind_cores.txt (just for info):

daint-gpu

| | /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\ | |
| | | Core P#0    |  | Core P#1    |  | Core P#2    |  | Core P#3    |  | Core P#4    |  | Core P#5    |  | Core P#8    |  | Core P#9    |  | Core P#10   |  | Core P#11   |  | Core P#12   |  | Core P#13   | | |
| | |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             | | |
| | | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ | | |
| | | | PU P#0  | |  | | PU P#1  | |  | | PU P#2  | |  | | PU P#3  | |  | | PU P#4  | |  | | PU P#5  | |  | | PU P#6  | |  | | PU P#7  | |  | | PU P#8  | |  | | PU P#9  | |  | | PU P#10 | |  | | PU P#11 | | | |
| | | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ | | |
| | | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ | | |
| | | | PU P#12 | |  | | PU P#13 | |  | | PU P#14 | |  | | PU P#15 | |  | | PU P#16 | |  | | PU P#17 | |  | | PU P#18 | |  | | PU P#19 | |  | | PU P#20 | |  | | PU P#21 | |  | | PU P#22 | |  | | PU P#23 | | | |
| | | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ | | |
| | \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/ | |
| \------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------/ |
\----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------/

daint-mc

| | | /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\
| | | | Core P#0    |  | Core P#1    |  | Core P#2    |  | Core P#3    |  | Core P#4    |  | Core P#8    |  | Core P#9    |  | Core P#10   |  | Core P#11   |
| | | |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |
| | | | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |
| | | | | PU P#0  | |  | | PU P#1  | |  | | PU P#2  | |  | | PU P#3  | |  | | PU P#4  | |  | | PU P#5  | |  | | PU P#6  | |  | | PU P#7  | |  | | PU P#8  | |
| | | | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |
| | | | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |
| | | | | PU P#36 | |  | | PU P#37 | |  | | PU P#38 | |  | | PU P#39 | |  | | PU P#40 | |  | | PU P#41 | |  | | PU P#42 | |  | | PU P#43 | |  | | PU P#44 | |
| | | | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |
| | | \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/
 /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\ | | |
 | Core P#16   |  | Core P#17   |  | Core P#18   |  | Core P#19   |  | Core P#20   |  | Core P#24   |  | Core P#25   |  | Core P#26   |  | Core P#27   | | | |
 |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             | | | |
 | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ | | | |
 | | PU P#9  | |  | | PU P#10 | |  | | PU P#11 | |  | | PU P#12 | |  | | PU P#13 | |  | | PU P#14 | |  | | PU P#15 | |  | | PU P#16 | |  | | PU P#17 | | | | |
 | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ | | | |
 | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ | | | |
 | | PU P#45 | |  | | PU P#46 | |  | | PU P#47 | |  | | PU P#48 | |  | | PU P#49 | |  | | PU P#50 | |  | | PU P#51 | |  | | PU P#52 | |  | | PU P#53 | | | | |
 | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ | | | |
 \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/ | | |
| \---------------------------------------------------------------------------------------------------------------------------------------------------------
| | | /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\
| | | | Core P#0    |  | Core P#1    |  | Core P#2    |  | Core P#3    |  | Core P#4    |  | Core P#8    |  | Core P#9    |  | Core P#10   |  | Core P#11   |
| | | |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |
| | | | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |
| | | | | PU P#18 | |  | | PU P#19 | |  | | PU P#20 | |  | | PU P#21 | |  | | PU P#22 | |  | | PU P#23 | |  | | PU P#24 | |  | | PU P#25 | |  | | PU P#26 | |
| | | | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |
| | | | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |
| | | | | PU P#54 | |  | | PU P#55 | |  | | PU P#56 | |  | | PU P#57 | |  | | PU P#58 | |  | | PU P#59 | |  | | PU P#60 | |  | | PU P#61 | |  | | PU P#62 | |
| | | | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |
| | | \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/
 /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\  /-------------\ | | |
 | Core P#16   |  | Core P#17   |  | Core P#18   |  | Core P#19   |  | Core P#20   |  | Core P#24   |  | Core P#25   |  | Core P#26   |  | Core P#27   | | | |
 |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             |  |             | | | |
 | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ | | | |
 | | PU P#27 | |  | | PU P#28 | |  | | PU P#29 | |  | | PU P#30 | |  | | PU P#31 | |  | | PU P#32 | |  | | PU P#33 | |  | | PU P#34 | |  | | PU P#35 | | | | |
 | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ | | | |
 | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ |  | /---------\ | | | |
 | | PU P#63 | |  | | PU P#64 | |  | | PU P#65 | |  | | PU P#66 | |  | | PU P#67 | |  | | PU P#68 | |  | | PU P#69 | |  | | PU P#70 | |  | | PU P#71 | | | | |
 | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ |  | \---------/ | | | |
 \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/  \-------------/ | | |

@vkarak vkarak requested a review from teojgo January 25, 2019 10:53
Copy link
Contributor

@teojgo teojgo left a comment

Choose a reason for hiding this comment

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

lgtm, I also tried myself and it works fine.

@jgphpc
Copy link
Contributor

jgphpc commented Jan 25, 2019

For info, there are variations between compilers on daint-mc (-n1 -c36, no multithreading):
screenshot 2019-01-25 at 14 06 36

@vkarak
Copy link
Contributor

vkarak commented Jan 28, 2019

@jenkins-cscs retry daint

@vkarak
Copy link
Contributor

vkarak commented Jan 29, 2019

@jgphpc You have a point with your comment. However, I wouldn't block this PR for this. I would rather create a follow up one for fixing what you suggest.

@jgphpc
Copy link
Contributor

jgphpc commented Jan 29, 2019 via email

@vkarak vkarak removed this from the ReFrame sprint 2019w03 milestone Jan 30, 2019
@vkarak vkarak modified the milestone: Upcoming sprint Feb 7, 2019
@codecov-io
Copy link

codecov-io commented Feb 12, 2019

Codecov Report

Merging #657 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #657   +/-   ##
=======================================
  Coverage   91.84%   91.84%           
=======================================
  Files          77       77           
  Lines        9403     9403           
=======================================
  Hits         8636     8636           
  Misses        767      767

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b843ce8...b03aee9. Read the comment docs.

Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

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

lgtm

@vkarak
Copy link
Contributor

vkarak commented Feb 13, 2019

@victorusu Can you check and approve this PR?

@vkarak vkarak dismissed victorusu’s stale review February 15, 2019 15:16

All comments are addressed; we need to merge this one.

@vkarak vkarak merged commit 9884fe7 into reframe-hpc:master Feb 16, 2019
@rsarm rsarm deleted the checks/affinity branch November 26, 2019 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants