久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Python GPU 編程

Python GPU programming(Python GPU 編程)
本文介紹了Python GPU 編程的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我目前正在做一個 python 項目,我想利用 GPU 進行一些計算.

I am currently working on a project in python, and I would like to make use of the GPU for some calculations.

乍一看似乎有很多可用的工具;乍一看,我覺得我錯過了什么.

At first glance it seems like there are many tools available; at second glance, I feel like im missing something.

Copperhead 看起來很棒,但尚未發(fā)布.我似乎僅限于編寫低級 CUDA 或 openCL 內核;沒有推力,沒有cudpp.如果我想整理一些東西,我必須自己做.

Copperhead looks awesome but has not yet been released. It would appear that im limited to writing low-level CUDA or openCL kernels; no thrust, no cudpp. If id like to have something sorted, im going to have to do it myself.

這對我來說似乎不太正確.我真的錯過了什么嗎?還是這種 GPU 腳本還沒有達到宣傳的效果?

That doesnt seem quite right to me. Am I indeed missing something? Or is this GPU-scripting not quite living up to the hype yet?

GPULIB 似乎是我需要的.文檔很簡陋,python 綁定只是順便提及,但我現在正在申請下載鏈接.任何人都有這方面的經驗,或者有類似的免費學術使用 GPU 庫的鏈接?重新好的,python 綁定實際上不存在.

GPULIB seems like it might be what I need. Documentation is rudimentary, and the python bindings are mentioned only in passing, but im applying for a download link right now. Anyone has experience with that, or links to similar free-for-academic-use GPU libraries? Re ok, python bindings are infact nonexistant.

Edit2:所以我想我最好的選擇是在 C/CUDA 中編寫一些東西并從 python 中調用它?

So I guess my best bet is to write something in C/CUDA and call that from python?

推薦答案

PyCUDA 提供了非常好的與 CUDA 集成,并具有多個幫助接口,使編寫 CUDA 代碼比在直接 C api 中更容易.Here 是來自 Wiki 的一個示例,它完全不需要任何 C 代碼就可以進行 2D FFT.

PyCUDA provides very good integration with CUDA and has several helper interfaces to make writing CUDA code easier than in the straight C api. Here is an example from the Wiki which does a 2D FFT without needing any C code at all.

這篇關于Python GPU 編程的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節(jié)點)
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 一区二区三区视频 | 99精品视频在线 | 97影院在线午夜 | 久久久精品一区 | 日本欧美国产 | 成人免费视频网站在线看 | 蜜桃视频在线观看www社区 | 国产一级一级毛片 | 久久久久久国模大尺度人体 | 精品久久久久久久久久久 | 国产美女自拍视频 | 日韩国产一区二区三区 | 黄色av一区 | 毛片在线免费 | 欧美日韩久久精品 | 一区二区高清不卡 | 精精国产xxxx视频在线野外 | 国产精品久久久久久久毛片 | 国产一区二区免费 | avhd101在线成人播放 | 99精品久久99久久久久 | 亚洲免费观看视频网站 | 日韩美香港a一级毛片免费 国产综合av | 久久久久亚洲av毛片大全 | 99热播精品| 欧美精品久久久 | 日韩av成人 | www.久久| 视频三区 | av网站在线播放 | 欧美日韩a | 国产欧美精品一区二区 | 亚洲瑟瑟 | 日韩中文字幕一区二区三区 | 黄色亚洲网站 | 成人在线看片 | 精品欧美一区二区久久久伦 | 日韩高清国产一区在线 | 九色在线观看 | 成人av免费 | 在线观看成人小视频 |