Explore tweets tagged as #FastMath
#Julia言語 のJuliaのコードに18文字追加して比較し直してみました。3回実行して最短の値を採用。. 1.64秒 ← gfortran -O3.3.50秒 ← julia newton.jl.1.63秒 ← julia newton_inline_fastmath.jl (18文字追加).1.18秒 ← julia> include("newton_inline_fastmath.jl")
1
3
3
#Julia言語 fastmathマクロで非常に速くなるのはこういう場合です。例えば. かける命令とたす命令の組み合わせ. を. 1つの命令でかけてたす. ようにしてくれます(添付画像①)。. 添付画像②以降の例は非常に特殊でコンパイラによる最適化が効きまくっている。.
1
3
10
How does my wife do math so fast? She literally figured out the percentage in the moment! 🧮 #fastmath #fastmathtricks #epicfantasy #writingabook #foundfamily #readingfantasy #writingfantasy #heirtothecrown #dnd #fantasyrpg #fantasyauthor #fantasybooks
1
0
3
@KostasAAA Article misses the key point used by gamedevs for 30 years:. Know when you need results to match between CPU and GPU, and <avoid> FMA in those cases. FMA/FastMath should be opt-in, not opt-out.
4
4
10
#Julia言語 最新版. にも書いてあるinline, fastmath, inbounds, simdの標準的なマクロを追加するのをサボると、2.9倍遅くなってしまいます。. nt = 10^6.28.75 ms ←追加前.9.76 ms ←追加後.
1
2
5
@FreyaHolmer at least in C++ I just do pow(a, 16) and let the compiler handle it, its usually *pretty good* about that kind of stuff. with fastmath on they're identical
1
0
5
#Julia言語 さらなる訂正. Julia版では34文字追加しないとかなり遅くなるという結果. 1.64秒 ← gfortran -O3.3.50秒 ← julia newton.jl.1.41秒 ← julia newton_inline_fastmath_inbounds_simd.jl (34文字追加).1.06秒 ← julia> include("newton_inline_fastmath.jl").
#Julia言語 のJuliaのコードに18文字追加して比較し直してみました。3回実行して最短の値を採用。. 1.64秒 ← gfortran -O3.3.50秒 ← julia newton.jl.1.63秒 ← julia newton_inline_fastmath.jl (18文字追加).1.18秒 ← julia> include("newton_inline_fastmath.jl")
1
1
2
StaticArrays.jl と fastmath macro を加えて Julia 側を C++ の -O2 オプションでの速度まで出すことができました.(という旨のコメントを書きました). #Julia言語.
1
6
30
**🚨 Malicious File Alert! 🚨**. 6/72 security vendors flagged this file as malicious. **Filenames:** .- FastMath.dll .- FastMath.dll.exe .- umpdc.dll .- FastMath.dll.bin . **Hash (SHA-256):** .`8c6c3f9b3fd8497322cd9e798790aa3485a44f9c5418bb4aa97b630a3fb8cead` . #Malware
0
0
0