Support for Address Sanitizer (ASAN)
Pre-release
Pre-release
Using Bzlmod, just add to your MODULE.bazel file:
bazel_dep(name = "rules_ml_toolchain", version = "0.4.0-rc1")
register_toolchains("@rules_ml_toolchain//cc:linux_x86_64_linux_x86_64")
register_toolchains("@rules_ml_toolchain//cc:linux_aarch64_linux_aarch64")
# If address sanitizer (ASAN) is needed, add the following line
register_toolchains("@rules_ml_toolchain//cc:linux_x86_64_linux_x86_64_with_sanitizers")Using WORKSPACE, add to your WORKSPACE file:
http_archive(
name = "rules_ml_toolchain",
sha256 = "13f06dd0d37c8fe9c0588decca51536ac7d723b0d2cc16bbfd7d0b8680854430",
strip_prefix = "rules_ml_toolchain-0.4.0-rc1",
urls = [
"https://github.com/google-ml-infra/rules_ml_toolchain/releases/download/0.4.0-rc1/rules_ml_toolchain-0.4.0-rc1.tar.gz",
],
)
load(
"@rules_ml_toolchain//cc/deps:cc_toolchain_deps.bzl",
"cc_toolchain_deps",
)
cc_toolchain_deps()
register_toolchains("@rules_ml_toolchain//cc:linux_x86_64_linux_x86_64")
register_toolchains("@rules_ml_toolchain//cc:linux_aarch64_linux_aarch64")
# If address sanitizer (ASAN) is needed, add the following line
register_toolchains("@rules_ml_toolchain//cc:linux_x86_64_linux_x86_64_with_sanitizers")What's Changed
- Adding layering check toolchain features by @beckerhe in #144
- Fix label for cuda_crt headers by @ybaturina in #164
- Add cuda_nvrtc to Module.bazel by @ybaturina in #165
- Add CUDA redistributable version 13.1.0 by @yliu120 in #166
- Fix bazel query failure for oneAPI by @mraunak in #168
- Add NCCL 2.29.2 distributions by @ezhulenev in #169
- Add customization of redistribution build template by @ybaturina in #163
- Add ASAN support by @yuriivcs in #158
- Fix
-c dbgflag by @yuriivcs in #171 - Add AArch64 toolchain configuration to make things work on arm based … by @yliu120 in #167
- Suppress float conversion warnings for oneAPI by @bhavani-subramanian in #172
- Sanitizers in other LLVMs for consistency by @yuriivcs in #173
- Refactor repository folders by @ybaturina in #170
- Add 'Troubleshooting' section to ASAN doc by @yuriivcs in #177
- Fix error when --incompatible_disallow_empty_glob=false flag is used by @yuriivcs in #178
- Update release_prep.sh to include toolchain registration and WORKSPACE snippet by @meteorcloudy in #183
- Add bazel test command to release workflow by @meteorcloudy in #182
New Contributors
- @bhavani-subramanian made their first contribution in #172
Full Changelog: 0.3.0...0.4.0-rc1