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

CHOLMOD Wrapper Integration #9

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

Pranav-Jain
Copy link

I have added the initial CHOLMOD wrapper. It might be lacking some additional capabilities like "getinfo".

Currently, the issue is that the code couldn't use GPU. I guess it is because of the version of SuiteSparse being used in polysolve. Could you make the necessary changes in the cmake such that it uses v5.10.1 found here https://github.com/DrTimothyAldenDavis/SuiteSparse/releases

Also, the current code assumes that the input stiffness matrix has inner index type of "long int" instead of "int". This is required because only the long integer version of CHOLMOD can leverage GPU acceleration. Might need to automate it.

b = eigen2cholmod(rhs);
x = cholmod_l_solve (CHOLMOD_A, L, &b, cm);

memcpy(result.data(), x->x, result.size() * sizeof(result[0]));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might need to resize result before this

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

// Base(const Base &) = delete; \
// Base &operator=(const Base &) = delete;

////////////////////////////////////////////////////////////////////////////////
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can delete these comments

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@teseoch
Copy link
Member

teseoch commented Mar 10, 2022

nice! we need also the ifdefs on top if chlmod is not available

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

Successfully merging this pull request may close these issues.

None yet

3 participants