volk

The Vector Optimized Library of Kernels

https://github.com/gnuradio/volk

Science Score: 59.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    5 of 88 committers (5.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (19.1%) to scientific vocabulary

Keywords

sdr simd simd-instructions simd-programming

Keywords from Contributors

closember gtk qt tk wx
Last synced: 6 months ago · JSON representation

Repository

The Vector Optimized Library of Kernels

Basic Info
  • Host: GitHub
  • Owner: gnuradio
  • License: lgpl-3.0
  • Language: C++
  • Default Branch: main
  • Homepage: http://libvolk.org
  • Size: 3.73 MB
Statistics
  • Stars: 603
  • Watchers: 52
  • Forks: 216
  • Open Issues: 44
  • Releases: 15
Topics
sdr simd simd-instructions simd-programming
Created about 11 years ago · Last pushed 7 months ago
Metadata Files
Readme Contributing License Code of conduct Zenodo

README.md

Build Status Build status Check PR Formatting Run VOLK tests DOI

VOLK Logo

Welcome to VOLK!

VOLK is a sub-project of GNU Radio. Please see https://www.libvolk.org/ for bug tracking, documentation, source code, and contact information about VOLK. See https://www.gnuradio.org/ for information about GNU Radio.

VOLK is the Vector-Optimized Library of Kernels. It is a library that contains kernels of hand-written SIMD code for different mathematical operations. Since each SIMD architecture can be very different and no compiler has yet come along to handle vectorization properly or highly efficiently, VOLK approaches the problem differently.

For each architecture or platform that a developer wishes to vectorize for, a new proto-kernel is added to VOLK. At runtime, VOLK will select the correct proto-kernel. In this way, the users of VOLK call a kernel for performing the operation that is platform/architecture agnostic. This allows us to write portable SIMD code.

Bleeding edge code can be found in our git repository at https://www.gnuradio.org/git/volk.git/.

How to use VOLK:

For detailed instructions see https://www.libvolk.org/doxygen/using_volk.html

See these steps for a quick build guide.

Building on most x86 (32-bit and 64-bit) platforms

```bash $ mkdir build $ cd build $ cmake .. $ make $ make test $ sudo make install

You might want to explore "make -j[SOMEVALUE]" options for your multicore CPU.

Perform post-installation steps

Linux OS: Link and cache shared library

$ sudo ldconfig

macOS/Windows: Update PATH environment variable to point to lib install location

volk_profile will profile your system so that the best kernel is used

$ volk_profile ```

Missing submodule

We use cpu_features to detect CPU features, e.g. AVX. Some platforms require a very recent version that is not available through the appropriate package manager. In this case you must use cpu_features as a submodule.

NOTE: Most package managers provide recent enough cpu_features versions by now. Please default to the provided cpu_features version first, and only use the submodule in cases where this fails. Please open an issue if this is the case.

There are two options to get the required code in a submodule: bash git clone --recursive https://github.com/gnuradio/volk.git will automatically clone submodules as well. In case you missed that, you can just run: bash git submodule update --init --recursive that'll pull in missing submodules.

Building on Raspberry Pi and other ARM boards (32 bit)

To build for these boards you need specify the correct cmake toolchain file for best performance.

Note: There is no need for adding extra options to the compiler for 64 bit.

  • Raspberry Pi 5 arm_cortex_a76_hardfp_native.cmake
  • Raspberry Pi 4 arm_cortex_a72_hardfp_native.cmake
  • Raspberry Pi 3 arm_cortex_a53_hardfp_native.cmake

```bash $ mkdir build && cd build $ cmake -DCMAKETOOLCHAINFILE=../cmake/Toolchains/armcortexa76hardfpnative.cmake ..

make -j4 might be faster

$ make $ make test $ sudo make install

volk_profile will profile your system so that the best kernel is used

$ volk_profile ```

Code of Conduct

We want to make sure everyone feels welcome. Thus, we follow our Code of Conduct.

Contributing

We are happy to accept contributions. Please refer to our contributing guide for further details. Also, make sure to read the Developer's Certificate of Origin and make sure to sign every commit with git commit -s.

Releases and development

We maintain a CHANGELOG for every release. Please refer to this file for more detailed information. We follow semantic versioning as outlined in our versioning guide.

Supported platforms

VOLK aims to be portable to as many platforms as possible. We can only run tests on some platforms.

Hardware architectures

Currently VOLK aims to run with optimized kernels on x86 with SSE/AVX and ARM with NEON. Support for MIPS and RISC-V is experimental; some kernels are known not to work on these architectures.

OS / Distro

We run tests on a variety of Ubuntu versions and aim to support as many current distros as possible. The same goal applies to different OSes. Although this does only rarely happen, it might occur that VOLK does not work on obsolete distros, e.g. Ubuntu 12.04.

Compilers

We want to make sure VOLK works with C/C++ standard compliant compilers. Of course, as an open source project we focus on open source compilers, most notably GCC and Clang. We want to make sure VOLK compiles on a wide variety of compilers. Thus, we target AppleClang and MSVC as well. Mind that MSVC lacks aligned_alloc support for aligned arrays. We use MSVC specific instructions in this case which cannot be free'd with free.

Dependency version policy

Finding the correct way to handle the minimum (and potentially maximum) supported dependency version is a difficult task. For VOLK, we want to ensure that all widely used, and openly maintained, distributions (Ubuntu, Debian, Fedora, etc.) are supported. The default version of dependencies in these distributions are considered to be the baseline, or oldest supported versions. While older dependencies might work, we do not want to maintain workarounds etc. for these dependencies. Also, we want to signal to contributors that they can rely on certain minimum versions for contributions. If you want to use VOLK on an obsolete distribution, we assume you know what you are doing and you can make the necessary changes to compile VOLK on such a platform, e.g., decrease the minimum version checks and fix corresponding errors. This approach aims to strike a balance between the desire to use VOLK on every possible platform and the desire to be able to use the latest features.

License

VOLK 3.0 and later are licensed under the GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later).

