GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing cpp.libhunt.com — Vc Alternatives - C++ Math | LibHunt VcSIMD Vector Classes for C++
Take the C++ Developer Survey
- About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email.
Take the survey »
Popularity
6.0
Growing
Activity
3.6
-
Stars
1,551
Watchers
58
Forks
152
Last Commit
Code Quality Rank:
L1
Programming language: C++
License: BSD 3-clause "New" or "Revised" License
Tags:
Math
Latest version: v1.4.1
Vc alternatives and similar libraries
Based on the "Math" category.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Promo
www.saashub.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
Do you think we are missing an alternative of Vc or a related project? Popular ComparisonsREADMEVc: portable, zero-overhead C++ types for explicitly data-parallel programmingNOTE: This is the development version, implementing https://wg21.link/p0214. For production use consider the latest release or the 1.3 branch. This implementation requires GCC 7.1 or newer. Support for Clang, ICC, and MSVC is available with the 1.3 branch. IntroductionRecent generations of CPUs, and GPUs in particular, require data-parallel codes for full efficiency. Data parallelism requires that the same sequence of operations is applied to different input data. CPUs and GPUs can thus reduce the necessary hardware for instruction decoding and scheduling in favor of more arithmetic and logic units, which execute the same instructions synchronously. On CPU architectures this is implemented via SIMD registers and instructions. A single SIMD register can store N values and a single SIMD instruction can execute N operations on those values. On GPU architectures N threads run in perfect sync, fed by a single instruction decoder/scheduler. Each thread has local memory and a given index to calculate the offsets in memory for loads and stores. Current C++ compilers can do automatic transformation of scalar codes to SIMD instructions (auto-vectorization). However, the compiler must reconstruct an intrinsic property of the algorithm that was lost when the developer wrote a purely scalar implementation in C++. Consequently, C++ compilers cannot vectorize any given code to its most efficient data-parallel variant. Especially larger data-parallel loops, spanning over multiple functions or even translation units, will often not be transformed into efficient SIMD code. The Vc library provides the missing link. Its types enable explicitly stating data-parallel operations on multiple values. The parallelism is therefore added via the type system. Competing approaches state the parallelism via new control structures and consequently new semantics inside the body of these control structures. Vc is a free software library to ease explicit vectorization of C++ code. It has an intuitive API and provides portability between different compilers and compiler versions as well as portability between different vector instruction sets. Thus an application written with Vc can be compiled for:
ExamplesScalar ProductLet's start from the code for calculating a 3D scalar product using builtin floats:
Using Vc, we can easily vectorize the code using the
The above will scale to 1, 4, 8, 16, etc. scalar products calculated in parallel, depending on the target hardware's capabilities. For comparison, the same vectorization using Intel SSE intrinsics is more verbose and uses prefix notation (i.e. function calls):
The above will neither scale to AVX, MIC, etc. nor is it portable to other SIMD ISAs. Build Requirementscmake >= 3.0 C++17 Compiler:
Building and Installing Vc
DocumentationThe documentation of the master branch is currently out of date. Please refer to https://wg21.link/p0214 for the specification. Documentation for older releases is available at: Publications
Work on integrating the functionality of Vc in the C++ standard library. CommunicationA channel on the freenode IRC network is reserved for discussions on Vc: [##vc on freenode](irc://chat.freenode.net:6667/##vc) ([via SSL](ircs://chat.freenode.net:6697/##vc)) Feel free to use the GitHub issue tracker for questions. Alternatively, there's a mailinglist for users of Vc LicenseVc is released under the terms of the 3-clause BSD license.
Do not miss the trending, libraries, news and articles with our weekly report.
Spin The Wheel Of Names
for a cryptographically secure random name picker.
Schedule a when to meet poll. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |