OpenCL binding for Erlang
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
c_src Fix get_kernel_workgroup_info for Intel Sep 17, 2018
doc ignore more Nov 24, 2009
ebin initial add Nov 23, 2009
examples Merge branch 'master' of github.com:tonyrog/cl Nov 8, 2016
include
src dynamic load of all openCL functions, this makes it easier to patch v… Nov 20, 2017
test
.gitignore win32 fixes and old-rebar bc Nov 2, 2016
COPYRIGHT added license and copyright info (MIT) Jan 7, 2013
README Makefile win32 fixes Aug 15, 2018
rebar.config win32 fixes and old-rebar bc Nov 2, 2016

README

Welcome to the Erlang OpenCL binding

To get started you need erlang, preferably R16B or later.
You also need 'rebar3' and a 'C' compiler, i.e.
GCC (or CL.EXE) and a machine with OpenCL installed.

To build and test: rebar3 do compile, edoc, ct

To build examples: Goto the examples directory and run make.

Windows Users:
--------------
The build look for the OpenCL files in /opt/local/ by default.
You can also set the environment variable OPENCL_DIR to point
to another location.

This is an example of howto set up the building env:
I'm assuming you got an mingw environment.

Download a development kit from Nvidia, ATI or Intel:
e.g. http://software.intel.com/en-us/vcsource/tools/opencl-sdk-2013
cp -R /c/Intel SDK/lib /opt/local/
cp -R /c/Intel SDK/include /opt/local/

Example building 64b
------------------------------
Setup windows build environment

c:\src\cl> "c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" x64

before starting msys (with inherited env)

cl> export PATH="/c/Program Files/erl5.10.1/bin";%PATH%
cl> export PATH="/c/tools/git/cmd";%PATH%
cl> export OPENCL_DIR="c:\Intel~1\"

And build

cl> ../rebar/rebar.cmd compile
=======
If you want to force build with mingw gcc use:
NOCL=true rebar compile