Skip to content

Laplacian inversion on GPU via CUDA backend - #3479

Open
jonycastagna wants to merge 3 commits into
nextfrom
next-gpu-laplacian
Open

Laplacian inversion on GPU via CUDA backend#3479
jonycastagna wants to merge 3 commits into
nextfrom
next-gpu-laplacian

Conversation

@jonycastagna

Copy link
Copy Markdown

Hi @bendudson, this is the first version of Laplacian inversion via CUDA backend. It is ready to merge into next, but wiill be good to go trough it together as there are still some limitations.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

#include "bout/openmpwrap.hxx"
#include "bout/utils.hxx"

#if BOUT_HAS_CUDA

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

warning: no header providing "BOUT_HAS_CUDA" is directly included [misc-include-cleaner]

src/invert/laplace/common_transform.cxx:4:

- #include "bout/constants.hxx"
+ #include "bout/build_defines.hxx"
+ #include "bout/constants.hxx"

#endif

#include <algorithm>
#include <iterator>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

warning: included header algorithm is not used directly [misc-include-cleaner]

Suggested change
#include <iterator>
#include <iterator>

#include <algorithm>
#include <iterator>
#include <memory>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

warning: included header memory is not used directly [misc-include-cleaner]

Suggested change

#include <array>
#include <algorithm>
#include <tuple>
#include <vector>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

warning: included header tuple is not used directly [misc-include-cleaner]

Suggested change
#include <vector>
#include <vector>

#include "bout/utils.hxx"

#include <memory>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

warning: included header memory is not used directly [misc-include-cleaner]

Suggested change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants