-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#0 upload results and script for kernel lauch overhead benchmark with…
… fixed problem size
- Loading branch information
1 parent
0e95318
commit 9236e91
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
n_launches,ex_time | ||
1,0.101 | ||
10,0.404 | ||
20,0.742 | ||
30,1.083 | ||
40,1.423 | ||
50,1.762 | ||
60,2.100 | ||
70,2.438 | ||
80,2.778 | ||
90,3.116 | ||
100,3.502 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import pandas as pd | ||
import matplotlib.pyplot as plt | ||
import matplotlib.font_manager as font_manager | ||
|
||
# Read the CSV data into a Pandas DataFrame | ||
data = pd.read_csv("results/11_kernel_launch_overhead.csv") | ||
|
||
# Increase font size for labels and ticks | ||
font_prop = font_manager.FontProperties(size=14) | ||
|
||
# Create the plot | ||
plt.figure(figsize=(10, 6)) # Set the figure size | ||
plt.plot(data['n_launches'], data['ex_time'], color='blue', marker='o', linewidth=2.3) # Plot the data | ||
|
||
# Set axis labels with increased font size | ||
plt.xlabel('number of kernel launches', fontproperties=font_prop) | ||
plt.ylabel('execution time (s)', fontproperties=font_prop) | ||
|
||
# Set title with increased font size | ||
plt.title('Kernel Launch Overhead', fontproperties=font_prop) | ||
|
||
# Show the plot | ||
plt.show() |