diff --git a/backends/trtllm/CMakeLists.txt b/backends/trtllm/CMakeLists.txt index 6a0e4c8a..caed22c6 100644 --- a/backends/trtllm/CMakeLists.txt +++ b/backends/trtllm/CMakeLists.txt @@ -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) diff --git a/backends/trtllm/build.rs b/backends/trtllm/build.rs index b87e21ec..38118901 100644 --- a/backends/trtllm/build.rs +++ b/backends/trtllm/build.rs @@ -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); }