Use Kokkos::Parallel in Solver Utils#270
Conversation
|
@EmilyBourne Can you make "ExactSolution" callable on GPU? Then all Kokkos Loops should be finished. |
Ah, I had hoped to avoid this 😅 I will open a PR to remove the inheritance from |
I have put this in draft temporarily until this is fixed |
Actually we can avoid removing the inheritance. We just need to put either a void calculate_error(Vector<double> error, ConstVector<T> r, ConstVector<T> theta, ConstVector<T> exact_solution) const;method in void exact_solution(ConstVector<T> r, ConstVector<T> theta, Vector<T> exact) const;@AbdelhadiKara will take care of this |
Added a host vector for exact solution values in solver.h.
|
@AbdelhadiKara I tried fixing my previous version based on your suggestions. In my version I just used a single host vector which is then transfered to the error vector (device memory in the future). Then I just used the provided subract() function of the LinearAlgebra class. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #270 +/- ##
==========================================
+ Coverage 95.73% 95.75% +0.02%
==========================================
Files 79 79
Lines 8492 8535 +43
==========================================
+ Hits 8130 8173 +43
Misses 362 362 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merge Request - GuideLine Checklist
Guideline to check code before resolve WIP and approval, respectively.
As many checkboxes as possible should be ticked.
Checks by code author:
Always to be checked:
If functions were changed or functionality was added:
If new functionality was added:
If new third party software is used:
If new mathematical methods or epidemiological terms are used:
Checks by code reviewer(s):