A Swift wrapper for Intel Performance Libraries.
A Swift wrapper for Intel Performance Libraries.
The Vector
protocol provides access to the Intel Performance Libraries'
functionality, supports RandomAccessCollection, MutableCollection,
ExpressibleByArrayLiteral, and CustomStringConvertible, and is added as an
extension to:
struct VectorP
, which aligns storage on 64bit boundaries for better performanceCurrently provided (more to come!):
Tested on Windows 10 and MacOS 10. No prerequisites other than standard Swift command line tools.
Running make
will download and unzip an appropriate MKL/IPP custom lib for
your system (if not done before) and build the library. For release mode (up to
100x faster!) run make mode=release
. You can add mode=release
to any of the
below make commands too:
make run
: run a small benchmarkmake test
: unit tests (Swift on Mac doesn't know how to find them however,