-
Notifications
You must be signed in to change notification settings - Fork 578
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
MueLu, Xpetra: Kokkos refactor, RefMaxwell, IO #2957
Conversation
* Add SetKokkosRefactor to FactoryManager. * Read "use kokkos refactor" from factory xml. * Fix non-kokkosified tests that error out when run with MUELU_KOKKOS_REFACTOR_USE_BY_DEFAULT
Status Flag 'Pre-Test Inspection' - Auto Inspected - Inspection Is Not Necessary for this Pull Request. |
Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects: Pull Request Auto Testing STARTING (click to expand)Build InformationTest Name: Trilinos_pullrequest_gcc_4.9.3
Jenkins Parameters
Build InformationTest Name: Trilinos_pullrequest_gcc_4.8.4
Jenkins Parameters
Build InformationTest Name: Trilinos_pullrequest_intel_17.0.1
Jenkins Parameters
Using Repos:
Pull Request Author: cgcgcg |
Status Flag 'Pull Request AutoTester' - Jenkins Testing: all Jobs PASSED Pull Request Auto Testing has PASSED (click to expand)Build InformationTest Name: Trilinos_pullrequest_gcc_4.9.3
Jenkins Parameters
Build InformationTest Name: Trilinos_pullrequest_gcc_4.8.4
Jenkins Parameters
Build InformationTest Name: Trilinos_pullrequest_intel_17.0.1
Jenkins Parameters
|
Status Flag 'Pre-Merge Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging |
All Jobs Finished; status = PASSED, However Inspection must be performed before merge can occur... |
Status Flag 'Pre-Merge Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging |
All Jobs Finished; status = PASSED, However Inspection must be performed before merge can occur... |
@@ -143,7 +136,7 @@ namespace MueLu { | |||
// GetFactory("Ptent"): we need to use the same factory instance for both "P" and "Nullspace" | |||
RCP<Factory> factory; | |||
#ifdef HAVE_MUELU_KOKKOS_REFACTOR | |||
if (useKokkos) | |||
if (useKokkos_) | |||
factory = rcp(new SaPFactory_kokkos()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't this use the macro MUELU_KOKKOS_FACTORY
as is done for TentativePFactory above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The macro returns a const FactoryBase
which does not have the method SetFactory
that the derived Factory
class has. We could use the macro and cast back to Factory
. Would you prefer that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. I don't see a need to change from what you're doing now.
@@ -155,7 +148,7 @@ namespace MueLu { | |||
// GetFactory("Ptent"): we need to use the same factory instance for both "P" and "Nullspace" | |||
RCP<Factory> factory; | |||
#ifdef HAVE_MUELU_KOKKOS_REFACTOR | |||
if (useKokkos) | |||
if (useKokkos_) | |||
factory = rcp(new NullspaceFactory_kokkos()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't this use the macro MUELU_KOKKOS_FACTORY
as is done for TentativePFactory above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Status Flag 'Pre-Merge Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED AND APPROVED by [ jhux2 ]! |
Status Flag 'Pull Request AutoTester' - Pull Request MUST BE MERGED MANUALLY BY Project Team - Master Automerge is disabled (in .cfg file) |
@trilinos/muelu
@trilinos/xpetra
Description
SetKokkosRefactor
to FactoryManager: Determines whether or not Kokkos factories are built by default.MUELU_KOKKOS_REFACTOR_USE_BY_DEFAULT
.Xpetra_IO
that writes out local parts of a CRS matrix.Addresses #2926