4 ms·
Are there libraries (c, Python,etc) that just exploit avx without caring for compatibility with other platforms?
by kgbcia 4y ago
Are there libraries (c, Python,etc) that just exploit avx without caring for compatibility with other platforms?
- cmrdporcupine 4y agoThere are several, but I found this one is quite useful: https://github.com/vectorclass/version2 https://github.com/vectorclass/version2 Very minimal API, header only, so easily imported ... I then wrapped up in my own classes for my own purposes: https://github.com/rdaum/sidebands_vst/blob/main/source/dsp/oscbuffer.cc https://github.com/rdaum/sidebands_vst/blob/main/source/dsp/...
- the8472 4y agoMany data-/number-crunching C libraries already do dynamic-link-time or runtime cpu feature detection and select appropriate implementations. E.g. glibc already has bunch of specialized assembly impls for many of the string operations https://github.com/bminor/glibc/tree/master/sysdeps/x86_64/multiarch https://github.com/bminor/glibc/tree/master/sysdeps/x86_64/m...