Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Camille Coti
TensorJoseph
Commits
fe9f3d29
Commit
fe9f3d29
authored
Jan 28, 2020
by
Camille Coti
Browse files
Output
parent
a1412956
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tensormatrix_mpi.cpp
View file @
fe9f3d29
...
...
@@ -69,7 +69,7 @@ int main( int argc, char** argv ){
gi
::
ex
Tseq
=
0
;
double
tv_start
,
tv_para
,
tv_seq
;
int
rank
;
int
rank
,
size
;
#ifdef TAUPROF
TAU_INIT
(
&
argc
,
&
argv
);
...
...
@@ -210,8 +210,10 @@ int main( int argc, char** argv ){
std
::
cout
<<
"Tseq="
<<
Tseq
<<
";"
<<
std
::
endl
;
#endif
std
::
cout
.
precision
(
4
);
std
::
cout
<<
"Time: "
;
std
::
cout
<<
"parallel "
<<
(
tv_para
-
tv_start
)
/
1e6
<<
" "
;
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
size
);
// std::cout << "Time: ";
//std::cout << "parallel " << ( tv_para - tv_start ) / 1e6 << " ";
std
::
cout
<<
size
<<
"
\t
"
<<
tostart
<<
"
\t
"
<<
(
tv_para
-
tv_start
)
/
1e6
<<
" "
;
#if DEBUG
std
::
cout
<<
"sequential "
<<
(
tv_seq
-
tv_para
)
/
1e6
<<
" "
;
/* this verification does not work, the manual one (copy-paste in ginsh) works */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment