Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6cceb5c

Browse files
committedJun 7, 2021
update figure
1 parent 27e1a70 commit 6cceb5c

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed
 
Loading
Loading
Loading
Loading

‎linalg/cholesky_benchmark_for_torch1.9/plot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
import seaborn as sns
33
import json
44
import collections
5+
import os
56

67
THRESHOLD = 30000
8+
_full_path = os.getcwd()
9+
GPU = _full_path[_full_path.rfind('/')+1:]
710

811
d = {
912
"1.8": "res-56b43f4",
@@ -47,7 +50,7 @@
4750
plt.xlim(0, max(*sx18, *sx19))
4851
plt.ylim(0, max(*sy18, *sy19) * 1.05)
4952
plt.legend(['1.8', '1.9'])
50-
plt.title(f'Cholesky decomposition on single matrix (GPU)')
53+
plt.title(f'Cholesky decomposition on single matrix ({GPU})')
5154
plt.xlabel('matrix_size n of a square matrix (n x n)')
5255
plt.ylabel(u'execution_time (μs)')
5356
plt.savefig('single.png', transparent=True)
@@ -72,7 +75,7 @@
7275
plt.xlim(0, max(*sx18_b, *sx19_b))
7376
plt.ylim(0, max(*sy18_b, *sy19_b) * 1.05)
7477
plt.legend(['1.8', '1.9'])
75-
plt.title(f'Cholesky decomposition on batched matrices of {mat_size}x{mat_size} (GPU)')
78+
plt.title(f'Cholesky decomposition on batched matrices of {mat_size}x{mat_size} ({GPU})')
7679
plt.xlabel('batch_size')
7780
plt.ylabel(u'execution_time (μs)')
7881
plt.savefig(f'batch_{mat_size}.png', transparent=True)

0 commit comments

Comments
 (0)
Please sign in to comment.