-
Notifications
You must be signed in to change notification settings - Fork 218
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
Gas Profile from hdf5 #261
Gas Profile from hdf5 #261
Conversation
- (currently not working !) - add gasFromHdf5 - add gasSetup/Teardown methods to all gas configs - pass fieldTmp to kernel during initialization
- different access to DataBox fixes pure virtual error - use stricter types in gasSetup - remove unused gasTeardown - use intermediate buffer for hdf5 initialization - update copyrights
Question: is there a way to access 3D-DataBox using a continuous 1D-index? |
Question: When I try to pass the device DataBox directly here, I get a |
Please highlight the line which you mean with |
It's line 215 in Particles.tpp, which is the line you get top-most when following the link. I don't know why it isn't highlighted. Yes, DataBoxDim1Access looks fine for me, thx. |
DINLINE float_X calcNormedDensitiy( floatD_X pos ) | ||
template<unsigned DIM, typename FieldBox> | ||
DINLINE float_X calcNormedDensity( floatD_X pos, const DataSpace<DIM>& cellIdx, | ||
FieldBox fieldTmp ) |
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.
Please add in all GasProfiles where fieldTmp is not used only the type FieldBox
without a variable name, else we get compiler warnings unused variable
or similar.
Yeah, FRY!!!! 🚀 |
Cool my nvidia logo idea is comming 👍 |
First we shoot on a PIConGPU logo, then on everyones facial profile to see who gains the highest energies (thx @bussmann for that idea). |
Re-assigned @ax3l since @psychocoderHPC is still enjoying vacation (or so I hope). |
An idea for improvement: Let us lower that burden a bit by setting a constant value in This would allow target designers to design a narrow target somewhere in space that they can move by defining the total_offset of the input field (in experiment: moving the target in or out of focus). |
I think the next GPU just starts reading one supercell "too late". |
Apparently, not shifting the databox at all seems to work for multiple GPUs (tested for 1, 2 and 4), any explanation for this?
|
you probably did not shift fieldTmp during filling from hdf5 and now corrected for that in the second call during |
I don't understand what you mean by this. As my comment states, I did not shift anything. I obtain the host databox to fieldTmp (which is larger than the data in the HDF5 file), obtain 1D access to it with the size of the data in the HDF5 file and than just copy data from HDF5 to the databox directly. In my understanding, it would be required to shift the databox with guard-offset because otherwise, my 1D access would include guard data. |
What I mean: I think you should shift your Dim1Access again in Line 114 und put a according guard shift in the kernel before accessing |
- passes current VirtualWindow to gasSetup - support gas offset in png2gas
This has been tested to work with moving window and 3 (y) GPUs. Targets can be smaller and larger than the actual simulation area and can start at any 3D offset. The rest of the simulation area is filled with a default value |
wow, great! ✨ |
👍 coooool |
Hrhr, you will be loved for that 😸 |
One work-flow we probably still have to think about is: how to restart from our FieldTmp generated charge density. Since the values there are not scaled to [0:1] this could be a bit tricky. We might need some post-processing or an other option to override the Anyway, does not have to go with this pull request - we can open a new issue for that :) |
👍 |
We need this for the GTC talk!!!!!! On 13. März 2014 17:22:04 MEZ, f-schmitt-zih [email protected] wrote:
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. |
Continued as #280, closed. |
This pull allows to load the gas profile from an hdf5 file.
Update: The Valgrind errors happen in mainline/dev too, see #267, thus unrelated to this change.