Does this code is inefficient for JIT? #7977
Unanswered
jecampagne
asked this question in
Q&A
Replies: 2 comments 9 replies
-
How are you doing the timing? Are you using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Well, the timing that I have done is to count the wall time (on my watch) to get the all_positions array once I have activates the jupyter cell containing the "main" part. For sure it is not a very precise answer and probably you have better way to get this wall time. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear experts,
Here is a simple JAX code to show the Metropolis Algorithm in action to solve a 3 parameters bayesian regression pb. Running wo the JIT compilation is ok even on a CPU. Now I would like to know why when the 2 line concerning JIT are decommented then the timing is not really different both of CPU (Jit or not JIT) and comparing running on a CPU or on a K80/Nvidia GPU?
May I have coded in a wrong/inefficient way?
then, after a first call to get rid of compilation time
I get on CPU: 1min 27s (mean of 7 runs) without JIT and 1min 20s with JIT.
Thanks for your advises.
Beta Was this translation helpful? Give feedback.
All reactions