-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
355 lines (346 loc) · 16.1 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!DOCTYPE html>
<!--[if lt IE 8 ]><html class="no-js ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="no-js ie ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]><html class="no-js ie ie9" lang="en"> <![endif]-->
<!--[if (gte IE 8)|!(IE)]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<!--- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<title>CuPy: NumPy & SciPy for GPU</title>
<meta name="description" content="Run NumPy/SciPy code on GPU. Supports NVIDIA CUDA and AMD ROCm.">
<meta property="og:title" content="CuPy">
<meta property="og:type" content="website">
<meta property="og:description" content="NumPy & SciPy for GPU">
<meta property="og:url" content="https://cupy.dev/">
<meta property="og:image" content="https://cupy.dev/images/cupy_icon.png" />
<meta property="og:site_name" content="CuPy">
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
<!-- CSS
================================================== -->
<link rel="stylesheet" href="css/default.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/media-queries.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/prettyPhoto.css">
<link rel="stylesheet" href="css/prism.css">
<!-- Script
================================================== -->
<script src="js/modernizr.js"></script>
<script src="js/prism.js"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-797798-13"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('consent', 'default', {
'ad_storage': 'denied',
'analytics_storage': 'denied'
});
gtag('config', 'UA-797798-13');
</script>
<!-- Favicons
================================================== -->
<link rel="shortcut icon" href="favicon.ico" >
</head>
<body>
<div id="preloader">
<div id="status">
<img src="images/preloader.gif" height="64" width="64" alt="">
</div>
</div>
<!-- Header
================================================== -->
<header>
<div class="logo">
<a class="smoothscroll" href="#">
<img alt="CuPy" src="images/cupy_white.png">
</a>
</div>
<nav id="nav-wrap">
<a class="mobile-btn" href="#nav-wrap" title="Show navigation">Show Menu</a>
<a class="mobile-btn" href="#" title="Hide navigation">Hide Menu</a>
<ul id="nav" class="nav">
<li>
<a class="smoothscroll" href="#features"><i class="fa fa-bolt"></i> Features</a>
</li>
<li>
<a class="smoothscroll" href="#videos"><i class="fa fa-video-camera"></i> Videos</a>
</li>
<li>
<a href="https://medium.com/cupy-team"><i class="fa fa-bookmark"></i> Blog</a>
</li>
<li>
<a href="https://docs.cupy.dev/"><i class="fa fa-book"></i> Docs</a>
</li>
<li>
<a href="https://github.com/cupy/cupy"><i class="fa fa-github"></i> GitHub</a>
</li>
<li>
<a href="https://twitter.com/CuPy_Team"><i class="fa fa-twitter"></i> Twitter</a>
</li>
<li>
<a href="https://gitter.im/cupy/community"><i class="fa fa-comments"></i> Gitter</a>
</li>
<li>
<a href="https://www.preferred.jp/en/"><i class="fa fa-user"></i> About us</a>
</li>
</ul>
<!-- end #nav -->
</nav>
<!-- end #nav-wrap -->
<ul class="header-social">
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2fcupy.dev/">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fcupy.dev&hashtags=cupy&text=CuPy">
<i class="fa fa-twitter"></i>
</a>
</li>
<!-- <li><a href="#"><i class="fa fa-rss-square"></i></a></li> -->
</ul>
</header>
<!-- Header End -->
<!-- Homepage Hero
================================================== -->
<section id="hero">
<div class="row">
<div class="twelve columns">
<div class="hero-text">
<h1 class="responsive-headline">
<img src="images/cupy.png" width=600 alt="cupy_logo">
</h1>
<p>NumPy/SciPy-compatible Array Library for GPU-accelerated Computing with Python</p>
</div>
<div class="buttons">
<a class="button trial" href="https://docs.cupy.dev/en/stable/install.html"><i class="fa fa-rocket"></i> Get Started</a>
<a class="button learn-more" href="https://docs.cupy.dev/en/stable/reference/index.html"><i class="fa fa-book"></i> API Reference</a>
<a class="button learn-more" href="https://github.com/cupy/cupy/"><i class="fa fa-github"></i> GitHub</a>
</div>
</div>
</div>
</section>
<!-- Homepage Hero end -->
<!-- Features Section
================================================== -->
<section id='features'>
<div class="row feature design">
<div class="six columns right">
<h3>High performance with GPU</h3>
<p>CuPy is an open-source array library for GPU-accelerated computing with Python. CuPy utilizes CUDA Toolkit libraries including cuBLAS, cuRAND, cuSOLVER, cuSPARSE, cuFFT, cuDNN and NCCL to make full use of the GPU architecture.
<br>The figure shows CuPy speedup over NumPy. Most operations perform well on a GPU using CuPy out of the box. CuPy speeds up some operations more than 100X. Read the original benchmark article
<a href="https://medium.com/rapids-ai/single-gpu-cupy-speedups-ea99cbbb0cbb">Single-GPU CuPy Speedups</a> on the RAPIDS AI Medium blog.
</p>
</div>
<div class="six columns feature-media left">
<canvas id="benchmark" height="350" width="400"></canvas>
<script>
window.onload = function(){
var ctx = document.getElementById('benchmark').getContext('2d');
var myChart = new Chart(ctx, {
type: 'bar',
options: {
title: {
display: true,
text: 'CuPy speedup over NumPy (Quoted from RAPIDS AI)'
},
scales: {
yAxes: [{
type: 'logarithmic',
ticks: {
min: 1,
stepSize: 10,
max: 500,
callback: function (value, index, values) {
return Number(value.toString());
}
},
afterBuildTicks: function(pckBarChart) {
pckBarChart.ticks = [1, 2, 5, 10, 20, 50, 100, 200, 500];
},
scaleLabel: {
display: true,
labelString: 'Speedup'
}
}]
}
},
data: {
labels: ['Elementwise', 'FFT', 'Array Slicing', 'Stencil', 'Sum', 'Matrix Multiplication', 'SVD', 'Standard Deviation'],
datasets: [{
label: 'Array Size 800 MB',
data: [270, 210, 190, 150, 66, 11, 17, 3.5],
backgroundColor: "rgba(115, 6, 255, 1)"
}, {
label: 'Array Size 8 MB',
data: [150, 5.3, 3.6, 5.1, 8.3, 18, 1.5, 1.1],
backgroundColor: "rgba(54, 201, 221, 1)"
}]
}
});
}
</script>
</div>
</div>
<div class="row feature responsive">
<div class="six columns left">
<h3>Highly compatible with NumPy & SciPy</h3>
<p>CuPy's interface is highly compatible with NumPy and SciPy; in most cases it can be used as a drop-in replacement. All you need to do is just replace
<code>numpy</code> and <code>scipy</code> with
<code><a href="https://docs.cupy.dev/en/latest/reference/routines.html">cupy</a></code> and <code><a href="https://docs.cupy.dev/en/latest/reference/scipy.html">cupyx.scipy</a></code> in your Python code.
The <a href="https://docs.cupy.dev/en/stable/user_guide/basic.html">Basics of CuPy</a> tutorial is useful to learn first steps with CuPy.
<br>CuPy supports various methods, indexing, data types, broadcasting and more.
<a href="https://docs.cupy.dev/en/stable/reference/comparison.html">This comparison table</a> shows a list of NumPy / SciPy APIs and their corresponding CuPy implementations.
</p>
</div>
<div class="six columns feature-media right">
<pre><code class="language-python">>>> import cupy as cp
>>> x = cp.arange(6).reshape(2, 3).astype('f')
>>> x
array([[ 0., 1., 2.],
[ 3., 4., 5.]], dtype=float32)
>>> x.sum(axis=1)
array([ 3., 12.], dtype=float32)
</code></pre>
</div>
</div>
<div class="row feature cross-browser">
<div class="six columns right">
<h3>Easy to install</h3>
<p>The easiest way to install CuPy is to use pip. CuPy provides wheels (precompiled binary packages) for Linux and Windows. Read the
<a href="https://docs.cupy.dev/en/stable/install.html">Installation Guide</a> for more details.
<br>
CuPy can also be <a href="https://docs.cupy.dev/en/stable/install.html#installing-cupy-from-conda-forge">installed from Conda-Forge</a> or <a href="https://docs.cupy.dev/en/stable/install.html#install-cupy-from-source">from source code</a>.
</p>
</div>
<div class="six columns feature-media left">
<pre><code class="language-bash"># For CUDA 11.2 ~ 11.x
pip install cupy-cuda11x
# For CUDA 12.x
pip install cupy-cuda12x
# For AMD ROCm 4.3
pip install cupy-rocm-4-3
# For AMD ROCm 5.0
pip install cupy-rocm-5-0
</code></pre>
</div>
</div>
<div class="row feature responsive">
<div class="six columns left">
<h3>Easy to write a custom kernel</h3>
<p>You can easily make a custom CUDA kernel if you want to make your code run faster, requiring only a small code snippet of C++. CuPy automatically wraps and compiles it to make a CUDA binary. Compiled binaries are cached and reused in subsequent runs. Please read the
<a href="https://docs.cupy.dev/en/stable/user_guide/kernel.html">User-Defined Kernels</a> tutorial.
<br>And, you can also use raw CUDA kernels via
<a href="https://docs.cupy.dev/en/stable/tutorial/kernel.html#raw-modules">Raw modules</a>.
</p>
</div>
<div class="six columns feature-media right">
<pre><code class="language-python">>>> x = cp.arange(6, dtype='f').reshape(2, 3)
>>> y = cp.arange(3, dtype='f')
>>> kernel = cp.ElementwiseKernel(
... 'float32 x, float32 y', 'float32 z',
... '''
... if (x - 2 > y) {
... z = x * y;
... } else {
... z = x + y;
... }
... ''', 'my_kernel')
>>> kernel(x, y)
array([[ 0., 2., 4.],
[ 0., 4., 10.]], dtype=float32)
</code></pre>
</div>
</div>
</section>
<!-- Homepage Hero end -->
<!-- Testimonials Section
================================================== -->
<section id="testimonials">
<div id="videos" class="row content">
<h1>Watch videos.</h1>
<div class="six columns">
<iframe type="text/html" style='width: 480px; height: 270px;' src="https://www.youtube-nocookie.com/embed/_AKDqw6li58" frameborder="0" allowfullscreen></iframe>
PyBay 2019, San Francisco
</div>
<div class="six columns right-cols">
<iframe type="text/html" style='width: 480px; height: 270px;' src="https://www.youtube-nocookie.com/embed/xG1nz3R8H7I" frameborder="0" allowfullscreen></iframe>
SciPy Japan Conference 2020, Virtual
</div>
</div>
</section>
<!-- Screenshots
================================================== -->
<section id="screenshots">
<div class="row section-head">
<h1>Developed by</h1>
</div>
<div class="row">
<div class="six columns offset-3">
<div class="logo">
<a href="https://www.preferred.jp/en/"><img src="images/pfn.png" alt="Preferred Networks"></a>
</div>
</div>
</div>
</div>
<br>
<div class="row section-head">
<h1>Supported By</h1>
</div>
<div class="row">
<div class="eight columns offset-2">
<div class="six columns item">
<div class="logo">
<a href="https://www.bnl.gov/compsci/computational-lab.php"><img src="images/bnl.png" alt="Brookhaven National Laboratory"></a>
</div>
</div>
<!-- item end -->
<div class="six columns item">
<div class="logo">
<a href="https://www.nvidia.com/"><img src="images/nvidia.png" alt="NVIDIA"></a>
</div>
</div>
<!-- item end -->
</div>
<!-- twelve columns end -->
</div>
<!-- end row -->
</section>
<!-- Screenshots End -->
<!-- Footer
================================================== -->
<footer>
<div class="row">
<p class="copyright">©
<a href="https://www.preferred.jp/en/">Preferred Networks, Inc.</a> & Preferred Infrastructure, Inc. | <a href="https://www.preferred.jp/en/policy/">Privacy Policy</a> | Design by <a title="Styleshout" href="http://www.styleshout.com/">Styleshout</a>
</p>
<div id="go-top">
<a class="smoothscroll" aria-label="Back to Top" title="Back to Top" href="#">
<i class="icon-up-open"></i>
</a>
</div>
</div>
<!-- Row End -->
</footer>
<!-- Footer End-->
<!-- Java Script
================================================== -->
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/jquery-migrate-3.0.0.min.js"></script>
<script src="js/jquery.flexslider.js"></script>
<script src="js/waypoints.js"></script>
<script src="js/jquery.fittext.js"></script>
<script src="js/jquery.fitvids.js"></script>
<script src="js/imagelightbox.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/main.js"></script>
</body>
</html>