TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Learning SIMD with Rust by Finding Planets (2018)

112 点作者 btashton超过 5 年前

4 条评论

gameswithgo超过 5 年前
You may enjoy my video tutorial on SIMD Intrinsics as well:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=4Gs_CA_vm3o" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=4Gs_CA_vm3o</a><p>I also use Rust but its perfectly fine for learning about intrinsics in C&#x2F;C++ or .NET as well. I cover some of the fundamental strategies for using them well, how to lay out data in memory, how to deal with branches, etc.
pixelpoet超过 5 年前
&gt; After running benchmarks with all the variants and planets, the improvement is about 9% to 12%.<p>Pretty weak speedup, maybe a straight up n-body implementation would see closer to the 8x theoretical speedup.
评论 #20827733 未加载
qiqitori超过 5 年前
&gt; AVX functions start with _mm256_<p>I don&#x27;t know anything about Rust, but a nicer word is probably &quot;intrinsics&quot;. They usually compile to a single instruction.
评论 #20828031 未加载
krapht超过 5 年前
This looks kinda gross to me. Do the rust developers not want to emulate what ipsc and cuda do? Writing intrinsics by hand is not what I expect from a 2019 language.
评论 #20828083 未加载
评论 #20828006 未加载
评论 #20828228 未加载
评论 #20827961 未加载
评论 #20830071 未加载
评论 #20828490 未加载
评论 #20827912 未加载