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

Fix compiler warnings #138

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Conversation

pelesh
Copy link
Collaborator

@pelesh pelesh commented Feb 16, 2024

Fixed most of compiler workings in #137.

@pelesh pelesh added the bug Something isn't working label Feb 16, 2024
@pelesh pelesh requested a review from kswirydo February 16, 2024 01:03
@pelesh pelesh self-assigned this Feb 16, 2024
@@ -106,6 +106,7 @@ namespace ReSolve
}
}
}
// TODO: What is the purpose of nnzL and nnzU if they are not used after this?
Copy link
Collaborator

Choose a reason for hiding this comment

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

ups thats a bug - now that I have nnzL and nnzU, they should be used while allocating L and U!!! will fix after this is approved.

@@ -165,7 +165,7 @@ namespace ReSolve {
a->update(x->getVectorData(i, ms), ms, memory::HOST);
b->update(x->getVectorData(j, ms), ms, memory::HOST);
ip = handler->dot(a, b, memory::HOST);
if ( (i != j) && (abs(ip) > 1e-14)) {
if ( (i != j) && !isEqual(ip, 0.0)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if you use isEqual here, GramSchmidt test fails on deception (on CPU).

Copy link
Collaborator

Choose a reason for hiding this comment

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

although, there was one other bug that might had been causing this so I take this back (the bug had been fixed)

@pelesh pelesh merged commit c6849e3 into kasia_rand_cpu_only Feb 16, 2024
3 of 4 checks passed
@pelesh pelesh deleted the kasia_rand_cpu_only_warnings branch March 6, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants