Skip to content

Commit 83eff64

Browse files
Merge pull request serge-sans-paille#1077 from serge-sans-paille/feature/boost-simd-macro-compat
Remove obsolete reference to Boost.simd and transition macro to USE_XSIMD
2 parents 776fd86 + e80e12f commit 83eff64

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/MANUAL.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ To the input file. You can compile it as the previous code::
172172

173173
and you'll get a decent binary. But what you really want to do is::
174174

175-
$> pythran -DUSE_BOOST_SIMD -fopenmp -march=native arc_distance.py
175+
$> pythran -DUSE_XSIMD -fopenmp -march=native arc_distance.py
176176

177177
which basically tells the compiler to parallelize and vectorize loops using
178178
whatever hardware available on your machine. Then you'll get **really** fast
@@ -447,8 +447,8 @@ This section contains compiler flags configuration. For education purpose, the d
447447

448448
:``defines``:
449449

450-
Preprocessor definitions. Pythran is sensible to ``USE_BOOST_SIMD`` and
451-
``PYTHRAN_OPENMP_MIN_ITERATION_COUNT``. The former turns on Boost.simd
450+
Preprocessor definitions. Pythran is sensible to ``USE_XSIMD`` and
451+
``PYTHRAN_OPENMP_MIN_ITERATION_COUNT``. The former turns on `xsimd <https://github.com/QuantStack/xsimd>`_
452452
vectorization and the latter controls the mimimal loop trip count to turn a
453453
sequential loop into a parallel loop.
454454

pythran/pythonic/core.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
} \
1212
}
1313

14+
// for backward compatibility
15+
#ifdef USE_BOOST_SIMD
16+
#define USE_XSIMD
17+
#endif
18+
1419
#define STR_(M) #M
1520
// clang-format off
1621
#define INCLUDE_FILE(U, M) STR_(U/M.hpp)

0 commit comments

Comments
 (0)