• Stars
    star
    1,118
  • Rank 41,559 (Top 0.9 %)
  • Language
    C++
  • License
    Boost Software Li...
  • Created over 11 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Portable header-only C++ low level SIMD library

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++11. A C++98-compatible version of the library is provided on the cxx98 branch.

Supported compilers:

  • C++11 version:

    • 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
  • C++98 version

    • GCC: 4.4-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

Newer versions of the aforementioned compilers will generally work with either C++11 or C++98 version of the library. Older versions of these compilers will generally work with the C++98 version of the library.

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.

More Repositories

1

cppreference-doc

C++ standard library reference
HTML
380
star
2

awn

Official Avant Window Navigator repository
C++
95
star
3

eagle-brd-merge

A tool to merge several Eagle board files
Python
28
star
4

awn-extras

Official Avant Window Navigator Extras repository
Vala
20
star
5

cppreference-doc_debian

C++ standard library reference (packaging)
HTML
17
star
6

libbittwiddle

A collection of bit manipulation routines for C++
C++
15
star
7

libdesktop-agnostic

A fork of libdesktop-agnostic
Python
14
star
8

simple-http-file-server

Simple HTTP file server written in python
Python
14
star
9

NativeSvgHandler

A MediaWiki extension that allows svg files to be sent directly to clients for client-side rendering
PHP
9
star
10

emerald

A Compiz window decorator
C++
8
star
11

tf700-kernel

Original Asus TF700T kernel rebased to a newer release
C
4
star
12

AddBodyClass

A MediaWiki extension for adding custom classes to the <body> tag
PHP
3
star
13

AutoLinker

A MediaWiki extension for automatically linking certain identifiers
PHP
2
star
14

awn_ppa

Avant Window Navigator PPA
1
star
15

sanescan

C++
1
star
16

mobisane

C++
1
star
17

emerald_debian

Emerald Debian packaging
1
star
18

tidy-container

Standard containers that clear traces of the stored contents from RAM
C++
1
star
19

cppreference-doc-ppa

C++ standard library reference (packaging)
1
star
20

CppSearch

Custom MediaWiki search engine for C/C++ identifiers listed in file.
PHP
1
star
21

CustomList

Alternative list syntax for Mediawiki. Allows custom list labels for enhanced readability of complex lists.
PHP
1
star
22

kicad_ppa

KiCad PPA packaging
1
star
23

awn-extras_ppa

Avant Window Navigator Extras PPA packing
1
star
24

compiz-mirror

Mirror of Compiz main branch at https://code.launchpad.net/compiz
C++
1
star
25

wnckmm

C++ wrapper for libwnck, Window Navigator Construction Kit
C++
1
star