Open computing language
This presentation is the property of its rightful owner.
Sponsored Links
1 / 14

Open Computing Language PowerPoint PPT Presentation


  • 69 Views
  • Uploaded on
  • Presentation posted in: General

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.

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Open computing language

Open Computing Language

(OpenCL)

Domagoj Stanković

Voditelj: Prof. dr. sc. Domagoj Jakobović


Pro lost

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

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


Opencl1

OpenCL

  • Prenosivost

  • Khronos Group – standardizacija


Host device

Host & Device


Osnovni tok opencl programa

Osnovni tok OpenCL programa


Opencl program

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];

}


Usporedba brzina izvo enja

Usporedba brzina izvođenja


Mno enje matrica

Množenje matrica


Zbrajanje vektora

Zbrajanje vektora


Hvala na pa nji

Hvala na pažnji!


Model memorije

Model memorije

  • Globalna memorija

  • Konstantna memorija

  • Lokalna memorija

  • Privatna memorija


Modeli paralelnih programa

Modeli paralelnih programa

  • Programski model paralelnih podataka (data parallel)

  • Programski model paralelnih zadataka (task parallel)


Brzine prijenosa

Brzine prijenosa


  • Login