Mercurial > hg > Papers > 2014 > masakoha-sigos
changeset 4:c030ccbf279a
rescale images
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 17 Apr 2014 15:31:56 +0900 |
parents | 05a0e70f5823 |
children | b824fc3885be |
files | paper/cerium.tex paper/example.tex paper/io.tex |
diffstat | 3 files changed, 22 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/paper/cerium.tex Thu Apr 17 01:37:37 2014 +0900 +++ b/paper/cerium.tex Thu Apr 17 15:31:56 2014 +0900 @@ -27,15 +27,18 @@ multi_init(TaskManager *manager) { float *A, *B, *C; - HTaskPtr multiply = manager->create_task - (MULTIPLY_TASK); + HTaskPtr multiply = manager-> + create_task(MULTIPLY_TASK); multiply->set_cpu(SPE_ANY); multiply->set_inData - (0, (memaddr)A, sizeof(float)*length); + (0, (memaddr)A, + sizeof(float)*length); multiply->set_inData - (1, (memaddr)B, sizeof(float)*length); + (1, (memaddr)B, + sizeof(float)*length); multiply->set_outData - (0, (memaddr)C, sizeof(float)*length); + (0, (memaddr)C, + sizeof(float)*length); multiply->set_param(0,(long)length); multiply->spawn(); }
--- a/paper/example.tex Thu Apr 17 01:37:37 2014 +0900 +++ b/paper/example.tex Thu Apr 17 15:31:56 2014 +0900 @@ -42,8 +42,8 @@ } read->set_param(3,(long)fd); -read->set_outData(0,read_text + task_number*division_size, - division_size); +read->set_outData(0,read_text + + task_number*division_size, division_size); read->spawn(); read_left_size -= division_size; @@ -70,9 +70,11 @@ long read_size = (long)s->get_param(2); long fd = (long)s->get_param(3); - char *read_text = (char*)s->get_output(wbuf,0); + char *read_text = + (char*)s->get_output(wbuf,0); - pread(fd, read_text, (long)read_size , division_size*task_number); + pread(fd, read_text, (long)read_size , + division_size*task_number); return 0; } \end{verbatim} @@ -100,4 +102,6 @@ \end{tiny} 分割サイズを大きくすると、pread の呼ばれる回数が少なくなるので読み込むことが速くなる。 + \subsection{Word Count} +hogehoge
--- a/paper/io.tex Thu Apr 17 01:37:37 2014 +0900 +++ b/paper/io.tex Thu Apr 17 15:31:56 2014 +0900 @@ -12,7 +12,8 @@ \begin{center} \label{table:mmap} \small - void * mmap(void *addr, size\_t len, int prot, int flags, int fd, off\_t offset); + void * mmap(void *addr, size\_t len, + int prot, int flags, int fd, off\_t offset); \begin{tabular}[t]{c|l} \hline @@ -93,7 +94,7 @@ \begin{figure}[htbp] \begin{center} -\includegraphics[scale=0.5]{images/blockedreadimage.pdf} +\includegraphics[scale=0.4]{images/blockedreadimage.pdf} \end{center} \caption{Blocked Read image} \label{fig:block} @@ -112,7 +113,7 @@ (図\ref{fig:block}) \begin{figure}[htbp] \begin{center} -\includegraphics[scale=0.5]{images/blockreadtask.pdf} +\includegraphics[scale=0.35]{images/blockreadtask.pdf} \end{center} \caption{Blocked Read image} \label{fig:block} @@ -128,7 +129,7 @@ \begin{figure}[htbp] \begin{center} -\includegraphics[scale=0.5]{images/speany.pdf} +\includegraphics[scale=0.3]{images/speany.pdf} \end{center} \caption{SPE\_ANY での実装時} \label{fig:speany} @@ -153,7 +154,7 @@ \begin{figure}[htbp] \begin{center} -\includegraphics[scale=0.5]{images/io0.pdf} +\includegraphics[scale=0.35]{images/io0.pdf} \end{center} \caption{Blocked Read Task を IO\_0 での実装時} \label{fig:io0}