-
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
Can I run KokkosKernels spgemm with float or int32 type? #583
Comments
@Lilian92 Can you give me some more details ? What is the build script you used ? The code is fully templated, so yes float is supported. All the ids are ints typically. Are you trying to multiply where the matrix entries themselves are ints ? |
I am sorry for the lack of details in the question. Myself: What is the build script you used ? The code is fully templated, so yes float is supported. All the ids are ints typically. Are you trying to multiply where the matrix entries themselves are ints ? I have tried to change:
To: KOKKOSKERNELS_SCALARS=int
Then change:
To: #if defined(KOKKOSKERNELS_INST_INT) && \
To: #define SCALAR_TYPE int
To: #if !defined(KOKKOSKERNELS_INST_INT)
But during running, I will get error from:
|
@Lilian92 Thanks for the context. This is technically a problem with that test file which assumes double. The actual source code does not have the assumption. Can you try SCALAR to be float first ? I will see what is needed for scalar to be int. |
Thank you so much for your fast reply! I have tried with float. With float, it won't pass the compiling for spgemm. |
Thanks for checking things out! |
Can you cut and paste the error ? I will check. |
Below is the log from '"make build-test -j". Thanks! |
@brian-kelley As you are deep into SpGEMM, this might be a good test. |
@srajama1 I had a branch from December where I was cleaning up the sparse perf tests, and using sensible scalar, ordinal, size_t, layout types based on what is ETI'd. So I'll finish that up and make sure scalar=float works everywhere. @Lilian92 If we get float to work, would you still want to try scalar=int? It won't be supported by the build system, but by including the right headers and plugging int into the template parameters it should be possible. |
@Lilian92 I'm sorry this took so long, it turns out we had several issues with building the performance tests with For now, these instructions will involve checking out my branch, but within a few days this should be in the main develop branch. Instructions for float:
Instructions for int:
Note that for the int version, you'll have to have integer-formatted MatrixMarket input files. The header should look like this (maybe 'general' is different, but 'integer' should be there).
|
@Lilian92 Apologies, I just realized that even if you compile with |
Cool, thank you so much! |
@Lilian92 Are you able to successfully run this case ? |
Yes, thank you for asking!
…On Mon, Mar 2, 2020, 4:55 PM Siva Rajamanickam ***@***.***> wrote:
@Lilian92 <https://github.com/Lilian92> Are you able to successfully run
this case ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#583?email_source=notifications&email_token=AENMP7CTINQJOK7WTAH4ZRLRFQTL7A5CNFSM4KMYKDX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENRENVA#issuecomment-593643220>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AENMP7C6PCJJFFXGSWWAPFTRFQTL7ANCNFSM4KMYKDXQ>
.
|
I am running under ./example/buildlib/perf_test.
The text was updated successfully, but these errors were encountered: