p12tic/libsimdpp

C++

Portable header-only C++ low level SIMD library

sseavx2avx512neonvsxmsaaltivecsimd
Star 增长趋势
Star
1.3k
Forks
129
周增长
+0
Issues
53
5001k
2023年1月2024年3月2025年6月2026年9月
README

libsimdpp

Travis build status Appveyor build status Join the chat at https://gitter.im/libsimdpp/Lobby

libsimdpp is a portable header-only zero-overhead C++ low level SIMD library. The library presents a single interface over SIMD instruction sets present in x86, ARM, PowerPC and MIPS architectures. On architectures that support different SIMD instruction sets the library allows the same source code files to be compiled for each SIMD instruction set and then hooked into an internal or third-party dynamic dispatch mechanism. This allows the capabilities of the processor to be queried on runtime and the most efficient implementation to be selected.

The library sits somewhere in the middle between programming directly in SIMD intrinsics and even higher-level SIMD libraries. As much control as possible is given to the developer, so that it's possible to exactly predict what code the compiler will generate.

No API-breaking changes are planned for the foreseeable future.

Documentation

Online documentation is provided here.

Compiler and instruction set support

  • This describes the current branch only which may be unstable or otherwise unfit for use. For available releases please see the libsimdpp wiki.

The library supports the following architectures and instruction sets:

  • x86, x86-64: SSE2, SSE3, SSSE3, SSE4.1, AVX, AVX2, FMA3, FMA4, AVX512F, AVX512BW, AVX512DQ, AVX512VL, XOP, popcnt
  • ARM 32-bit: NEON, NEONv2
  • ARM 64-bit: NEON, NEONv2
  • PowerPC 32-bit big-endian: Altivec, VSX v2.06, VSX v2.07
  • PowerPC 64-bit little-endian: Altivec, VSX v2.06, VSX v2.07
  • MIPS 32-bit little-endian: MSA
  • MIPS 64-bit little-endian: MSA

The primary development of the library happens in C++14.

Supported compilers:

  • GCC: 4.8-7.x
  • Clang: 3.3-4.0
  • Xcode 7.0-9.x
  • MSVC: 2013, 2015, 2017
  • ICC (on both Linux and Windows): 2013, 2015, 2016, 2017

Various compiler versions are not supported on various instruction sets due to compiler bugs or incompletely implemented instruction sets. See simdpp/detail/workarounds.h for more details.

  • MSVC and ICC are only supported on x86 and x86-64.

  • AVX is not supported on Clang 3.6 or GCC 4.4

  • AVX2 is not supported on Clang 3.6.

  • AVX512F is not supported on:

    • GCC 5.x and older
    • Clang 5.0 and older
    • MSVC
  • NEON armv7 is not supported on Clang 3.3 and older.

  • NEON aarch64 is not supported on GCC 4.8 and older

  • Altivec on little-endian PPC is not suppported on GCC 5.x and older.

  • VSX on big-endian PPC is not supported on GCC 5.x and older.

  • MSA is not supported on GCC 6.x and older.

Contributing

Contributions are welcome. Please see CONTRIBUTING.md for more information.

License

The library may be freely used in commercial and non-commercial software. The code is distributed under the Boost Software License, Version 1.0. Some internal development scripts are licensed under different licenses -- see comments in these files. The documentation is licensed under CC-BY-SA.

Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:

The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

相关仓库
ComposioHQ/composio

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

TypeScriptnpmMIT Licenseaipython
docs.composio.dev
30k4.8k
mountain-loop/yaak

The most intuitive desktop API client. Organize and execute REST, GraphQL, WebSockets, Server Sent Events, and gRPC 🦬

TypeScriptnpmappMIT Licensehttp-clienttauri
yaak.app
19.1k807
centrifugal/centrifugo

Scalable real-time messaging server in a language-agnostic way. Self-hosted alternative to Pubnub, Pusher, Ably, socket.io, Phoenix.PubSub, SignalR. Set up once and forever.

GoGo ModulesApache License 2.0websocketredis
centrifugal.dev
10.7k728
haris-musa/excel-mcp-server

A Model Context Protocol server for Excel file manipulation

PythonPyPIMIT Licenseexcelmcp
excelmcpserver.com
4.1k457
Atmosphere/atmosphere

Portable AI agent runtime for the JVM. One @Agent class runs on Spring AI, LangChain4j, Anthropic, or 9 more behind one SPI. Token streaming, tool calls, human approvals, and governance over WebSocket, SSE, gRPC, or WebTransport/HTTP3. Speaks MCP, A2A, and AG-UI.

JavaMavenApache License 2.0javawebsocket
async-io.live
3.8k761
punkpeye/fastmcp

A TypeScript framework for building MCP servers.

TypeScriptnpmlibraryMIT Licensemcpsse
glama.ai/mcp/servers
3.3k305
simd-everywhere/simde

Implementations of SIMD instruction sets for systems which don't natively support them.

ClibraryMIT Licensesimd-intrinsicssse
simd-everywhere.github.io/blog/
3.1k321
recp/cglm

📽 Highly Optimized 2D / 3D Graphics Math (glm) for C

ClibraryMIT Licensemathvector
3k291
guillaumeblanc/ozz-animation

Open source c++ skeletal animation library and toolset

C++Otheranimationgame
guillaumeblanc.github.io/ozz-animation/
2.9k343
vector4wang/spring-boot-quick

:herb: 基于springboot的快速学习示例,整合自己遇到的开源框架,如:rabbitmq(延迟队列)、Kafka、jpa、redies、oauth2、swagger、jsp、docker、k3s、k3d、k8s、mybatis加解密插件、异常处理、日志输出、多模块开发、多环境打包、缓存cache、爬虫、jwt、GraphQL、dubbo、zookeeper和Async等等:pushpin:

JavaMavenmavenmodules
blog.wangxc.club
2.8k925
xtensor-stack/xsimd

C++ wrappers for SIMD intrinsics and parallelized, optimized mathematical functions (SSE, AVX, AVX512, NEON, SVE, WebAssembly, VSX, RISC-V))

C++libraryBSD 3-Clause "New" or "Revised" Licensesimd-intrinsicsvectorization
xsimd.readthedocs.io
2.7k307
sparfenyuk/mcp-proxy

A bridge between Streamable HTTP and stdio MCP transports

PythonPyPIMIT Licensemcpmcp-server
2.7k257