Skip to content

Commit df87a46

Browse files
committed
Fixes for tcmalloc
1 parent 2cb622a commit df87a46

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

script/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MLCommons Automation Scripts
22

3-
*Last updated: 2026-02-20 20:28:00*
3+
*Last updated: 2026-02-21 03:11:51*
44

55
This directory contains automation scripts for MLPerf benchmarks, AI/ML workflows, and development operations.
66

script/get-lib-tcmalloc/meta.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ tests:
4444
- branch.master
4545
uid: bc454a366fed44f2
4646
variations:
47+
static:
48+
default: true
49+
env:
50+
MLC_TCMALLOC_BUILD_TYPE: static
4751
full:
4852
group: build-type
49-
default: true
5053
env:
5154
MLC_TCMALLOC_BUILD_NAME: tcmalloc
5255
minimal:

script/get-lib-tcmalloc/run.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cc_binary(
1717
linkshared = 1,
1818
linkstatic = 1,
1919
)' >> tcmalloc/BUILD
20-
echo "Added ${MLC_TCMALLOC_BUILD_NAME}.so target to tcmalloc/BUILD"
20+
echo "Added lib${MLC_TCMALLOC_BUILD_NAME}.so target to tcmalloc/BUILD"
2121
else
2222
echo "libtcmalloc.so target already exists in tcmalloc/BUILD, skipping..."
2323
fi
@@ -26,8 +26,9 @@ fi
2626
# Define the compilation mode
2727
COMP_MODE="opt"
2828

29+
bazel clean
2930
# Build with opt
30-
bazel build -c $COMP_MODE //tcmalloc:${MLC_TCMALLOC_BUILD_NAME}.so
31+
bazel build -c $COMP_MODE //tcmalloc:lib${MLC_TCMALLOC_BUILD_NAME}.so
3132

3233
# Get the path for THAT SPECIFIC mode
3334
BIN_DIR=$(bazel info -c $COMP_MODE bazel-bin)

0 commit comments

Comments
 (0)