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

Extract and use get_gpu() (kokkos/kokkos#3040, trilinos/Trilinos#6840) #3061

Merged
merged 3 commits into from
May 28, 2020

Conversation

bartlettroscoe
Copy link
Contributor

@bartlettroscoe bartlettroscoe commented May 22, 2020

This is the matching PR for the develop branch that got accidentally merged to the 'master' branch in PR #3048 to address #3040 . (Somehow the branch in PR #3048 got rebased on top of 'master' so it can't be directly merged to 'develop'. Actually, it could but it depends on how the Kokkos release process works if that is okay or not.)

In any case, these should be identical pathes to the commits 5d085fd..7c0f967 so it should not be problem when merging 'develop' into 'master'. (In fact, I just tried it locally and the merge from this branch into 'master' went just fine.)

We will see these three commits having two copies each but those are the breaks at this point.

WARNING: If this PR is not merged, then changes to these files on 'develop' may cause merge conflicts when merging from 'develop' to 'master'. These commits in this branch ensure that will not be a problem.

This fixes the tests KokkosCore_UnitTest_DefaultInit_<x>_MPI_1 that fail when
running with ctest GPU allocation feature that fail becuase they don't run on
GPU device 0 (see kokkos#3040).

Note: Since get_ctest_gpu() returns 0 if CTest has not provided anything, it
is safe to always call it.

This new function get_gpu() should really be unit tested on its own.
…s#3040, trilinos/Trilinos#6840)

This seems to also fix the KokkosCore_UnitTest_DefaultInit_<x>_MPI_1 tests
that where failing when running with ctest GPU allocation feature that fail
because they don't run on GPU device 0 (see kokkos#3040).
@dalg24-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@codecov-commenter
Copy link

codecov-commenter commented May 22, 2020

Codecov Report

Merging #3061 into develop will decrease coverage by 0.2%.
The diff coverage is 58.3%.

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #3061     +/-   ##
=========================================
- Coverage     82.6%   82.4%   -0.3%     
=========================================
  Files          122     122             
  Lines         8074    8095     +21     
=========================================
- Hits          6674    6673      -1     
- Misses        1400    1422     +22     
Flag Coverage Δ
#clang 81.4% <83.3%> (ø)
#gcc 82.6% <58.3%> (-0.3%) ⬇️
Impacted Files Coverage Δ
core/src/impl/Kokkos_Core.cpp 36.4% <58.3%> (-1.6%) ⬇️
core/src/impl/Kokkos_HostThreadTeam.cpp 96.0% <0.0%> (-0.8%) ⬇️

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 4ad349a...036dc2a. Read the comment docs.

@dalg24
Copy link
Member

dalg24 commented May 27, 2020

OK to test

@masterleinad
Copy link
Contributor

Retest this please.

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.

None yet

6 participants