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

Where the defination of cublas_sprimme? #76

Open
chinnecat opened this issue Jan 29, 2024 · 2 comments
Open

Where the defination of cublas_sprimme? #76

chinnecat opened this issue Jan 29, 2024 · 2 comments

Comments

@chinnecat
Copy link

No description provided.

@chinnecat
Copy link
Author

I cannot find the detailed defination of such functions like "cublas_sprimme",Could you please specify?

@chinnecat chinnecat changed the title Where the defination of Where the defination of cublas_sprimme? Jan 29, 2024
@eromero-vlc
Copy link
Collaborator

Primme uses a complicated system of macros to avoid writing a different function for each datatype (single, double, and the complex versions) and computing device (cpu, nvidia gpu, rocm gpus...). You can find a brief description here:

https://github.com/primme/primme/blob/master/README_for_developers.rst#types-xhscalar-and-real

All primme function declarations are here:

https://github.com/primme/primme/blob/master/include/primme_eigs.h#L382

And the definitions (the implementations) are here:

https://github.com/primme/primme/blob/master/src/eigs/primme_c.c#L103

The macro Xprimme is replace with each variant, sprimme, dprimme, sprimme_cuda, ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants