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

Add AMGCL_cuda #70

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

Add AMGCL_cuda #70

wants to merge 3 commits into from

Conversation

xDarkLemon
Copy link
Contributor

Has error at linking: undefined reference to __cudaRegisterLinkedBinary_...

CMakeLists.txt Outdated
option(POLYSOLVE_WITH_CUSOLVER "Enable cuSOLVER library" OFF)
option(POLYSOLVE_WITH_PARDISO "Enable Pardiso library" OFF)
option(POLYSOLVE_WITH_CUSOLVER "Enable cuSOLVER library" ON)
option(POLYSOLVE_WITH_PARDISO "Enable Pardiso library" ON)
Copy link
Member

Choose a reason for hiding this comment

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

leave pardiso off

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

"pointer": "/AMGCL_cuda",
"default": null,
"type": "object",
"optional": [
Copy link
Member

Choose a reason for hiding this comment

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

does it have opts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added.

json default_params()
{
json params = R"({
"precond": {
Copy link
Member

Choose a reason for hiding this comment

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

thse should go in the spec

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved.

@@ -0,0 +1,173 @@
#ifdef POLYSOLVE_WITH_AMGCL
// #ifdef POLYSOLVE_WITH_CUDA
Copy link
Member

Choose a reason for hiding this comment

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

i think we need this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I commented it out because polysolve CMakeLists.txt does not have POLYSOLVE_WITH_CUDA flag, but polyfem has. So I deleted the flag here.

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

2 participants