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
Get rid of VectorSpaceVector in the Cuda Vector class. #15622
Conversation
source/lac/cuda_vector.cc
Outdated
{ | ||
// Check that casting will work. | ||
Assert(dynamic_cast<const Vector<Number> *>(&scaling_factors) != nullptr, | ||
ExcVectorTypeNotCompatible()); | ||
|
||
// Downcast V. If fails, throw an exception. | ||
const Vector<Number> &down_scaling_factors = | ||
const Vector<Number> &scaling_factors = |
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.
We don't need this line anymore
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.
Yes. I also learned in #15623 that there will likely be many errors still around the corner. I shouldn't have picked this class, since I can't compile it locally :-(
There is still a bunch of |
Not just that, but also marking these functions as |
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.
Let's see what the CI says.
There are unrelated failures in the |
I have to admit that I don't know what happens with the CUDA check here. I understand what the error message says, but I can't figure out where we call these functions from. Do any of you CUDA people have suggestions? |
The error message is
The check in https://github.com/dealii/dealii/pull/15622/files#diff-7344c9e5015cc2cc54ce87fbce41edd9031caa89324129878e28e1ffbd80397aR377-R379 has just become pointless and should be removed, right? |
The error is at line 378 in cuda.cc. You forgot to remove a downcasting check. |
Ah, that too. But I was really referring to these messages (https://github.com/dealii/dealii/actions/runs/5459249763/jobs/9935051876?pr=15622):
I recognize now that these just happened to be at the bottom of the (parallel build) log and I mistook them as the cause for the failure, but they are just warnings that happened to be at the bottom. Let's see what happens after fixing the left-over dynamic cast. |
You can ignore these warnings. The issue is that we have many functions in |
I believe that the test failures are current master breakage. The CUDA CI succeeds, and that's the only one that should see the changes. |
First simple step towards the resolution of #3073.