Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mozheng-homework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mozheng
mozheng-homework
Commits
98c4f409
Commit
98c4f409
authored
Oct 25, 2020
by
mozheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加结果
parent
1378c1bb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
1/main.py
+0
-0
1/readme.md
+10
-0
1/res1.png
+0
-0
No files found.
0
/main.py
→
1
/main.py
View file @
98c4f409
File moved
1/readme.md
0 → 100644
View file @
98c4f409
## Cupy和numpy的比较
Cupy是使用NVIDIA CUDA核心进行加速运算,因为GPU上有好多CUDA核心,因此可以大大提高运算速度,当数据量达到千万级时,用cupy会大大增加运算速度。
该作业我主要是验证以上观点,创建了两组数据,一组是在CPU上用numpy实现千万级矩阵的加法,一组在GPU上用cupy实现同样数据的加法,结果表明,用cupy计算时,速度比numpy快40倍,证明以上观点正确。~~~~
## 程序结果
代码:
[
main.py
](
main.py
)
结果:
!
[
](res1.png)
\ No newline at end of file
1/res1.png
0 → 100644
View file @
98c4f409
3.14 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment