Skip to content

kevinprowland/opencl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

opencl

A place to store my work in Open Computing Language. I'll be updating this with simple programs as I explore the language.

add_numbers:

note: this example is property of Matthew Scarpino - code was downloaded from his article "A Gentle Introduction to OpenCL" at drdobbs.com.

This simple kernel gives an example of how to use separate work items to complete data-independent tasks in parallel using OpenCL library calls.

matrix_mult:

Multiply two square matrices with randomly generated data. Each output matrix element is computed by one work-group. Each work-group uses one work-item for each element-wise multiplication. A local memory fence is used to synchronize work-items before summing their individual products. A global memory fence is used to synchronize each work group before returning the result matrix to host memory.

perlin:

(in progress)

Compute perlin noise on a 2 dimensional grid.

About

A place to store my work in Open Computing Language. I'll be updating this with simple programs as I explore the language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors