manual:xeonphi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:xeonphi [2014/07/10 08:16] – Adds detailed setup and compile description. zenke | manual:xeonphi [2014/12/15 12:54] (current) – [Preparing Auryn for Xeon Phi/MIC] zenke | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Running Auryn simulations on the Intel Xeon Phi (MIC) architecture ====== | + | ====== Running Auryn simulations on the Intel® |
| - | The following section is highly | + | The following section is experimental. To compile Auryn in native mode for the [[http:// |
| + | |||
| + | This has been tested for the development version available on [[https:// | ||
| ===== Compiling Boost for Xeon Phi/MIC ===== | ===== Compiling Boost for Xeon Phi/MIC ===== | ||
| Line 9: | Line 11: | ||
| using mpi : / | using mpi : / | ||
| </ | </ | ||
| - | to enable MPI and to tell the build toolchain Jam which compiler to use. Note that you might have to adapt the version numbers in this example to your actial | + | to enable MPI and to tell the build toolchain Jam which compiler to use. Note that you might have to adapt the version numbers in this example to your actual |
| - | Building of boost was then achieved by using a command line similar to the following. It is important to pass the '' | + | Building of boost was then achieved by using a command line similar to the following. It is important to pass the '' |
| <code shell> | <code shell> | ||
| ./b2 toolset=intel | ./b2 toolset=intel | ||
| </ | </ | ||
| - | ===== Building | + | ===== Preparing Auryn for Xeon Phi/MIC ===== |
| + | |||
| + | To run smoothly on the architecture and to make efficient use of vectorization you need to set the following switches in the '' | ||
| + | To do so find the following precompile directives in '' | ||
| + | <code cpp> | ||
| + | // #define CODE_ACTIVATE_PREFETCHING_INTRINSICS | ||
| + | #define CODE_USE_SIMD_INSTRUCTIONS_EXPLICITLY | ||
| + | #define CODE_ACTIVATE_CILK_INSTRUCTIONS | ||
| + | </ | ||
| + | |||
| + | ===== Building | ||
| With this done one simply has to create a new subdir in the Auryn build directory and add the following Makefile: | With this done one simply has to create a new subdir in the Auryn build directory and add the following Makefile: | ||
manual/xeonphi.1404980167.txt.gz · Last modified: 2014/07/10 08:16 by zenke
