open computing language n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Open Computing Language PowerPoint Presentation
Download Presentation
Open Computing Language

Loading in 2 Seconds...

play fullscreen
1 / 14

Open Computing Language - PowerPoint PPT Presentation


  • 132 Views
  • Uploaded on

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.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Open Computing Language' - chance


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

}

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)