Skip to content

Commit

Permalink
Merge pull request #37 from arjunsuresh/mlperf-inference
Browse files Browse the repository at this point in the history
Fixes for mlperf inference intel bert
  • Loading branch information
arjunsuresh authored May 30, 2024
2 parents cc66235 + c616358 commit 14f84d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
13 changes: 11 additions & 2 deletions script/app-mlperf-inference-intel/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ variations:
inference-results
version: v4.0
v3.1:
group: version
env:
CM_MLPERF_INFERENCE_CODE_VERSION: "v3.1"
adr:
Expand All @@ -184,6 +185,7 @@ variations:
inference-results
version: v3.1


# Target devices
cpu:
group: device
Expand Down Expand Up @@ -685,9 +687,16 @@ variations:
default_env:
CM_MLPERF_LOADGEN_BATCH_SIZE: 1

sapphire-rapids.24c,bert-99:
sapphire-rapids.24c,bert_:
env:
WORKERS_PER_PROC: 1
sapphire-rapids.112c,bert_,offline:
env:
WORKERS_PER_PROC: 4
sapphire-rapids.112c,bert_,server:
env:
WORKERS_PER_PROC: 8


docker:
docker_real_run: False
real_run: False
3 changes: 2 additions & 1 deletion script/app-mlperf-inference-intel/run_bert_harness.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

THREADS_PER_INSTANCE=$(((4 * ${CM_HOST_CPU_THREADS_PER_CORE}) / ${CM_HOST_CPU_SOCKETS}))
WORKERS_PER_PROC=${WORKERS_PER_PROC:-4}
THREADS_PER_INSTANCE=$((( ${WORKERS_PER_PROC} * ${CM_HOST_CPU_THREADS_PER_CORE}) / ${CM_HOST_CPU_SOCKETS}))

export LD_PRELOAD=${CONDA_PREFIX}/lib/libjemalloc.so
export MALLOC_CONF="oversize_threshold:1,background_thread:true,percpu_arena:percpu,metadata_thp:always,dirty_decay_ms:9000000000,muzzy_decay_ms:9000000000";
Expand Down
2 changes: 2 additions & 0 deletions script/app-mlperf-inference/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,8 @@ variations:
nvidia-inference-server:
version: r3.1
tags: _ctuning
intel-harness:
tags: _v3.1
default_env:
CM_SKIP_SYS_UTILS: 'yes'
CM_REGENERATE_MEASURE_FILES: 'yes'
Expand Down

0 comments on commit 14f84d3

Please sign in to comment.