Skip to content

Commit

Permalink
Fix the conflict of KMP_AFFINITY and onnxruntime (intel#5764)
Browse files Browse the repository at this point in the history
* remove `compact` option from KMP_AFFINITY's default value
  • Loading branch information
MeouSker77 authored and ForJadeForest committed Sep 20, 2022
1 parent 7a46002 commit a6fa1e5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions python/nano/scripts/bigdl-nano-init
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,7 @@ if [ -f "${LIB_DIR}/libiomp5.so" ]; then
fi

echo "Setting KMP_AFFINITY..."
if [[ $threads_per_core -gt 1 ]]; then
export KMP_AFFINITY=granularity=fine,compact,1,0
else
export KMP_AFFINITY=granularity=fine,compact
fi

export KMP_AFFINITY=granularity=fine

echo "Setting KMP_BLOCKTIME..."
export KMP_BLOCKTIME=1
Expand Down

0 comments on commit a6fa1e5

Please sign in to comment.