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

Logging and debugging #70

Open
ggalgoczi opened this issue Dec 3, 2024 · 1 comment
Open

Logging and debugging #70

ggalgoczi opened this issue Dec 3, 2024 · 1 comment

Comments

@ggalgoczi
Copy link
Collaborator

Here we can collect ways to log and debug Opticks. @plexoos please feel free to add commands.

@ggalgoczi
Copy link
Collaborator Author

export PIDX=XXX prints out the history of ray number XXX from the GPU:

Example output:

//qsim.propagate.head idx 0 : bnc 0 cosTheta -0.97617936
//qsim.propagate.head idx 0 : mom = np.array([0.00282741,0.21694653,0.97617936]) ; lmom = 0.99999994
//qsim.propagate.head idx 0 : pos = np.array([-399.99982,-292.93124,-171.72629]) ; lpos = 524.68890381
//qsim.propagate.head idx 0 : nrm = np.array([(0.00000000,0.00000000,-1.00000000]) ; lnrm = 1.00000000
//qsim.propagate_to_boundary.head idx 0 : u_absorption 0.14406531 logf(u_absorption) -1.93748856 absorption_length 999999995904.0000 absorption_distance 1937488609280.000000
//qsim.propagate_to_boundary.head idx 0 : post = np.array([-399.99982,-292.93124,-171.72629, 0.11789])
//qsim.propagate_to_boundary.head idx 0 : distance_to_boundary 345.4553 absorption_distance 1937488609280.0000 scattering_distance 1110608445440.0000
//qsim.propagate_to_boundary.head idx 0 : u_scattering 0.3294 u_absorption 0.1441
//qsim.propagate_to_boundary.tail.SAIL idx 0 : post = np.array([-399.02307,-217.98593, 165.50002, 1.27076]) ; sail_time_delta = 1.15287
//qsim.propagate.body idx 0 bounce 0 command 3 flag 0 s.optical.x 74 s.optical.y 2
//qsim.propagate.body.NOT:WITH_CUSTOM4 idx 0 BOUNDARY ems 2 lposcost 0.342
//qsim.propagate_at_surface.SA/SD.BREAK idx 0 : flag 64
//qsim.propagate.tail idx 0 bounce 0 command 1 flag 64 ctx.s.optical.y(ems) 2

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

No branches or pull requests

1 participant