Previous VOLK version license

Earlier versions of VOLK (before VOLK 3.0) were licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). Since then, VOLK migrated to the LGPL-3.0-or-later.

Being technical: There are 3 people left (out of 74) who we haven't been able to get in contact with (at all), for a total of 4 (out of 1092) commits, 13 (of 282822) additions, and 7 (of 170421) deletions. We have reviewed these commits and all are simple, trivial changes (e.g., 1 line change) and most are no longer relevant (e.g., to a file that no longer exists). Volk maintainers (@michaelld and @jdemel) are in agreement that the combination -- small numbers of changes per committer, simple changes per commit, commits no longer relevant -- means that we can proceed with relicensing without the approval of the folks. We will try reaching out periodically to these folks, but we believe it unlikely we will get a reply. We kindly request them to re-submit their GPL-3.0-or-later license code contributions to LGPL-3.0-or-later by adding their name, GitHub handle, and email address(es) used for VOLK commits to the file AUTHORSRESUBMITTINGUNDERLGPLLICENSE.md.

Legal Matters

Some files have been changed many times throughout the years. Copyright notices at the top of source files list which years changes have been made. For some files, changes have occurred in many consecutive years. These files may often have the format of a year range (e.g., "2006 - 2011"), which indicates that these files have had copyrightable changes made during each year in the range, inclusive.

Owner

  • Name: GNU Radio
  • Login: gnuradio
  • Kind: organization

Zenodo (.zenodo.json)

