-
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
Create examples for Distance-1 and Distance-2 Graph Coloring #413
Comments
This is good to do ... |
@william76 Was this ever done ? |
@srajama1 I never did get a chance on that... I got buried with doing Xpetra ETI work this summer. The distance-2 graph coloring perf test is actually a pretty good example... I'll see if I can strip it down a little and remove some dependencies from the |
@william76 - here is some glue for an internal impl matrix market reader that takes a filename and store as a CrsMatrix. It won't handle matrix market files of "pattern" type properly right now but I think @brian-kelley is working on a fix. #include <KokkosKernels_IOUtils.hpp>
typedef KokkosSparse::CrsMatrix<scalar_t, lno_t, execution_space, void, size_type> crsmat_t;
crsmat_t triMtx = KokkosKernels::Impl::read_kokkos_crst_matrix<crsmat_t>(lfilename.c_str()); |
@brian-kelley If you need an example of how to handle "pattern" matrices, check out the Tpetra Matrix Market reader. |
I put in a PR with a somewhat stripped down version of the D2GC code from the @brian-kelley the D2GC code is also used in the MueLu Aggregation routines. I think it's still using the |
@william76 KokkosKernels PR #466 with the full MatrixMarket support will probably be merged in the next few days. Then you don't even need to deal with CrsMatrix, you can just do
and that will read a pattern file (or any matrix, and discard the scalar values). |
@brian-kelley ooh, cool! I'll hold off mucking around with this D2GC example till that's in =) When that's merged in can you shoot me a note? |
@william76 It was just merged. |
Create examples for Distance-1 and Distance-2 graph coloring.
They should be put in:
example/graph/KokkosKernels_Example_Distance1GraphColor.cpp
example/graph/KokkosKernels_Example_Distance2GraphColor.cpp
Requirements:
perf_test
samples do but keep it as 'bare bones' as possible for an exmaple.The text was updated successfully, but these errors were encountered: