-
Notifications
You must be signed in to change notification settings - Fork 42
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
base: cudasiator
Are you sure you want to change the base?
Cudafield #804
Conversation
-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)
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.
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, |
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.
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> |
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.
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; |
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.
Should probably consider using 64-bit here to future proof it .
… mesh parameters struct, moving a few other things around
Cudafield revertparams
Fixed some compiler warnings and removed use of NDEBUG in favour of D…
…d_fixes Cudafield optimizations and fixes
No description provided.