misc(backend): remove leak sanitizer which is included in asan

This commit is contained in:
Morgan Funtowicz 2024-12-20 09:40:45 +01:00
parent c60543e26a
commit e927443ea6
2 changed files with 0 additions and 11 deletions

View File

@ -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)

View File

@ -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);
}