m-ric / OpenVec

OpenVec enables portable explicit vectorization on different hardware architectures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenVec

OpenVec enables portable explicit vectorization on different architectures

Just include "openvec.h" file in your C/C++ code and you are ready to go.

To compile code examples: make arch={intel64,knc,gccavx,neon}

If no arch is provided, gcc with SSE will be used.

To run a self tests: make arch={intel64,knc,gccavx,neon} run_selftest

The stencil* samples will allocate 3.9GB, if you want allocate less memory edit stencil_common.h and change problem size. Blocking definitions are located on stencil_common.h too.

Specific information for KNC:

For compiling: make arch=knc

And use knc_target= for running the tests on specific KNC device. For example, to run on device mic0: make arch=knc knc_target=0 run_selftest

About

OpenVec enables portable explicit vectorization on different hardware architectures

License:MIT License


Languages

Language:C 57.1%Language:C++ 40.1%Language:Makefile 2.8%