-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebGPUMatrixMultiplication.html
More file actions
59 lines (49 loc) · 1.5 KB
/
WebGPUMatrixMultiplication.html
File metadata and controls
59 lines (49 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WebGPU Matrix Multiplication Benchmark</title>
<style>
html, body {
overflow: hidden;
}
td {
outline: none;
border-right: 1px solid #eee;
border-bottom: 1px solid #eee;
}
th {
border-right: 1px solid #eee;
}
regular-table {
top: 8em !important;
}
regular-table tr td {
font-size: large;
min-width: 10em;
}
regular-table tr th {
font-size: large;
}
regular-table tr:nth-child(even) td {
background: rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/regular-table"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/regular-table/dist/css/material.css" />
<script type="module" src="WebGPUMatrixMultiplication.js"></script>
<h2>WebGPU Matrix Multiplication Benchmark</h2>
<label for="mode">Choose a Benchmark Mode</label>
<select name="mode" id="mode">
<option value="BASIC">Basic (Square only)</option>
<option value="ADVANCE">Rectangular (Transposed matrices)</option>
<option value="FULL">Advance (Full variation)</option>
</select>
<button type="button" id="launch">Launch</button>
<p id="gpu-info"></p>
<p id="progress"></p>
<regular-table id="regularTable"></regular-table>
</body>
</html>