Re: [eigen] Running CTest with MKL Enabled |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
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.
I gave it a try and uploaded the result to CDash at
http://manao.inria.fr/CDash/buildSummary.php?buildid=16748
The commands that I used were:
CC="clang-3.5" CXX="clang++-3.5" cmake .. \
-DEIGEN_TEST_CUSTOM_CXX_FLAGS="-I$MKLROOT/include -DEIGEN_USE_MKL_ALL" \
-DEIGEN_TEST_CUSTOM_LINKER_FLAGS="-lmkl_sequential -lmkl_intel_lp64 \
-lmkl_core" -DCMAKE_BUILD_TYPE=Release -DEIGEN_TEST_BUILD_FLAGS=-j4
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.
Thanks,
Kevin
On 01/13/2015 02:41 PM, Gael Guennebaud wrote:
Hi,
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
-DEIGEN_USE_MKL_ALL" -DEIGEN_TEST_CUSTOM_LINKER_FLAGS="-mkl=sequential"
-DCMAKE_BUILD_TYPE=Release -DEIGEN_TEST_BUILD_FLAGS=-j4
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
cheers,
Gael.
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
EIGEN_TEST_CUSTOM_CXX_FLAGS and EIGEN_TEST_CUSTOM_LINKER_FLAGS options
when invoking CMake. Is that the correct/recommended procedure? Will
it report the test results on CDash in a way that will make them
useful?
My apologies if this is documented somewhere that I've overlooked.
Thanks,
Kevin
1. http://eigen.tuxfamily.org/bz/show_bug.cgi?id=923
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |