cl

OpenCL binding for Erlang

  • 所有者: tonyrog/cl
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者tonyrog/cl
主編程語言C
編程語言C (語言數: 3)
平台
許可證Other
所有者活动
創建於2009-11-13 15:40:22
推送於2023-09-10 19:39:47
最后一次提交2023-09-10 21:39:37
發布數6
最新版本名稱cl-1.2.4 (發布於 2018-09-26 10:28:35)
第一版名稱cl-1.1 (發布於 2011-03-16 13:54:11)
用户参与
星數296
關注者數32
派生數50
提交數141
已啟用問題?
問題數20
打開的問題數10
拉請求數13
打開的拉請求數0
關閉的拉請求數6
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?