cl

OpenCL binding for Erlang

  • Owner: tonyrog/cl
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownertonyrog/cl
Primary LanguageC
Program languageC (Language Count: 3)
Platform
License:Other
所有者活动
Created At2009-11-13 15:40:22
Pushed At2023-09-10 19:39:47
Last Commit At2023-09-10 21:39:37
Release Count6
Last Release Namecl-1.2.4 (Posted on 2018-09-26 10:28:35)
First Release Namecl-1.1 (Posted on 2011-03-16 13:54:11)
用户参与
Stargazers Count295
Watchers Count34
Fork Count49
Commits Count141
Has Issues Enabled
Issues Count20
Issue Open Count10
Pull Requests Count13
Pull Requests Open Count0
Pull Requests Close Count6
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private