Skip to content

Commit

Permalink
#0 upload results and script for kernel lauch overhead benchmark with…
Browse files Browse the repository at this point in the history
… fixed problem size
  • Loading branch information
Jonas-Wessner committed Sep 30, 2023
1 parent 0e95318 commit 9236e91
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions benchmarks/results/11_kernel_launch_overhead.csv
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
23 changes: 23 additions & 0 deletions benchmarks/tools/11_kernel_launch_overhead.py
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()

0 comments on commit 9236e91

Please sign in to comment.