Re: [eigen] Running CTest with MKL Enabled

[ Thread Index | Date Index | More Archives ]

On Wed, Jan 14, 2015 at 5:12 AM, Kevin Locke <kevin@xxxxxxxxxxxxxxx> wrote:
Thanks Gael, much appreciated!

Is it alright if I ran the tests with GCC and/or Clang rather than ICC?
I am not very familiar with ICC and don't currently have it installed on
the build machines.

Sure, that's perfectly fine!
I gave it a try and uploaded the result to CDash at

The commands that I used were:
CC="clang-3.5" CXX="clang++-3.5" cmake .. \
-DEIGEN_TEST_CUSTOM_LINKER_FLAGS="-lmkl_sequential -lmkl_intel_lp64 \
ctest -j4 -D Nightly

Does that seem about right?  If so, I'll try to run it on a more regular
basis.  If there's anything I can change to make it more useful, don't
hesitate to point that out.

Everything look good for your side except that you could set the following variable to cmake:


to make it clear for us that this build is using MKL.



On 01/13/2015 02:41 PM, Gael Guennebaud wrote:

you can configure a build directory as follow:

export CC=path/to/icc
export CXX=path/to/icpc
cmake path/to/eigen -DEIGEN_TEST_CUSTOM_CXX_FLAGS="-mkl=sequential

The last option enable parallel builds. Feel free to remove or adjust it
to your needs.
Then you can run from a cron job:

$ cd path/to/eigen && hg up
$ cd path/to/build && ctest -D Nightly


On Sun, Jan 4, 2015 at 12:20 AM, Kevin Locke <kevin@xxxxxxxxxxxxxxx> wrote:
Hello All,

In Bug 923[1] Christoph Hertzberg suggested that it would be useful
for me to periodically run the Eigen test suite with MKL enabled.  I
would appreciate some advice about how to do that (and thought it
would be better to discuss here than in the bug report).

It looks like I could pass -DEIGEN_USE_MKL_ALL along with the
necessary system-specific compiler/linker options in the
when invoking CMake.  Is that the correct/recommended procedure?  Will
it report the test results on CDash in a way that will make them

My apologies if this is documented somewhere that I've overlooked.



Mail converted by MHonArc 2.6.19+