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

Hotfix/with martin cudatrackjob #1

Conversation

martinschwinzerl
Copy link

Could you please check whether these changes fix the problem with the output buffer?
Please let me know either way :-)

Cheers,
Martin

Martin Schwinzerl added 6 commits July 19, 2019 12:14
…b with an externally held output buffer

- provides specializations of the prepare output structures (i.e. beam monitors and elem-by-elem configuration
 ) methods which attempt to send the changed beam elements buffer and the updated elem-by-elem config
 via the arguments rather than keeping the changes only local.

- this fixes an issue encountered with the python CudaTrackJob where the output buffer was always
  stored externally to allow easier sharing with python. It seems that under this circumstances,
  the lattices were not always resend after reset, thus this change was added.

NOTE: There is a chance that with this change, the beam-elements buffer and the elem-by-elem
      config are transfered twice. This is not ideal and should be ensured to not occur which
      will be done in the context of the major restructuring of the TrackJob infrastructure
@aoeftiger
Copy link
Owner

aoeftiger commented Jul 22, 2019

Unfortunately this does not yet seem to solve the issue with the empty results after trackjob.collect() on the GPU with CUDA trackjobs. The maximum ID of the particles is still not correctly set in the monitor. See here:

https://nbviewer.jupyter.org/github/aoeftiger/sixtracklib_pyht_playground/blob/bf8168ee9cd480ff9803f3fce76b5f0b0216eac3/fodo_sc/SixTrackLib_Cavity.ipynb

(see cell 23)

aoeftiger pushed a commit that referenced this pull request Aug 16, 2019
Space charge implementation
@martinschwinzerl martinschwinzerl deleted the hotfix/with_martin_cudatrackjob branch November 12, 2019 16:00
aoeftiger pushed a commit that referenced this pull request Mar 5, 2021
update to gianni's master
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.

2 participants