6d98559be9
- New MCA option: opal_stacktrace_output - Specifies where the stack trace output stream goes. - Accepts: none, stdout, stderr, file[:filename] - Default filename 'stacktrace' - Filename will be `stacktrace.PID`, or if VPID is available, then the filename will be `stacktrace.VPID.PID` - Update util/stacktrace to allow for different output avenues including files. Previously this was hardcoded to 'stderr'. - Since opal_backtrace_print needs to be signal safe, passing it a FILE object that actually represents a file stream is difficult. This is because we cannot open the file in the signal handler using `fopen` (not safe), but have to use `open` (safe). Additionally, we cannot use `fdopen` to convert the `int fd` to a `FILE *fh` since it is also not signal safe. - I did not want to break the backtrace.h API so I introduced a new rule (documented in `backtrace.c`) that if the `FILE *file` argument is `NULL` then look for the `opal_stacktrace_output_fileno` variable to tell you which file descriptor to use for output. Signed-off-by: Joshua Hursey <jhursey@us.ibm.com>
87 строки
2.8 KiB
C
87 строки
2.8 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
* of Tennessee Research Foundation. All rights
|
|
* reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* Copyright (c) 2006 Los Alamos National Security, LLC. All rights
|
|
* reserved.
|
|
* Copyright (c) 2008-2012 Cisco Systems, Inc. All rights reserved.
|
|
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
|
|
* Copyright (c) 2010-2013 Los Alamos National Security, LLC.
|
|
* All rights reserved.
|
|
* Copyright (c) 2014 Hochschule Esslingen. All rights reserved.
|
|
* Copyright (c) 2015 Mellanox Technologies, Inc.
|
|
* All rights reserved.
|
|
* Copyright (c) 2017 IBM Corporation. All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#if !defined(OPAL_PARAMS_H)
|
|
#define OPAL_PARAMS_H
|
|
|
|
extern char *opal_signal_string;
|
|
extern char *opal_stacktrace_output_filename;
|
|
extern char *opal_net_private_ipv4;
|
|
extern char *opal_set_max_sys_limits;
|
|
|
|
#if OPAL_ENABLE_TIMING
|
|
extern char *opal_timing_sync_file;
|
|
extern char *opal_timing_output;
|
|
extern bool opal_timing_overhead;
|
|
#endif
|
|
|
|
OPAL_DECLSPEC extern int opal_initialized;
|
|
OPAL_DECLSPEC extern bool opal_built_with_cuda_support;
|
|
|
|
/**
|
|
* * Whether we want to enable CUDA GPU buffer send and receive support.
|
|
* */
|
|
OPAL_DECLSPEC extern bool opal_cuda_support;
|
|
|
|
/**
|
|
* Whether to use the "leave pinned" protocol or not (0 = no, 1 = yes,
|
|
* -1 = determine at runtime).
|
|
*/
|
|
OPAL_DECLSPEC extern int opal_leave_pinned;
|
|
|
|
/**
|
|
* Whether to use the "leave pinned pipeline" protocol or not.
|
|
*/
|
|
OPAL_DECLSPEC extern bool opal_leave_pinned_pipeline;
|
|
|
|
/**
|
|
* Whether an abort operation should print out a stack trace or not.
|
|
*/
|
|
OPAL_DECLSPEC extern bool opal_abort_print_stack;
|
|
|
|
/**
|
|
* Whether abort operation should print out an identifying message
|
|
* (e.g., hostname and PID) and loop waiting for a debugger to
|
|
* attach. The value of the integer is how many seconds to wait:
|
|
*
|
|
* 0 = do not print the message and do not loop
|
|
* negative value = print the message and loop forever
|
|
* positive value = print the message and delay for that many seconds
|
|
*/
|
|
OPAL_DECLSPEC extern int opal_abort_delay;
|
|
|
|
#if OPAL_ENABLE_DEBUG
|
|
extern bool opal_progress_debug;
|
|
#endif
|
|
|
|
#if OPAL_ENABLE_FT_CR == 1
|
|
extern bool opal_base_distill_checkpoint_ready;
|
|
#endif
|
|
|
|
#endif
|