Skip to content

Commit 20b68d4

Browse files
committed
Update 2024-05-21-perfboost-windows-cpu.md
fix image path
1 parent af45008 commit 20b68d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2024-05-21-perfboost-windows-cpu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The challenge of PyTorch's lower CPU performance on Windows compared to Linux ha
88

99
In version 2.0, PyTorch on Windows with CPU directly utilizes the default malloc mechanism of Windows, which, compared to the malloc used in PyTorch Linux version 2.0, significantly increases the time for memory allocation, resulting in decreased performance. Intel engineer Xu Han took the initiative to replace the original Windows malloc mechanism, which PyTorch automatically calls, with another well-known malloc library developed by Microsoft, known as mimalloc. This replacement of malloc has already been released with Pytorch v2.1 and can significantly improve PyTorch's performance on Windows CPUs (See the following graph).
1010

11-
![Windows PC Performance Improvement](../assets/images/2024-05-21-perfboost-windows-cpu/windows_optimization/windows_compare.png)
11+
![Windows PC Performance Improvement](../assets/images/2024-05-21-perfboost-windows-cpu/windows_compare.png)
1212
Image 1: Relative throughput improvement achieved by upgrading from Windows PyTorch version 2.0 to 2.1 (higher is better). The performance is measured on Intel Core 13th Gen i7-13700H with 32G Memory.
1313

1414

0 commit comments

Comments
 (0)