Commit d1baf797 authored by MIJIEUX Thomas's avatar MIJIEUX Thomas

New test case; comparison with and without chameleon

parent 25ccb681
......@@ -6,3 +6,4 @@ GPATH
GRTAGS
GTAGS
.clang_complete
scratch.txt
......@@ -128,3 +128,74 @@ $STARPU_FXT_TOOL -i ~/fabulous/build/prof_file_${USER}_0 -o paje.trace
CLOCK: [2017-05-10 Wed 18:19]--[2017-05-10 Wed 18:20] => 0:01
:END:
[2017-05-10 Wed 18:19]
*** 2017-05-11 Thursday
**** Add new entry in [[RESULTS.org]]
To make the chameleon version of this example work I had to change a
little bit the MORSE_user_tag_size call because 16 bits for the
number of descriptor available was not enough
#+BEGIN_SRC cpp
diff --git a/src/test_basic/testMatrixMarketChoice.cpp b/src/test_basic/testMatrixMarketChoice.cpp
index 38f527f..6c1cbdb 100644
--- a/src/test_basic/testMatrixMarketChoice.cpp
+++ b/src/test_basic/testMatrixMarketChoice.cpp
@@ -191,7 +191,7 @@ int main(int argc, char *argv[])
MORSE_Init(NCPU, 0);
MORSE_Enable(MORSE_WARNINGS);
MORSE_Disable(MORSE_AUTOTUNING);
- MORSE_user_tag_size(31, 16);
+ MORSE_user_tag_size(31, 10);
#endif
switch(info.arithmetic_arg) {
#+END_SRC
***** young1c chameleon comparison QR (nrhs=6, m=90, k=5)
#+NAME: fabulous_root
|/home/tmijieux/fabulous/|
****** run test case
#+begin_src shell :var WORKDIR=fabulous_root :session *fabulous* :results silent
cd ${WORKDIR}/build/src/test_basic/
mkdir -p ../data/res
./testMatrixMarketChoice -n 6 -t BLOCK -s MGS -m 90 -e 1e-6 -A QR -u -o "QR"
cd ${WORKDIR}/build/src/test_cham/
./testMatrixMarketChoice_cham -z -n 6 -t RUHE -s MGS -m 90 -e 1e-6 -A CHAMQR -u -o "CHAMQR"
#+end_src
****** plot the graphic
#+begin_src R :results output graphics :file (org-babel-temp-file "figure" ".png") :exports both :width 600 :height 400 :session
library(ggplot2)
library(latex2exp)
df <- read.table("./build/src/data/res/QR.res", header=T)
df <- rbind(df, read.table("./build/src/data/res/CHAMQR.res", header=T))
ggplot(df, aes(x=nb_mvp)) +
geom_line(aes(y=maxRes, color=name)) +
geom_line(aes(y=minRes, color=name)) +
scale_y_log10() + geom_hline(aes(yintercept=1e-6, color="threshold")) +
ggtitle("young1c (nrhs=6, m=90 k=5)") + ylab(TeX("$\\eta_b$ (min, max)"))
#+end_src
:LOGBOOK:
CLOCK: [2017-05-11 Thu 11:10]--[2017-05-11 Thu 11:19] => 0:09
:END:
[2017-05-11 Thu 11:10]
**** Use c++11 timing facilities instead of system's ones
Replace use of gettimeofday system call with
standard c++11 chronometer, time_point and duration class
see [[~/fabulous/include/fabulous/utils/Timer.hpp][Timer.hpp]]
#+BEGIN_SRC cpp
#include <chrono>
// ...
using Clock = std::chrono::steady_clock;
using TimePoint = std::chrono::time_point<std::chrono::steady_clock>;
using Duration = std::chrono::duration<double>;
#+END_SRC
:LOGBOOK:
CLOCK: [2017-05-11 Thu 11:24]--[2017-05-11 Thu 11:28] => 0:04
:END:
[2017-05-11 Thu 11:24]
......@@ -130,3 +130,4 @@
CLOCK: [2017-05-10 Wed 18:22]--[2017-05-10 Wed 18:24] => 0:02
:END:
[2017-05-10 Wed 18:22]
......@@ -14,10 +14,13 @@
** Setup workstation
To be able to run the following test cases, you must have compiled fabulous:
#+begin_src shell
cd ${WORKDIR}
mkdir -p build
cd build
cmake .. # -DCHAMELEON_DIR=$(spack location -i chameleon)
# optionnally: load mkl into environement:
source /opt/intel/mkl/bin/mklvars.sh intel64
mkdir -p ${WORKDIR}/build
cd ${WORKDIR}/build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DFABULOUS_DEBUG_MODE=ON \
-DFABULOUS_LAPACKE_NANCHECK=OFF # -DCHAMELEON_DIR=$(spack location -i chameleon)
make
#+end_src
** Get Test files
......@@ -297,3 +300,26 @@ ggplot(df, aes(x=global_iteration)) +
geom_line(aes(y=((mvp_time+ortho_time+least_square_time)/time)*100, color="SUM")) +
ggtitle("Relative % time spent (young1c CHAM) (nrhs=50)") + ylab(TeX("$\\% time"))
#+end_src
*** young1c chameleon comparison QR (nrhs=6, m=90, k=5)
**** run test case
#+begin_src shell
cd ${WORKDIR}/build/src/test_basic/
mkdir -p ../data/res
./testMatrixMarketChoice -n 6 -t BLOCK -s MGS -m 90 -e 1e-6 -A QR -u -o "QR"
cd ${WORKDIR}/build/src/test_cham/
./testMatrixMarketChoice_cham -z -n 6 -t RUHE -s MGS -m 90 -e 1e-6 -A CHAMQR -u -o "CHAMQR"
#+end_src
**** plot the graphic
#+begin_src R
library(ggplot2)
library(latex2exp)
df <- read.table("./build/src/data/res/QR.res", header=T)
df <- rbind(df, read.table("./build/src/data/res/CHAMQR.res", header=T))
ggplot(df, aes(x=nb_mvp)) +
geom_line(aes(y=maxRes, color=name)) +
geom_line(aes(y=minRes, color=name)) +
scale_y_log10() + geom_hline(aes(yintercept=1e-6, color="threshold")) +
ggtitle("young1c (nrhs=6, m=90 k=5)") + ylab(TeX("$\\eta_b$ (min, max)"))
#+end_src
......@@ -191,7 +191,7 @@ int main(int argc, char *argv[])
MORSE_Init(NCPU, 0);
MORSE_Enable(MORSE_WARNINGS);
MORSE_Disable(MORSE_AUTOTUNING);
MORSE_user_tag_size(31, 16);
MORSE_user_tag_size(31, 10);
#endif
switch(info.arithmetic_arg) {
......
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