{
  "title": "Vector-Optimized Library of Kernels (VOLK)",
  "license": {
    "id": "LGPL-3.0-or-later"
  },
  "keywords": [
    "communication",
    "software radio",
    "SDR",
    "C",
    "C++",
    "SIMD",
    "library"
  ],
  "creators": [
    {
      "affiliation": "Department of Communications Engineering, University of Bremen, Germany",
      "name": "Demel, Johannes",
      "orcid": "0000-0002-5434-7232"
    },
    {
      "name": "Dickens, Michael"
    },
    {
      "name": "Anderson, Douglas"
    },
    {
      "name": "Ashton, Brennan"
    },
    {
      "name": "Balister, Philip"
    },
    {
      "name": "Behar, Doron"
    },
    {
      "name": "Behnke, Steven"
    },
    {
      "name": "Bekhit, Amr"
    },
    {
      "name": "Bernstein, Olaf"
    },
    {
      "affiliation": "Carnegie Mellon University, IIT Bombay",
      "name": "Bhowmick, Abhishek"
    },
    {
      "name": "Blossom, Eric"
    },
    {
      "name": "Blum, Josh"
    },
    {
      "name": "Bottoms, A. Maitland"
    },
    {
      "name": "Briggs, Elliot"
    },
    {
      "name": "Brighthope, Ashley"
    },
    {
      "name": "Cardoso, Jeison"
    },
    {
      "name": "Cercueil, Paul"
    },
    {
      "affiliation": "Corgan Labs",
      "name": "Corgan, Johnathan"
    },
    {
      "affiliation": "Skylark Wireless (@skylarkwireless)",
      "name": "Corgan, Nicholas"
    },
    {
      "name": "Cruz, Luigi"
    },
    {
      "name": "Economos, Ron"
    },
    {
      "name": "Enochs, Brandon P."
    },
    {
      "name": "Estévez, Daniel"
    },
    {
      "name": "Farina, Rick"
    },
    {
      "affiliation": "Centre Tecnològic de Telecomunicacions de Catalunya (CTTC)",
      "name": "Fernandez, Carles"
    },
    {
      "name": "Fischer, Moritz"
    },
    {
      "name": "Foster, Nick"
    },
    {
      "name": "Geiger, Douglas"
    },
    {
      "name": "Giard, Pascal"
    },
    {
      "name": "Goavec-Merou, Gwenhael"
    },
    {
      "name": "Habets, Thomas"
    },
    {
      "name": "Hilburn, Ben"
    },
    {
      "name": "Holguin, Albert"
    },
    {
      "name": "Iwamoto, Jessica"
    },
    {
      "name": "Kaesberger, Martin"
    },
    {
      "name": "Lane, Sam"
    },
    {
      "name": "Lichtman, Marc"
    },
    {
      "name": "Logue, Kyle A"
    },
    {
      "name": "Lundmark, Magnus"
    },
    {
      "name": "Markgraf, Steve"
    },
    {
      "name": "Mayer, Christoph"
    },
    {
      "name": "McCarthy, Nicholas"
    },
    {
      "name": "McCarthy, Nick"
    },
    {
      "affiliation": "University of Colorado Boulder",
      "name": "Miralles, Damian"
    },
    {
      "name": "Munaut, Sylvain"
    },
    {
      "name": "Müller, Marcus"
    },
    {
      "affiliation": "GCN Development",
      "name": "Nieboer, Geof"
    },
    {
      "affiliation": "@deepsig",
      "name": "O'Shea, Tim"
    },
    {
      "name": "Olivain, Julien"
    },
    {
      "name": "Oltmanns, Stefan"
    },
    {
      "name": "Pinkava, Jiri"
    },
    {
      "name": "Piscopo, Mike"
    },
    {
      "name": "Poyraz, Suleyman"
    },
    {
      "name": "Quiceno, Jam M. Hernandez"
    },
    {
      "name": "Rene, Mathieu"
    },
    {
      "name": "Rikitake, Kenji"
    },
    {
      "name": "Ritterhoff, Florian"
    },
    {
      "name": "Robertson, Dan"
    },
    {
      "name": "Rocca, Federico 'Larroca' La"
    },
    {
      "name": "Rode, Andrej"
    },
    {
      "name": "Rodionov, Andrey"
    },
    {
      "name": "Roe, Michael"
    },
    {
      "affiliation": "GNU Radio",
      "name": "Rondeau, Tom"
    },
    {
      "name": "Sallay, John"
    },
    {
      "name": "Sekine, Takehiro"
    },
    {
      "name": "Semich, Karl"
    },
    {
      "name": "Sergeev, Vanya"
    },
    {
      "name": "Slokva, Alexey"
    },
    {
      "name": "Smith, Clayton"
    },
    {
      "affiliation": "Medurit AB",
      "name": "Stigo, Albin"
    },
    {
      "name": "Thompson, Adam"
    },
    {
      "name": "Thompson, Roy"
    },
    {
      "name": "Velichkov, Vasil"
    },
    {
      "affiliation": "@MITHaystack",
      "name": "Volz, Ryan"
    },
    {
      "name": "Walls, Andy"
    },
    {
      "name": "Ward, Don"
    },
    {
      "name": "West, Nathan"
    },
    {
      "name": "Wiedemann, Bernhard M."
    },
    {
      "name": "Wunsch, Stefan"
    },
    {
      "name": "Zapodovnikov, Valerii"
    },
    {
      "name": "Škarvada, Jaroslav"
    },
    {
      "name": "Aang23"
    },
    {
      "name": "AlexandreRouma"
    },
    {
      "name": "Andrew"
    },
    {
      "name": "Zlika"
    },
    {
      "name": "luz.paz"
    },
    {
      "name": "rear1019"
    },
    {
      "name": "tinyboxvk"
    }
  ]
}

GitHub Events

Total
  • Commit comment event: 1
  • Release event: 1
  • Issues event: 13
  • Watch event: 54
  • Issue comment event: 37
  • Push event: 16
  • Pull request review event: 31
  • Pull request review comment event: 30
  • Pull request event: 23
  • Fork event: 17
Last Year
  • Commit comment event: 1
  • Release event: 1
  • Issues event: 13
  • Watch event: 54
  • Issue comment event: 37
  • Push event: 16
  • Pull request review event: 31
  • Pull request review comment event: 30
  • Pull request event: 23
  • Fork event: 17

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 1,524
  • Total Committers: 88
  • Avg Commits per committer: 17.318
  • Development Distribution Score (DDS): 0.856
Past Year
  • Commits: 30
  • Committers: 9
  • Avg Commits per committer: 3.333
  • Development Distribution Score (DDS): 0.633
Top Committers
Name Email Commits
Johannes Demel j****l@g****g 219
Nathan West n****t@g****m 206
Tom Rondeau t****m@t****m 146
Nick Foster n****k@n****g 111
Josh Blum j****h@j****m 95
Clayton Smith a****o@g****m 87
Jessica Iwamoto j****o@a****g 62
Christoph Mayer h****4@g****m 52
Michael Dickens m****s@e****m 52
Andrej Rode m****l@a****e 39
Marcus Müller m****s@h****e 36
Magnus Lundmark m****k@g****m 34
Damian Miralles d****s@a****g 30
Douglas Geiger d****r@b****t 25
Carles Fernandez c****z@g****m 19
Albin Stigo a****o@g****m 14
Johnathan Corgan j****n@c****m 12
Zlika z****e@h****m 12
Ryan Volz r****z@g****m 11
Aang23 q****5@g****r 10
Philip Balister p****p@b****g 9
Tim O'Shea t****3@g****m 9
Valerii Zapodovnikov v****z@g****m 9
rear1019 r****9@p****e 8
Sylvain Munaut t****t@2****m 8
Ron Economos w****z@c****t 8
Mike Piscopo g****4@g****m 8
Brandon P. Enochs b****s@n****l 8
Abhishek Bhowmick a****2@g****m 8
Florian Ritterhoff r****o@h****u 7
and 58 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 72
  • Total pull requests: 144
  • Average time to close issues: 8 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 38
  • Total pull request authors: 26
  • Average comments per issue: 5.82
  • Average comments per pull request: 2.73
  • Merged pull requests: 121
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 8
  • Pull requests: 19
  • Average time to close issues: 21 days
  • Average time to close pull requests: 16 days
  • Issue authors: 7
  • Pull request authors: 8
  • Average comments per issue: 3.0
  • Average comments per pull request: 0.84
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jdemel (12)
  • argilo (6)
  • marcusmueller (6)
  • Aang23 (3)
  • michael-roe (3)
  • ZeroChaos- (3)
  • jsallay (2)
  • w1ebr (1)
  • diizzyy (1)
  • ast (1)
  • chenrui333 (1)
  • aleksander0m (1)
  • lordFreddie (1)
  • MattEttus (1)
  • JakeSaphhire (1)
Pull Request Authors
  • jdemel (66)
  • argilo (47)
  • Ka-zam (7)
  • tinyboxvk (7)
  • michael-roe (6)
  • marcusmueller (4)
  • Aang23 (4)
  • balister (4)
  • jsallay (4)
  • daniestevez (2)
  • doronbehar (2)
  • noc0lour (2)
  • JVital2013 (2)
  • camel-cdr (2)
  • tsonev7 (2)
Top Labels
Issue Labels
Enhancement (11) bug (11) Future (4) CMake (3) Low (3) Dependencies (2) question (2) FreeBSD (2) license (1) ARM / Neon (1) documentation (1)
Pull Request Labels
bug (2)

Packages

  • Total packages: 4
  • Total downloads: unknown
  • Total dependent packages: 11
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 19
  • Total maintainers: 1
spack.io: volk

VOLK is the Vector-Optimized Library of Kernels. It is a library that contains kernels of hand-written SIMD code for different mathematical operations. Since each SIMD architecture can be very different and no compiler has yet come along to handle vectorization properly or highly efficiently, VOLK approaches the problem differently. For each architecture or platform that a developer wishes to vectorize for, a new proto-kernel is added to VOLK. At runtime, VOLK will select the correct proto-kernel. In this way, the users of VOLK call a kernel for performing the operation that is platform/architecture agnostic. This allows us to write portable SIMD code.

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 7.0%
Stargazers count: 10.8%
Average: 11.5%
Dependent packages count: 28.1%
Maintainers (1)
Last synced: 7 months ago
conda-forge.org: volk

VOLK is the Vector-Optimized Library of Kernels. It is a free library, currently offered under the GPLv3, that contains kernels of hand-written SIMD code for different mathematical operations. Since each SIMD architecture can be very different and no compiler has yet come along to handle vectorization properly or highly efficiently, VOLK approaches the problem differently. For each architecture or platform that a developer wishes to vectorize for, a new proto-kernel is added to VOLK. At runtime, VOLK will select the correct proto-kernel. In this way, the users of VOLK call a kernel for performing the operation that is platform/architecture agnostic. This allows us to write portable SIMD code that is optimized for a variety of platforms.

  • Versions: 10
  • Dependent Packages: 9
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.5%
Forks count: 12.7%
Stargazers count: 18.6%
Average: 19.4%
Dependent repos count: 39.7%
Last synced: 6 months ago
conda-forge.org: volk-modtool

VOLK is the Vector-Optimized Library of Kernels. It is a free library, currently offered under the GPLv3, that contains kernels of hand-written SIMD code for different mathematical operations. Since each SIMD architecture can be very different and no compiler has yet come along to handle vectorization properly or highly efficiently, VOLK approaches the problem differently. For each architecture or platform that a developer wishes to vectorize for, a new proto-kernel is added to VOLK. At runtime, VOLK will select the correct proto-kernel. In this way, the users of VOLK call a kernel for performing the operation that is platform/architecture agnostic. This allows us to write portable SIMD code that is optimized for a variety of platforms.

  • Versions: 4
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Forks count: 11.5%
Stargazers count: 17.1%
Average: 22.8%
Dependent packages count: 28.8%
Dependent repos count: 34.0%
Last synced: 6 months ago
conda-forge.org: volk-dev

VOLK is the Vector-Optimized Library of Kernels. It is a free library, currently offered under the GPLv3, that contains kernels of hand-written SIMD code for different mathematical operations. Since each SIMD architecture can be very different and no compiler has yet come along to handle vectorization properly or highly efficiently, VOLK approaches the problem differently. For each architecture or platform that a developer wishes to vectorize for, a new proto-kernel is added to VOLK. At runtime, VOLK will select the correct proto-kernel. In this way, the users of VOLK call a kernel for performing the operation that is platform/architecture agnostic. This allows us to write portable SIMD code that is optimized for a variety of platforms.

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Forks count: 11.5%
Stargazers count: 17.1%
Average: 28.4%
Dependent repos count: 34.0%
Dependent packages count: 51.2%
Last synced: 6 months ago

Dependencies

.github/workflows/android_build.yml actions
  • actions/checkout v3.0.0 composite
.github/workflows/check-pr-formatting.yml actions
  • actions/checkout v2 composite
  • gnuradio/clang-format-lint-action v0.5-4 composite
.github/workflows/run-tests.yml actions
  • actions/checkout v3.0.0 composite
  • actions/checkout v3.0.2 composite
  • uraimo/run-on-arch-action v2.0.5 composite