mirror of https://github.com/BOINC/boinc.git
- Unix build tweak
svn path=/trunk/boinc/; revision=25818
This commit is contained in:
parent
5f3b3cbbc5
commit
6b5bb0a3e6
|
@ -4587,3 +4587,8 @@ David 26 June 2012
|
|||
Fixes #1193.
|
||||
|
||||
configure.ac
|
||||
|
||||
David 26 June 2012
|
||||
- Unix build tweak
|
||||
|
||||
configure.ac
|
||||
|
|
|
@ -37,7 +37,6 @@ fi
|
|||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_CANONICAL_HOST
|
||||
AC_PROG_OBJCXX
|
||||
AC_PROG_F77
|
||||
AC_PROG_CPP
|
||||
|
|
|
@ -224,11 +224,14 @@ CLIENT_APP_VERSION* get_app_version_anonymous(
|
|||
// exceeds projected_flops by more than this factor, cap it.
|
||||
// The host may have received a bunch of short jobs recently
|
||||
|
||||
#define GPU_CPU_RATIO 10.
|
||||
// a conservative estimate of the ratio of a typical GPU to CPU
|
||||
|
||||
// input:
|
||||
// cav.host_usage.projected_flops
|
||||
// This is the <flops> specified in app_info.xml
|
||||
// If not specified there, it's a conservative estimate
|
||||
// (CPU speed * (ncpus + ngpus))
|
||||
// (CPU speed * (ncpus + 10*ngpus))
|
||||
// In either case, this value will be used by the client
|
||||
// to estimate job runtime and runtime limit
|
||||
// est runtime = wu.rsc_fpops_est/x
|
||||
|
@ -362,7 +365,7 @@ void estimate_flops(HOST_USAGE& hu, APP_VERSION& av) {
|
|||
);
|
||||
}
|
||||
} else {
|
||||
hu.projected_flops = g_reply->host.p_fpops * (hu.avg_ncpus + hu.gpu_usage);
|
||||
hu.projected_flops = g_reply->host.p_fpops * (hu.avg_ncpus + GPU_CPU_RATIO*hu.gpu_usage);
|
||||
if (config.debug_version_select) {
|
||||
log_messages.printf(MSG_NORMAL,
|
||||
"[version] [AV#%d] (%s) using conservative projected flops: %.2fG\n",
|
||||
|
|
Loading…
Reference in New Issue