mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
misc(backend): remove leak sanitizer which is included in asan
This commit is contained in:
parent
c60543e26a
commit
e927443ea6
@ -87,7 +87,6 @@ if (${TGI_TRTLLM_BACKEND_BUILD_TESTS})
|
||||
message(STATUS "Building tests")
|
||||
option(TGI_TRTLLM_BACKEND_ENABLE_ASAN "Enable AddressSanitizer")
|
||||
option(TGI_TRTLLM_BACKEND_ENABLE_UBSAN "Enable UndefinedSanitizer")
|
||||
option(TGI_TRTLLM_BACKEND_ENABLE_MSAN "Enable MemorySanitizer")
|
||||
|
||||
FetchContent_Declare(
|
||||
Catch2
|
||||
@ -125,11 +124,6 @@ if (${TGI_TRTLLM_BACKEND_BUILD_TESTS})
|
||||
message(STATUS "Enabled UndefinedSanitizer")
|
||||
target_link_options(tgi_trtllm_backend_tests BEFORE PUBLIC -fsanitize=undefined)
|
||||
endif ()
|
||||
|
||||
if (${TGI_TRTLLM_BACKEND_ENABLE_MSAN})
|
||||
message(STATUS "Enabled MemorySanitizer")
|
||||
target_link_options(tgi_trtllm_backend_tests BEFORE PUBLIC -fsanitize=memory)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
install(TARGETS tgi_trtllm_backend_tests)
|
||||
|
@ -132,11 +132,6 @@ fn build_backend(is_debug: bool, opt_level: &str, out_dir: &PathBuf) -> (PathBuf
|
||||
config.define("TGI_TRTLLM_BACKEND_ENABLE_UBSAN", "ON");
|
||||
}
|
||||
|
||||
if (is_debug && option_env!("ENABLE_MSAN").is_some()) || *IS_GHA_BUILD {
|
||||
println!("cargo:warning=Enabling Memory Sanitizer");
|
||||
config.define("TGI_TRTLLM_BACKEND_ENABLE_MSAN", "ON");
|
||||
}
|
||||
|
||||
if let Some(nvcc_host_compiler) = option_env!("CMAKE_CUDA_HOST_COMPILER") {
|
||||
config.define("CMAKE_CUDA_HOST_COMPILER", nvcc_host_compiler);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user