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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What's a good resource to get comfortable with SIMD?

6 点作者 sanjeetsuhag将近 2 年前
I would like to be proficient at identifying places for and applying SIMD in my C&#x2F;C++ programs. The domain is primarily centered around graphics, but I am open to resources from other domains too.<p>Ideally what I would like is some sort of progression for problems that may benefit from application of SIMD. From reading case studies online, it seems like there&#x27;s lots of little tricks and stuff, almost like there&#x27;s a different way of thinking about types, values and operations on them that you have to know.

2 条评论

nivertech将近 2 年前
I would first learn a couple of Array Programming Languages, first a mainstream one, e.g. Julia&#x2F;R&#x2F;Matlab&#x2F;Octave, and then one from the APL-family (APL&#x2F;J&#x2F;K&#x2F;Q&#x2F;etc.)<p>Lear how to write algorithms using vectorization only (without if-s and for-s).<p>Look into OpenCL &#x2F; CUDA programming models.<p>Then it will be much easier to learn native SIMD programming for specific ISAs.<p>---<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Array_programming" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Array_programming</a><p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Category:Array_programming_languages" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Category:Array_programming_lan...</a>
b20000将近 2 年前
get a profiler, pick an algorithm, and parallellize it using simd<p>then compare before &#x2F; after using the profiler<p>learn about the intrinsics as you work on it