-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: main
Are you sure you want to change the base?
Add AMGCL_cuda #70
Conversation
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave pardiso off
There was a problem hiding this comment.
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": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it have opts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
src/polysolve/linear/AMGCL_cuda.cu
Outdated
json default_params() | ||
{ | ||
json params = R"({ | ||
"precond": { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved.
src/polysolve/linear/AMGCL_cuda.cu
Outdated
@@ -0,0 +1,173 @@ | |||
#ifdef POLYSOLVE_WITH_AMGCL | |||
// #ifdef POLYSOLVE_WITH_CUDA |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Has error at linking: undefined reference to
__cudaRegisterLinkedBinary_...