利用nvidia CUDA加速MATLAB运算
发布:xasun | 分类:Matlab软件培训
关于本站
人大经济论坛-经管之家:分享大学、考研、论文、会计、留学、数据、经济学、金融学、管理学、统计学、博弈论、统计年鉴、行业分析包括等相关资源。
经管之家是国内活跃的在线教育咨询平台!
获取电子版《CDA一级教材》
完整电子版已上线CDA网校,累计已有10万+在读~ 教材严格按考试大纲编写,适合CDA考生备考,也适合业务及数据分析岗位的从业者提升自我。
TOP热门关键词
免费学术公开课,扫码加入![]() |
星期六早上去参加了旅英侨界运动会,认识了不少好朋友,也第一次听说了NVidia的CUDA,可以用GPU运算!NV牌八系列以上的芯片组就可以用!我的F8SV完全OK阿!据说利用GPU可以大幅缩短MATLAB矩阵运算的时间,我听了感觉很嗨!当然就投入研究看看啰!
但是想的比做的美,如果乖乖按照NV官网上的教学,我想我到现在还是无法使用吧?最后还是跟先进求救才搞定。就把这步骤记录下来当作我BLOG的第一篇吧!
先介绍我的laptop
ASUS F8Sv
OS: VISTA 32bit
MATLAB R2008a
接着看看你的显示适配器是不是支持CUDA,底下是支援列表。
http://www.nvidia.com/object/cuda_learn_products.html
如果你有,恭喜!
安装CUDA以前,先安装第三方显卡驱动。对,你没看错NV自家驱动会让你安装不了CUDA driver,够鸟吧!
专家帮我找到属于我的规格的最新趋动,连结如下
http://www.laptopvideo2go.com/nvidia/175series/17595_vista.exe
http://www.laptopvideo2go.com/infs/175series/17741_vista/nv_disp.inf
如果你跟我不一样显卡,自己从
http://www.laptopvideo2go.com/
去找吧!
INF档是当EXE自解压缩完成之后要丢进去替换掉的,这样才能顺利安装。安装前记得先移除原来的显示适配器驱动程序。
接着上NV官网找到CUDA
http://www.nvidia.com/object/cuda_home.html
去当漏区把该抓的三样东西都抓一抓,驱动要第一个灌,上面的INF档一样要塞进来,不然不能顺利安装喔!
接着安装另外两个档案toolkit&SDK
马上就可以看看NV官方提供的GPU强大威力演示啰!
但是这还不够,我要的是MATLAB的API阿!翻来找去,让我找到了Jacket这个project,提供MATLAB用的
函示库喔!不需要自己的撰写C语言再用MEX function,真是爽阿。下载后,直接把Jacket提供的函式库加进PATH就搞定了!
底下是BLAS范例执行的结果,我就不多做解释了,自己看看有多威吧!
BLAS Example 1: Square Matrix Multiplication
Computing the 2x2 benchmark...
On average GPU is 0.177807 times faster than the CPU.
Computing the 4x4 benchmark...
On average GPU is 0.143623 times faster than the CPU.
Computing the 8x8 benchmark...
On average GPU is 0.135356 times faster than the CPU.
Computing the 16x16 benchmark...
On average GPU is 0.182954 times faster than the CPU.
Computing the 32x32 benchmark...
On average GPU is 5.28891 times faster than the CPU.
Computing the 64x64 benchmark...
On average GPU is 1.67258 times faster than the CPU.
Computing the 128x128 benchmark...
On average GPU is 4.13088 times faster than the CPU.
Computing the 256x256 benchmark...
On average GPU is 17.4282 times faster than the CPU.
Computing the 512x512 benchmark...
On average GPU is 139.496 times faster than the CPU.
Computing the 1024x1024 benchmark...
On average GPU is 990.547 times faster than the CPU.
Plotting results...End of BLAS Example 1.
BLAS Example 2: Matrix-Vector Multiplication (Transformation)
Computing the 3x1024 benchmark...
On average GPU is 1.60066 times faster than the CPU.
Computing the 3x2048 benchmark...
On average GPU is 4.33732 times faster than the CPU.
Computing the 3x4096 benchmark...
On average GPU is 13.9893 times faster than the CPU.
Computing the 3x8192 benchmark...
On average GPU is 3.1869 times faster than the CPU.
Computing the 3x16384 benchmark...
On average GPU is 5.72559 times faster than the CPU.
Computing the 3x32768 benchmark...
On average GPU is 8.04638 times faster than the CPU.
更详细内容:http://www.xasun.com/article/f6/624.html
10台顶级8核服务器速度-Tesla个人超级计算机
免流量费下载资料----在经管之家app可以下载论坛上的所有资源,并且不额外收取下载高峰期的论坛币。
涵盖所有经管领域的优秀内容----覆盖经济、管理、金融投资、计量统计、数据分析、国贸、财会等专业的学习宝库,各类资料应有尽有。
来自五湖四海的经管达人----已经有上千万的经管人来到这里,你可以找到任何学科方向、有共同话题的朋友。
经管之家(原人大经济论坛),跨越高校的围墙,带你走进经管知识的新世界。
扫描下方二维码下载并注册APP
您可能感兴趣的文章
人气文章
本文标题:利用nvidia CUDA加速MATLAB运算
本文链接网址:https://bbs.pinggu.org/jg/ruanjianpeixun_matlabruanjianpeixun_423482_1.html
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。



