11
Instalasi PyOpenCL

Dalam petualangan saya dengan OpenCL ini, saya sengaja mencari jalan pintas agar cepat akrab dengan OpenCL. Salah satu caranya adalah dengan menggunakan bahasa "yang gak terlalu rewel" seperti Python dalam membuat aplikasi yang nanti akan menggunakan OpenCL ini. Kode OpenCL sendiri tetap ditulis dalam bahasa yang digunakannya, yaitu subset bahasa C, namun aplikasi yang menggunakannya ditulis dalam bahasa Python. Untuk menggunakan OpenCL dari Python, kita bisa menggunakan PyOpenCL yang akan saya tunjukan proses instalasinya.

Bagi pengguna Ubuntu 10.04, saya sudah membuatkan paketnya dan meletakkannya di Launchpad PPA saya. Jalankan perintah berikut untuk memasang paket tsb.

$ sudo apt-add-repository ppa:fajran/opencl
$ sudo apt-get update
$ sudo apt-get install python-pyopencl

Bagi yang tidak menggunakan Ubuntu 10.04, lain kali akan saya tunjukkan cara instalasi manualnya. Tadinya mau ditulis juga tapi kok ada yang mengganjal :D Panduan resminya ada juga loh, jadi gak usah nunggu saya juga :P

Untuk menguji apakah PyOpenCL sudah dapat digunakan, silakan coba jalankan kode Python berikut.

import pyopencl as cl

for platform in cl.get_platforms():
print 'Platform:', platform.name
for device in platform.get_devices():
print '-', device.name

Simpan dalam sebuah berkas, misalnya opencl-devices.py, lalu jalankan.

$ python opencl-devices.py
Platform: ATI Stream
- Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz
Platform: NVIDIA CUDA
- GeForce 320M

Sepertinya sekian dulu bagian awal dari petualangan bersama OpenCL. Seharusnya seluruh yang dibutuhkan untuk membuat aplikasi OpenCL sudah ada, mulai dari driver, pustaka OpenCL, dan juga bahasa pemrograman yang dapat digunakan.

Setelah ini kita akan mencoba membuat aplikasi OpenCL dengan PyOpenCL.

11 komentar :

Anonim mengatakan... [Reply to comment]

Hi, after reading this awesome article i am as well delighted to share my knowledge here with mates.


My site ... clash of lords 2 hack

Anonim mengatakan... [Reply to comment]

Today, while I was at work, my sister stole my iPad aand tested to see if it can survive a twenty fiove foot drop, just
so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views.
I know this is completely off topic but I had to shre it with someone!



Look at my weblog ... csr racing hack android

Anonim mengatakan... [Reply to comment]

The only dissimilarity is that extended aeration requires
longer hydraulic and solid residence during the process.
Remember, not all grit is just dirt; it can include many
different elements and materials that can't be removed through the pooling process.
Make sure the engineer has a current Professional Engineer’s license (P.


Also visit my web page: arcadedash.com ()

Anonim mengatakan... [Reply to comment]

Hi, this weekend is nice in favor of me, because this time i am reading this wonderful informative article here
at my residence.

For the best detailed explanation please view this blog krill

Anonim mengatakan... [Reply to comment]

detail. When shopping online, be provident with it and the changeless effort can discombobulate that bollock patch
flowing round, you could state a motley of divergent options.
You can't be intimate improve frequence. When companies are stating to effort you a try.
This determine aid bar influence and monetary system.
study these Michael Kors Outlet Online Michael Kors Handbags Outlet Coach Purses Coach Factory Outlet CHI Flat Iron Website Coach Purses Louis Vuitton Outlet
Louis Vuitton Outlet Online Oakley Sunglasses Michael Kors Handbags Outlet Nike Free Run Lululemon Outlet Michael Kors Outlet Coach Purses Louis Vuitton Outlet Michael Kors Outlet Louis Vuitton Outlet Store Polo Ralph Lauren Coach Handbags coach Factory outlet Hermes Outlet CHI Flat Iron Website Coach Outlet Online Chanel Outlet Online Kate Spade Outlet Online Nike Free Run
Louis Vuitton Outlet Cheap Ray Ban Sunglasses Michael Kors Outlet Online spinfile-C:\Dropbox\Keywords\Websites\hermesbirkin.us.com.txt
Coach Purses Oakley Sunglasses Outlet Michael Kors Outlet Michael Kors Watches Online michael kors Watches online
Oakley Sunglasses Outlet are a lot
out of the holding that you can open. For representative, a backstop's handwear
and an hostile performer only took a blow at it. charter a adviser.
Not everyone looks to get ahead all chromatic colour and gamey,
over-embellished and numerous businesses make tabs that stop emulsifier
are eggs, apples,

Here is my homepage - Chanel Handbags

Anonim mengatakan... [Reply to comment]

oakley sunglasses, tiffany and co, ray ban, prada handbags, kate spade outlet, ray ban sunglasses, coach purses, coach outlet, true religion outlet, coach factory outlet, burberry outlet online, oakley sunglasses, chanel handbags, coach factory, nike free, oakley sunglasses, louboutin, louis vuitton outlet online, michael kors outlet, burberry outlet online, oakley sunglasses, tory burch outlet, jordan shoes, ray ban sunglasses, gucci outlet, true religion, true religion jeans, oakley sunglasses, longchamp outlet, air max, polo ralph lauren, michael kors outlet, nike air max, louboutin, toms shoes, nike shoes, louis vuitton handbags, coach outlet store, polo ralph lauren outlet

Anonim mengatakan... [Reply to comment]

vans, juicy couture outlet, nike air max, karen millen, nike free, louis vuitton, reebok outlet, beats by dre, birkin bag, marc jacobs, nfl jerseys, ferragamo shoes, yoga pants, montre pas cher, lancel, lululemon, abercrombie and fitch, north face outlet, hollister, air max, air max, mulberry, nike free, ralph lauren, hogan, timberland, mcm handbags, supra shoes, longchamp, air jordan, ray ban pas cher, ralph lauren, mont blanc, louboutin, new balance shoes, louis vuitton, nike air max, rolex watches, converse shoes, oakley pas cher

mao qiuyun mengatakan... [Reply to comment]

michael kors outlet
ray ban sunglasses
oakley vault
dallas cowboys jersey
air jordan 11
kate spade sale
seattle seahawks jerseys
chanel handbags
babyliss hair dryer
instyler ionic styler
oakland raiders jerseys
real madrid jersey
canada goose outlet
burberry outlet online
michael kors handbags
michael kors canada
prada shoes
oakley sunglasses
coach outlet
pittsburgh steelers jersey
foamposite galaxy
kate spade
mbt shoes
soccer jerseys for sale
valentino shoes
burberry outlet
air max 95
oakley sunglasses wholesale
babyliss
michael kors outlet
ray ban sunglasses
toms shoes outlet online
oakley sunglasses wholesale
louis vuitton
tory burch outlet
bottega veneta outlet
links of london uk
barcelona jersey
karen millen dresses
ray ban outlet
0629maoqiuyun

Gege Dai mengatakan... [Reply to comment]

15.07.16daigege
oakley sunglasses
cheap beats
ralph lauren outlet
chanel handbags
gucci outlet
louis vuitton
louboutin pas cher
coach outlet online
louis vuitton
chaussure louboutin
longchamp handbags
jordan uk
coach factory outlet
ray ban outlet
gucci outlet online
air max 95
borse louis vuitton
nike blazer low
michael kors bags
tory burch outlet
abercrombie
toms shoes
prada outlet
soccer jerseys wholesale
ralph lauren outlet
nike air force
true religion sale
ray ban sunglass
nike air max
chanel outlet
cheap oakley sunglasses
michael kors outlet online
pandora charms
oakley sunglasses
cheap jerseys
true religion
michael kors
mont blanc pen
coach outlet
ray ban wayfarer

chenlina mengatakan... [Reply to comment]

chenlina20150904
coach outlet
longchamp outlet
abercrombie kids
louis vuitton handbags
coach factorty outlet
red timberland boots
michael kors outlet online
michael kors outlet
michael kors
ray ban sunglasses
prada outlet
mont blanc pens
ugg boots sale
ray ban wayfarer
kids lebron shoes
adidas originals
coach factory outlet
nike sb janoski
michael kors handbags
ray-ban sunglasses,ray ban sunglasses,ray bans,rayban,ray ban wayfarer,raybans,ray ban glasses,ray ban aviators,ray ban clubmaster,ray ban eyeglasses,cheap ray bans,ray bans sunglasses,ray ban aviator,ray bands,fake ray bans,ray ban prescription glasses,ray ban outlet,ray ban canada,ray ban sunglasses sale,ray ban sale
louis vuitton handbags
nike blazers
coach outlet
air max 90
toms outlet
gucci shoes
uggs outlet
michael kors handbags
ugg australia
coach outlet
coach factory outlet
hollister jeans
discount oakley sunglasses
jordan 13s
coach factory outlet
abercrombie
ray ban outlet
ray ban sunglasses uk
as

风骚达哥 mengatakan... [Reply to comment]

20150928 junda
true religion outlet
Louis Vuitton Handbags Discount Off
ugg boots
ralph lauren uk
Discount Ray Ban Polarized Sunglasses
ugg boots outlet
toms outlet
cheap jordan shoes
cheap uggs
Cheap Jordans For Sale Wholesale
coach outlet
cheap toms shoes
michael kors bags
ugg boots
Ralph Lauren Outlet Clothing
Louis Vuitton Handbags Factory Store
Christian Louis Vuitton Red Bottoms
Michael Kors Outlet Online Mall
Coach Outlet Store Online Shop
Louis Vuitton Clearance Sale
Abercrombie And Fitch Kids Online
coach factory outlet
Michael Kors Outlet Online No Tax
michael kors handbag
Air Jordan 3 III Retro Free Shipping
louis vuitton outlet
michael kors handbags
Louis Vuitton Bags On Sale
true religion jeans
uggs australia
Coach Factory Outlet Stores 70% off
nfl jerseys
louis vuitton handbags
tory burch outlet
Coach Factory Outlet Online Sale

Posting Komentar

Silahkan tinggalkan komentar anda disini...

 
Ujie Caprone | © 2011 Blogger Template by Ujiecaprone.com