-
Notifications
You must be signed in to change notification settings - Fork 12
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
Const generics num of laser #71
Const generics num of laser #71
Conversation
Made all private fields in `QuadrupoleField3D` and `QuadrupoleField2D` public to be consistent with other magnetic field structs
What is the purpose of |
Thanks for the PR @minghuaw !
When we loop over the lasers, we take them into smaller batches of fixed size arrays of LASER_CACHE_SIZE and loop through these. But it might be worth reprofiling given changes in other areas of the code to see if it's worth the extra complexity. You might find this interesting: #9 (comment) |
What is the profiling program you used? I will probably play with it and see what to do with |
My workstation has an intel processor so I was using intel vtune, and found the microarchitecture profiling was the most useful. I was also thinking about adding some microbenching to atomecs, I started doing this at one point but stopped due to time required elsewhere. In my experience microbenching can guide the general performance but one has to be careful not to create highly artificial benchmarks that give misleading results. What are your thoughts on microbenching? |
I am not planning to do microbenching yet. Right now, it's mainly just for two things.
|
The fixed length arrays that had length of
BEAM_LIMIT
now have the length specified with constant generics, which is eventually exposed to the user when creating the builder.