You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a simple function to compare the runtime of a variety of ways to perform x = x + α * y in Julia. I was under the impression that @devec should produce a timing close to that of the explicit loop, or perhaps even recognize that a BLAS call is applicable, but it turns out that it's even slower than the plain x = x + α * y. Am I doing something wrong?
I wrote a simple function to compare the runtime of a variety of ways to perform
x = x + α * y
in Julia. I was under the impression that@devec
should produce a timing close to that of the explicit loop, or perhaps even recognize that a BLAS call is applicable, but it turns out that it's even slower than the plainx = x + α * y
. Am I doing something wrong?Here is the script: https://gist.github.com/8c5da6abd585f7f07da6
And here is the output:
I tried placing the
@devec
test in a separate script. For some reason, the timings are better but there's a substantial amount of garbage collection:Thanks.
The text was updated successfully, but these errors were encountered: