CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
56 lines
2.7 KiB
C++
56 lines
2.7 KiB
C++
//===-- nsan_flags.inc ------------------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// NSan runtime flags.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef NSAN_FLAG
|
|
#error "Define NSAN_FLAG prior to including this file!"
|
|
#endif
|
|
|
|
// NSAN_FLAG(Type, Name, DefaultValue, Description)
|
|
// See COMMON_FLAG in sanitizer_flags.inc for more details.
|
|
|
|
NSAN_FLAG(bool, halt_on_error, true, "If true, halt after the first error.")
|
|
NSAN_FLAG(bool, resume_after_warning, true,
|
|
"If true, we resume resume the computation from the original "
|
|
"application floating-point value after a warning. If false, "
|
|
"computations continue with the shadow value.")
|
|
NSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
|
|
NSAN_FLAG(bool, resume_after_suppression, true,
|
|
"If true, a suppression will also resume the computation from the FT"
|
|
" domain. If false, output is suppressed but the shadow value is"
|
|
" retained.")
|
|
// FIXME: should this be specified in units of epsilon instead?
|
|
NSAN_FLAG(int, log2_max_relative_error, 19,
|
|
"Log2 maximum admissible relative error, e.g. 19 means max relative "
|
|
"error of 1/2^19 ~= 0.000002.")
|
|
NSAN_FLAG(int, log2_absolute_error_threshold, 32,
|
|
"Log2 maximum admissible absolute error. Any numbers closer than "
|
|
"1/2^n are considered to be the same.")
|
|
NSAN_FLAG(bool, disable_warnings, false,
|
|
"If true, disable warning printing. This is useful to only compute "
|
|
"stats.")
|
|
NSAN_FLAG(bool, enable_check_stats, false,
|
|
"If true, compute check stats, i.e. for each line, the number of "
|
|
"times a check was performed on this line.")
|
|
NSAN_FLAG(bool, enable_warning_stats, false,
|
|
"If true, compute warning stats, i.e. for each line, the number of "
|
|
"times a warning was emitted for this line.")
|
|
NSAN_FLAG(bool, enable_loadtracking_stats, false,
|
|
"If true, compute load tracking stats, i.e. for each load from "
|
|
"memory, the number of times nsan resumed from the original value "
|
|
"due to invalid or unknown types.")
|
|
NSAN_FLAG(bool, poison_in_free, true, "")
|
|
NSAN_FLAG(bool, print_stats_on_exit, false, "If true, print stats on exit.")
|
|
NSAN_FLAG(bool, check_nan, false,
|
|
"If true, check the floating-point number is nan")
|
|
NSAN_FLAG(bool, check_cmp, true,
|
|
"If true, emit a warning for a fcmp instruction whose "
|
|
"corresponding shadow fcmp result differs.")
|