OSHMEM: optimize print to spend less of formatting when not needed
fixed by Roman, reviewed by Miked cmr=v1.8.2:reviewer=ompi-rm1.8 This commit was SVN r31818.
Этот коммит содержится в:
родитель
2b89aac15b
Коммит
1f972737d4
@ -24,6 +24,7 @@ void oshmem_output_verbose(int level, int output_id, const char* prefix,
|
||||
char *buff, *str;
|
||||
int ret;
|
||||
|
||||
if (level < opal_output_get_verbosity(output_id)) {
|
||||
UNREFERENCED_PARAMETER(ret);
|
||||
|
||||
va_start(args, format);
|
||||
@ -34,12 +35,13 @@ void oshmem_output_verbose(int level, int output_id, const char* prefix,
|
||||
ret = asprintf(&buff, "%s %s", prefix, str);
|
||||
assert(-1 != ret);
|
||||
|
||||
opal_output_verbose(level, output_id, buff, file, line, function);
|
||||
opal_output(output_id, buff, file, line, function);
|
||||
|
||||
va_end(args);
|
||||
|
||||
free(buff);
|
||||
free(str);
|
||||
}
|
||||
}
|
||||
|
||||
void oshmem_output(int output_id, const char* prefix, const char* file,
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user