List of open source projects using SIMD to achieve extreme performance

栏目: IT技术 · 发布时间: 4年前

内容简介:Today we are going to talk about high performance. Not the standard distributed cloud blahblah but high performance on a single core on a single machine. Please welcome SIMD instructions.SIMD (for Single Instruction, Multiple Data) are special instructions

Today we are going to talk about high performance. Not the standard distributed cloud blahblah but high performance on a single core on a single machine. Please welcome SIMD instructions.

Did you know?

What are SIMD instructions?

SIMD (for Single Instruction, Multiple Data) are special instructions on CPUs and GPUs that allow them to perform an operation on multiple bytes with only one instruction.

It is often called vectorization because operations are applied to a vector of data with a single instruction.

It allows to implement very fast algorithms on a single thread on general purpose hardware, as opposed to specific hardware acceleration like AES-NI .

It is particularly used in machine learning, cryptography, databases and content processing (video / image / audio encoding) and is a good alternative to multithreading.

MMX, SSE, AVX, AVX-512 are SIMD instructions for Intel. NEON for ARM.

Projects

simdjson-go (Apache-2.0)

A Go port of simdjson by MinIO which can parse up to gigabytes of JSON per second :rocket:

pikkr (MIT)

“JSON parser which picks up values directly without performing tokenization in Rust”

faster (MPL 2.0)

“Easy, powerful, portable, absurdly fast numerical calculations. Includes static dispatch with inlining based on your platform and vector types, zero-allocation iteration, vectorized loading/storing, and support for uneven collections." For Rust.

ncnn (BSD 3-Clause)

A high-performance neural network inference framework optimized for the mobile platform by Tencent.

mandel-simd (public domain)

Mandelbrot Set in SSE, AVX, and NEON.

fastlwc (MIT)

SIMD-enhanced wc (Word Counter).

Project of the community

QuestDB (Apache 2.0)

“QuestDB is a NewSQL relational database designed to process time-series data, faster. Our approach comes from low-latency trading. QuestDB’s stack is engineered from scratch, zero-GC Java and dependency-free. The whole database and console fits in a 3.5Mb package." They are using SIMD to achieve extreme performance (see below).

Articles

On the dangers of Intel's frequency scaling

Unfortunately using SIMD is not a silver bullet and may slow down your multithreaded programs due to how some intel’s processors throttle.

Using SIMD to aggregate billions of rows per second

With their new 4.2 release, QuestDB (a time-series database) introduced SIMD which made their (already fast) aggregations faster by 100x.

Parsing gigabytes of JSON per second in Go

This is the detailed explanation of why and how MinIO ported simdjson to Go.

SIMD < SIMT < SMT: parallelism in NVIDIA GPUs

The difference between SIMD, SIMT and SMT and how it works in Nvidia GPUs.

Towards fearless SIMD

A good write-up about how to transpose the safe and zero-cost abstraction philosophy of Rust to the SIMD world.

SIMD instructions in Go

An overview of using SIMD instructions with Go for different processor architectures.

Base64 encoding and decoding at almost the speed of a memory copy

This research paper describes how they achieved base64 encoding and decoding at almost the speed of a memcpy . Really impressive.

Learning SIMD with Rust by finding planets

A concrete guide of using SIMD to speed up an algorithm in a portable way (in Rust).

Security

This week has been particularly bad regarding security. Major vulnerabilities have been patched in Firefox (2 times!), Ubuntu’s Linux Kernel, Red Hat’s Linux Kernel, Suse’s Linux Kernel, Android, and more.

Go update right now (browsers need to be restarted to apply auto-updates).

You can read more here.

Stay safe :v:

Sylvain


以上所述就是小编给大家介绍的《List of open source projects using SIMD to achieve extreme performance》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

谷歌的断舍离:互联网企业的破坏式创新

谷歌的断舍离:互联网企业的破坏式创新

[日]辻野晃一郎 / 樊颖 / 机械工业出版社 / 2018-1 / 45.00

本书主要分为三部分: 第一部分主要讨论了世界当下如火如荼的互联网企业进军传统产业大潮,并探讨了传统企业在互联网时代的救赎之路。 第二部分主要探讨了成功体验的反面:速度与迭代,并讨论了传统企业之所以无法实现迭代与快速发展的关键原因。介绍互联网公司如何通过组织精简流程来实现高速竞争时代的机动性。 第三部分讨论了互联网时代究竟需要什么样的人才,传统企业的员工应当怎样投身互联网企业才能避......一起来看看 《谷歌的断舍离:互联网企业的破坏式创新》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具