V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
SlipStupig
V2EX  ›  Python

关于 python 性能加速问题的一些想法

  •  
  •   SlipStupig · 2016-07-03 22:27:14 +08:00 · 2981 次点击
    这是一个创建于 2858 天前的主题,其中的信息可能已经有所发展或是发生改变。
    如果改造 python 的解释器能在 GPU 上执行,那么速度能大幅度提升吗?
    7 条回复    2016-07-04 18:22:40 +08:00
    slixurd
        1
    slixurd  
       2016-07-03 22:32:54 +08:00
    说的好像 Python 能用多核一样.....
    powergx
        2
    powergx  
       2016-07-03 22:34:35 +08:00 via iPhone
    开 1000 个进程 应该能吃满显卡,不过显卡可不是通用计算芯片,你这些指令它看不懂啊
    est
        3
    est  
       2016-07-03 22:38:17 +08:00
    先说说你对 gpu 计算的理解
    menc
        4
    menc  
       2016-07-03 22:59:29 +08:00
    浮点运算
    和指令执行
    要区分开
    fcicq
        5
    fcicq  
       2016-07-03 23:58:16 +08:00
    CPU 是指挥官(但是干不了重活), GPU 每个单元是只会做简单事的民工, 民工多了就不一样了.
    surefire
        6
    surefire  
       2016-07-04 08:38:14 +08:00   ❤️ 1
    @fcicq 民工多了如果工资不及时到位会引发讨薪上访
    SlipStupig
        7
    SlipStupig  
    OP
       2016-07-04 18:22:40 +08:00
    @est 我确实对 gpu 运算不理解,我认为是一个更多处理器的 CPU 但是指令级不一致
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2327 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 03:48 · PVG 11:48 · LAX 20:48 · JFK 23:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.