1 / 14

Open Computing Language

Open Computing Language. (OpenCL). Domagoj Stanković Voditelj: Prof. dr. sc. Domagoj Jakobović. Prošlost. Ubrzanje izvođenja => brži procesor 2004. Intelov procesor 4 GHz – gornja granica Višejezgreni procesori – paralelni programi Različite platforme – različiti programi. OpenCL.

chance
Download Presentation

Open Computing Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Open Computing Language (OpenCL) Domagoj Stanković Voditelj: Prof. dr. sc. Domagoj Jakobović

  2. Prošlost • Ubrzanje izvođenja => brži procesor • 2004. Intelov procesor 4 GHz – gornja granica • Višejezgreni procesori – paralelni programi • Različite platforme – različiti programi

  3. OpenCL • Okvir za pisanje programa koji se izvršavaju paralelno na heterogenim platformama - CPU, GPU, DSP • CPU (central processing unit) – procesor opće namjene, mali broj jezgri • GPU (graphics processing unit) – procesor za grafičko računanje, veliki broj jezgri • DSP (digital signal processor) – procesor za obradu digitalnog signala

  4. OpenCL • Prenosivost • Khronos Group – standardizacija

  5. Host & Device

  6. Osnovni tok OpenCL programa

  7. OpenCL program __kernelvoid vector_add(__global int *A, __global int *B, __global int *C) { // Nađi indeks trenutnog elementa int i = get_global_id(0); // Obavi operaciju C[i] = A[i] + B[i]; }

  8. Usporedba brzina izvođenja

  9. Množenje matrica

  10. Zbrajanje vektora

  11. Hvala na pažnji!

  12. Model memorije • Globalna memorija • Konstantna memorija • Lokalna memorija • Privatna memorija

  13. Modeli paralelnih programa • Programski model paralelnih podataka (data parallel) • Programski model paralelnih zadataka (task parallel)

  14. Brzine prijenosa

More Related