-
Notifications
You must be signed in to change notification settings - Fork 224
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
Compile numerics #516
Compile numerics #516
Conversation
b917e6a
to
b5c6348
Compare
Updates of Clang versions should go into a separate PR (which we would merge first). |
networkit/cpp/algebraic/test/AlgebraicSpanningEdgeCentralityGTest.cpp
Outdated
Show resolved
Hide resolved
602367e
to
8f64a7f
Compare
Add numerics module to CMakeLists, fix compilation errors in the numerics module.
Fix unused parameter warning, and minor changes.
8f64a7f
to
85ad4ea
Compare
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.
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.
I am unhappy with the structure of this PR. Why does this change stuff in io, graph, algebraic, etc. if the goal is to compile the numerics code?
e63a963
to
30ed860
Compare
Sorry those have been introduced by mistake, the changes in |
|
||
|
||
Vector LAMGGTest::randVector(count dimension, double lower, double upper) const { | ||
Vector LAMGGTest::randVector(count dimension, double, double) const { |
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.
This looks suspicious. Why doesn't the function use it's arguments?
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.
I don't know the details about that, I just removed unused variables.
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.
Looks like the originally wanted functionality was removed without removing the parameters.
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.
Possibly. In that case, remove the parameters as well.
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.
I removed them.
30ed860
to
3fbd8d8
Compare
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 now.
Merging this early since this (mostly) only adds a new module and is needed for the new release. |
The numerics module and its tests were never compiled because
numerics
was not included innetworkit/CMakeLists
. This PR fixes some compilation errors in thenumerics
module and includes it in the build and updatesgoogletest
.Unfortunately,
LAMGGTest
segfaults when compiled with clang-3.8/3.8.1. As far as I see, this is due to a compiler bug. Since clang-3.8 has another bug that prevents us to generalizeCSRMatrix
to store generic types (see #359), I'd suggest to move to clang-3.9.