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

Cudafield #804

Draft
wants to merge 89 commits into
base: cudasiator
Choose a base branch
from
Draft

Cudafield #804

wants to merge 89 commits into from

Conversation

zontafil
Copy link

No description provided.

-L1369 DRO.cpp function messed up
-Compiles but produces incorrect results
-Not working properly (cudaMemcpy error)
-This fixed the initial reduction values
-Likely a bug in cuda_moments.cpp (moments_r)
Copy link
Contributor

@markusbattarbee markusbattarbee left a comment

Choose a reason for hiding this comment

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

First round of comments. Didn't look at the fieldsolver or sysboundaries properly yet.

@@ -31,7 +31,7 @@
//FieldFunction should be initialized
void setBackgroundField(
const FieldFunction& bgFunction,
FsGrid< std::array<Real, fsgrids::bgbfield::N_BGB>, FS_STENCIL_WIDTH> & BgBGrid,
FsGrid< Real, fsgrids::bgbfield::N_BGB, FS_STENCIL_WIDTH> & BgBGrid,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure we can't maintain range checks in FSgrid on GPUs? We do have range checks on GPUs in splitvector.

@@ -25,6 +25,8 @@
#include <iostream>
#include <limits>
#include <array>
#include <memory>
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not include development benchmarking stuff in the actual PR (Also for the clock() calls and printfs below)

FsGrid<T, TDim, N> *ptr;
FsGrid<T, TDim, N> *h_ptr;
FsGrid<T, TDim, N> *d_ptr;
uint dataSize;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably consider using 64-bit here to future proof it .

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.

4 participants