-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.html
189 lines (176 loc) · 8.29 KB
/
index.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html lang="en">
<head>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/style.css" rel="stylesheet" media="screen">
<title>CUDA Occupancy Calculator</title>
</head>
<body>
<a href="https://github.com/roadhump/cuda-calculator"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
<div class="container">
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a href="" class="brand">CUDA Occupancy Calculator</a>
</div>
</div>
</div>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="version">Version</label>
<div class="controls">
<label class="radio inline"><input type="radio" name="version" value="1.0" checked>1.0</label>
<label class="radio inline"><input type="radio" name="version" value="1.1">1.1</label>
<label class="radio inline"><input type="radio" name="version" value="1.2">1.2</label>
<label class="radio inline"><input type="radio" name="version" value="1.3">1.3</label>
<label class="radio inline"><input type="radio" name="version" value="2.0">2.0</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="">Threads per block</label>
<div class="controls">
<input type="text" name="threadsPerBlock" value="256">
</div>
</div>
<div class="control-group">
<label class="control-label" for="">Registers per thread</label>
<div class="controls">
<input type="text" name="registersPerThread" value="8">
</div>
</div>
<div class="control-group">
<label class="control-label" for="">Shared memory per block</label>
<div class="controls">
<input type="text" name="sharedMemoryPerBlock" value="1024">
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn">Calculate</button>
</div>
</div>
</form>
<div id="output" hidden>
<table class="table table-stripped table-hover">
<caption>GPU Occupancy Data is displayed here and in the graphs</caption>
<tr>
<th>Active Threads per Multiprocessor</th>
<td data-value="activeThreadsPerMultiprocessor"></td>
</tr>
<tr>
<th>Active Warps per Multiprocessor</th>
<td data-value="activeWarpsPerMultiprocessor"></td>
</tr>
<tr>
<th>Active Thread Blocks per Multiprocessor</th>
<td data-value="activeThreadBlocksPerMultiprocessor"></td>
</tr>
<tr>
<th>Occupancy of each Multiprocessor</th>
<td data-value="occupancyOfMultiprocessor"></td>
</tr>
</table>
<table class="table table-stripped table-hover">
<caption>Physical Limits for GPU Compute Capability</caption>
<tr>
<th>Version</th>
<td data-value="version"></td>
</tr>
<tr>
<th>Threads per Warp</th>
<td data-value="threadsPerWarp"></td>
</tr>
<tr>
<th>Warps per Multiprocessor</th>
<td data-value="warpsPerMultiprocessor"></td>
</tr>
<tr>
<th>Threads per Multiprocessor</th>
<td data-value="threadsPerMultiprocessor"></td>
</tr>
<tr>
<th>Thread Blocks per Multiprocessor</th>
<td data-value="threadBlocksPerMultiprocessor"></td>
</tr>
<tr>
<th>Total # of 32-bit registers per Multiprocessor</th>
<td data-value="registerFileSize"></td>
</tr>
<tr>
<th>Register allocation unit size</th>
<td data-value="registerAllocationUnitSize"></td>
</tr>
<tr>
<th>Register allocation granularity</th>
<td data-value="allocationGranularity"></td>
</tr>
<tr>
<th>Shared Memory per Multiprocessor (bytes)</th>
<td data-value="sharedMemoryPerMultiprocessor"></td>
</tr>
<tr>
<th>Shared Memory Allocation unit size</th>
<td data-value="sharedMemoryAllocationUnitSize"></td>
</tr>
<tr>
<th>Warp allocation granularity (for register allocation)</th>
<td data-value="warpAllocationGranularity"></td>
</tr>
</table>
<table class="table table-stripped table-hover">
<caption>Allocation Per Thread Block</caption>
<tr>
<th>Warps</th>
<td data-value="blockWarps"></td>
</tr>
<tr>
<th>Registers</th>
<td data-value="blockRegisters"></td>
</tr>
<tr>
<th>Shared Memory</th>
<td data-value="blockSharedMemory"></td>
</tr>
</table>
<table class="table table-stripped table-hover">
<caption>Maximum Thread Blocks Per Multiprocessor</caption>
<tr>
<th>Limited by Max Warps / Blocks per Multiprocessor</th>
<td data-value="threadBlocksPerMultiprocessorLimitedByWarpsOrBlocksPerMultiprocessor"></td>
</tr>
<tr>
<th>Limited by Registers per Multiprocessor</th>
<td data-value="threadBlocksPerMultiprocessorLimitedByRegistersPerMultiprocessor"></td>
</tr>
<tr>
<th>Limited by Shared Memory per Multiprocessor</th>
<td data-value="threadBlocksPerMultiprocessorLimitedBySharedMemoryPerMultiprocessor"></td>
</tr>
</table>
<!-- <figure>
<figcaption>
<h4>Varying block size</h4>
</figcaption>
</figure>
<figure>
<figcaption>
<h4>Varying registers count</h4>
</figcaption>
</figure>
<figure>
<figcaption>
<h4>Varying shared memory</h4>
</figcaption>
</figure>
-->
</div>
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="http://documentcloud.github.com/underscore/underscore.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="calculator.js"></script>
<script src="graph.js"></script>
<script src="app.js"></script>
</body>
</html>