Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
b91a45ae
Commit
b91a45ae
authored
Nov 16, 2014
by
PRUVOST Florent
Browse files
save number of MPI process and print it with main informations in timings
parent
f7f2eda1
Changes
3
Hide whitespace changes
Inline
Side-by-side
example/basic_zposv/basic_posv.h
View file @
b91a45ae
...
...
@@ -117,7 +117,7 @@ enum iparam_examples {
IPARAM_INVERSE
,
IPARAM_NCUDAS
,
IPARAM_N
DOM
,
IPARAM_N
MPI
,
IPARAM_P
,
/* Parameter for 2D cyclic distribution */
IPARAM_Q
,
/* Parameter for 2D cyclic distribution */
/* Added for StarPU version */
...
...
@@ -182,7 +182,7 @@ static void init_iparam(int iparam[IPARAM_SIZEOF]){
iparam
[
IPARAM_INVERSE
]
=
0
;
iparam
[
IPARAM_NCUDAS
]
=
0
;
iparam
[
IPARAM_N
DOM
]
=
1
;
iparam
[
IPARAM_N
MPI
]
=
1
;
iparam
[
IPARAM_P
]
=
1
;
iparam
[
IPARAM_Q
]
=
1
;
iparam
[
IPARAM_PROFILE
]
=
0
;
...
...
timing/timing.c
View file @
b91a45ae
...
...
@@ -400,6 +400,10 @@ print_header(char *prog_name, int * iparam) {
"# CHAMELEON %d.%d.%d, %s
\n
"
"# Nb threads: %d
\n
"
"# Nb GPUs: %d
\n
"
#if defined(CHAMELEON_USE_MPI)
"# Nb mpi: %d
\n
"
"# PxQ: %dx%d
\n
"
#endif
"# NB: %d
\n
"
"# IB: %d
\n
"
"# eps: %e
\n
"
...
...
@@ -410,6 +414,10 @@ print_header(char *prog_name, int * iparam) {
prog_name
,
iparam
[
IPARAM_THRDNBR
],
iparam
[
IPARAM_NCUDAS
],
#if defined(CHAMELEON_USE_MPI)
iparam
[
IPARAM_NMPI
],
iparam
[
IPARAM_P
],
iparam
[
IPARAM_Q
],
#endif
iparam
[
IPARAM_NB
],
iparam
[
IPARAM_IB
],
eps
);
...
...
@@ -472,7 +480,7 @@ main(int argc, char *argv[]) {
iparam
[
IPARAM_INVERSE
]
=
0
;
iparam
[
IPARAM_NCUDAS
]
=
0
;
iparam
[
IPARAM_N
DOM
]
=
1
;
iparam
[
IPARAM_N
MPI
]
=
1
;
iparam
[
IPARAM_P
]
=
1
;
iparam
[
IPARAM_Q
]
=
1
;
iparam
[
IPARAM_PROFILE
]
=
0
;
...
...
@@ -615,6 +623,7 @@ main(int argc, char *argv[]) {
#if defined(CHAMELEON_USE_MPI)
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
nbnode
);
iparam
[
IPARAM_NMPI
]
=
nbnode
;
/* Check P */
if
(
(
iparam
[
IPARAM_P
]
>
1
)
&&
(
nbnode
%
iparam
[
IPARAM_P
]
!=
0
)
)
{
...
...
timing/timing.h
View file @
b91a45ae
...
...
@@ -43,7 +43,7 @@ enum iparam_timing {
IPARAM_INVERSE
,
IPARAM_NCUDAS
,
IPARAM_N
DOM
,
IPARAM_N
MPI
,
IPARAM_P
,
/* Parameter for 2D cyclic distribution */
IPARAM_Q
,
/* Parameter for 2D cyclic distribution */
/* Added for StarPU version */
...
...
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