Commit da1483ef authored by MIJIEUX Thomas's avatar MIJIEUX Thomas

add command to run chameleon version in RESULTS.org

parent 3b9e7f23
......@@ -266,3 +266,12 @@ ggplot(df, aes(x=nb_mvp)) +
geom_line(aes(y=least_square_time, color=name)) +
ggtitle("young1c (nrhs=100, m=500 k=5, max_mvp=10000)") + ylab(TeX("$\\eta_b$ (min, max)"))
#+end_src
*** chameleon run
**** run test
#+begin_src shell
cd ${WORKDIR}/build/src/test_cham/
mkdir -p ../data/res
#nbRHS=6; maxSpace=90
./testMatrixMarketChoice_cham -n 100 -e 1e-4 -A CHAMTL -u -o "CHAM-TL"
./testMatrixMarketChoice_cham -n 100 -e 1e-4 -A CHAMQR -u -o "CHAM-QR"
#+end_src
#include <unistd.h>
#include "../test_common/Test.hpp"
#include "../test_common/UserInputMatrix.hpp"
#include "../test_common/CSCMatrix.hpp"
......@@ -179,6 +180,14 @@ void run_test(const struct gengetopt_args_info &info)
int main(int argc, char *argv[])
{
#if defined(FABULOUS_USE_CHAMELEON)
int NCPU = sysconf(_SC_NPROCESSORS_ONLN);
MORSE_Init(NCPU, 0);
MORSE_Enable(MORSE_WARNINGS);
MORSE_Disable(MORSE_AUTOTUNING);
MORSE_user_tag_size(31, 16);
#endif
gengetopt_args_info info;
cmdline_parser(argc, argv, &info); // <- code generated with gengetopt
......@@ -189,5 +198,9 @@ int main(int argc, char *argv[])
case arithmetic_arg_COMPLEX_DOUBLE: run_test<std::complex<double>>(info); break;
default: break;
}
#if defined(FABULOUS_USE_CHAMELEON)
MORSE_Finalize();
#endif
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment