brucefan1983 / CUDA-Programming

Sample codes for my CUDA programming book
GNU General Public License v3.0
1.55k stars 320 forks source link

P55 因为我们的CPU程序中的计算是串行的,其性能基本上与数组长度无关。 #15

Closed ronaldpan closed 2 years ago

ronaldpan commented 2 years ago

这应该是“其性能基本上与数组长度N成正比”吧.

fever-Wong commented 2 years ago

谢谢,您发给我的邮件已经收到,我会尽快处理。Thank you,the email you sent me has been received and I will handle it as soon as possible.王景博fever wong

brucefan1983 commented 2 years ago

“性能”一般是只程序的计算速度,即单位时间能处理的数据量,单位是比如”GB/s"。从这个角度来说,CPU程序的速度是不显著依赖于数组长度的。但GPU就不同了,当N很小时,GPU的性能基本上正比于N,只有当N很大时,GPU的性能才饱和。

哲勇

On Tue, Dec 28, 2021 at 10:33 PM ronaldpan @.***> wrote:

这应该是“其性能基本上与数组长度N成正比”吧.

— Reply to this email directly, view it on GitHub https://github.com/brucefan1983/CUDA-Programming/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF546OIKPCXRVUTDGGJ3C53UTHDERANCNFSM5K4H6H3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>