-
Notifications
You must be signed in to change notification settings - Fork 99
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
Graph: Deterministic coloring #249
Changes from all commits
a709e16
ce32e71
2d36f21
5b1afbc
898e3bf
a2eed06
6a3ec15
32e822a
2cb7b3b
d26c37e
3a48ad0
eda1653
96ee015
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
.cproject | ||
.project | ||
*.o | ||
TAGS |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ struct TeamNrm2<TeamType, XV, false> { | |
typedef Kokkos::Details::ArithTraits<typename IPT::mag_type> AT; | ||
|
||
static KOKKOS_INLINE_FUNCTION mag_type team_nrm2 (const TeamType& team, const XV& X) { | ||
mag_type result; | ||
mag_type result = 0.0; //Kokkos::Details::ArithTraits<mag_type>zero(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a TBD later for using ArithTraits ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had issues compiling the code when There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, Thanks ! Just a TBD that needs clean up in the next round. |
||
int N = X.extent(0); | ||
Kokkos::parallel_reduce(Kokkos::TeamThreadRange(team,N), [&] (const int& i, mag_type& val) { | ||
const typename IPT::mag_type tmp = IPT::norm (X(i)); | ||
|
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.
Assume this is temporary.
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.
Never mind previous comment, this is in testing
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 added guards and now you need to request these outputs explicitly, it might actually make sense to have some special debugging flag to get that level of output details?