Skip to content

Instantly share code, notes, and snippets.

@kramred
Created March 14, 2018 15:27
Show Gist options
  • Save kramred/4646164152f8adc681348b9bd201cbdc to your computer and use it in GitHub Desktop.
Save kramred/4646164152f8adc681348b9bd201cbdc to your computer and use it in GitHub Desktop.
# export JULIA_NUM_THREADS=6
# ./julia -p 6
# BLAS.set_num_threads(6)
flps=Array{Float64}(0)
iterations=10
for n in 1:iterations
one_run=peakflops(3000,parallel=true) / 1e9;
push!(flps, one_run);
println("run no. $(n) (of $(iterations)): ~ $(round(one_run, 2)) Gflops");
end; println("minimum: $(round(minimum(flps),2)), maximum: $(round(maximum(flps),2)), mean: $(round(mean(flps),2)), median: $(round(median(flps),2)) with std: $(round(std(flps),2))")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment