Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIBP-Hummer
BioEM
Commits
d8564df0
Commit
d8564df0
authored
Jun 30, 2017
by
Luka Stanisic
Browse files
nicer output of the execution (adding GPU workload values)
parent
e4af4bce
Changes
2
Show whitespace changes
Inline
Side-by-side
bioem.cpp
View file @
d8564df0
...
...
@@ -615,7 +615,7 @@ int bioem::run()
(((
double
)
param
.
param_device
.
NumberPixels
-
(
double
)
param
.
param_device
.
maxDisplaceCenter
/
2.
)
*
((
double
)
param
.
param_device
.
NumberPixels
-
(
double
)
param
.
param_device
.
maxDisplaceCenter
/
2.
)
*
2.
+
8.
)
*
(
double
)
sizeof
(
myfloat_t
)
/
compTime
;
const
double
nGBs2
=
(
double
)
RefMap
.
ntotRefMap
*
((
double
)
param
.
param_device
.
NumberPixels
*
(
double
)
param
.
param_device
.
NumberPixels
+
8.
)
*
(
double
)
sizeof
(
myfloat_t
)
/
compTime
;
printf
(
"
\t\t
Time Comparison %d %d: %f sec (%f GFlops, %f GB/s (cached), %f GB/s) (rank %d)
\n
"
,
iOrient
,
iConv
,
compTime
,
nFlops
/
1000000000.
,
nGBs
/
1000000000.
,
nGBs2
/
1000000000.
,
mpi_rank
);
printf
(
"
\t\t
Time Comparison %d %d: %f sec (%f GFlops, %f GB/s (cached), %f GB/s
, with GPU workload %d%%
) (rank %d)
\n
"
,
iOrient
,
iConv
,
compTime
,
nFlops
/
1000000000.
,
nGBs
/
1000000000.
,
nGBs2
/
1000000000.
,
workload
,
mpi_rank
);
}
if
(
Autotuning
==
1
&&
!
stopTuning
&&
STABLE_ITERATION
(
iConv
))
{
...
...
@@ -688,7 +688,14 @@ int bioem::run()
x
=
(
c
-
b
>
b
-
a
)
?
(
int
)(
b
+
(
c
-
b
)
/
2
)
:
(
int
)(
a
+
(
b
-
a
+
1
)
/
2
);
}
if
(
(
c
-
b
==
limit
)
&&
(
b
-
a
==
limit
)
)
stopTuning
=
true
;
if
((
c
-
b
==
limit
)
&&
(
b
-
a
==
limit
))
{
stopTuning
=
true
;
if
(
DebugOutput
>=
2
)
{
printf
(
"
\t\t
Optimal GPU workload %d%% (rank %d)
\n
"
,
workload
,
mpi_rank
);
}
}
workload
=
x
;
rebalance
(
x
);
...
...
bioem_cuda.cu
View file @
d8564df0
...
...
@@ -684,7 +684,7 @@ void bioem_cuda::rebalance(int workload)
if
(
DebugOutput
>=
2
)
{
printf
(
"
\t\t
Setting GPU workload to %d%%
\n
"
,
workload
);
printf
(
"
\t\t
Setting GPU workload to %d%%
(rank %d)
\n
"
,
workload
,
mpi_rank
);
}
GPUWorkload
=
workload
;
...
...
Write
Preview
Supports
Markdown
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