Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

guidoschmidt/hipacc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software Language Engineering

winter term 2014/15 : assignment 02

I presented the HIPAcc framework as an example for an embedded domain specific language (DSL). The source coded defined in the DSL gets compiled by a source-to-source-compiler, to map functions defined in the DSL to OpenCL or CUDA API calls.

A simple image kernel example as an example for the HIPAcc framework, which let you define image processing kernels in a domain specific language. The written code gets compiled into target specific GPGPU code (CUDA or OpenCL).

The kernel() function of SimpleKernel implements a simple mean filter, which will blur the input image. The width of the kernel mask can be changed by changing filter_width

How-To

  1. Download the HIPAcc framework, build and install it (github repo of HIPAcc). Additional install instructions can be found on hipacc-lang.org
  2. git clone https://github.com/GuidoSchmidt/hipacc-example.git
  3. cd hipacc-example
  4. make
  5. make run

Example output

Releases

No releases published

Packages

No packages published