Skip to content
This repository

OpenCL binding for Erlang

tree: bba7b77aee

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 c_src
Octocat-spinner-32 doc ignore more November 24, 2009
Octocat-spinner-32 ebin initial add November 24, 2009
Octocat-spinner-32 examples Supply senders env in enif_send if done by a scheduler thread March 14, 2011
Octocat-spinner-32 include
Octocat-spinner-32 lib
Octocat-spinner-32 obj
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore Makefile win32 fixes December 16, 2011
Octocat-spinner-32 Makefile
Octocat-spinner-32 README
Octocat-spinner-32 vsn.mk
README
Welcome to the Erlang OpenCL binding

To get started you need erlang, preferably R14. You also need
GCC and a machine with OpenCL installed. 

To build: just run make

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

Make sure erlang finds the cl/ebin directory.

Windows Users: 
I'm assuming you got an mingw environment, otherwise you are on your own.

mkdir -p /opt/local/include/CL
mkdir -p /opt/local/lib

Download all headers from http://www.khronos.org/registry/cl/
and put them in /opt/local/include/CL
You can also use the environment variable OPENCL_DIR to point
out other locations.

Find a OpenCL.lib available in Nvidia or ATI developments kits
cp /c/CUDA/lib/OpenCL.dll /opt/local/lib

Also you might need autoconf package available at:
http://sourceforge.net/projects/mingw/files_beta/MSYS/

OpenCL with ATI drivers for CPU usage don't work when erlang
is started within a mingw shell but does if you start it from
a Windows CMD.exe shell.

If you don't like mingws compiler you can use Microsoft compiler by running 
$ make MCL=true
This assumes that you have all the environment variables set.
They can be set by adding first in your 'msys.bat':
call "c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd"
Something went wrong with that request. Please try again.