[erlang-questions] using erlang openCL bindings codebase
Alex Babkin
ababkin@REDACTED
Thu Jan 17 17:40:44 CET 2013
Thanks Tony, Dan
grabbed and built latest master erlang/otp from github and it seems to work
now!
let the opencl experimenting begin... :)
On Thu, Jan 17, 2013 at 4:10 AM, Tony Rogvall <tony@REDACTED> wrote:
> Yes.
> I did a post about that just the other day.
> if you know how, you can edit the erts/configure.in a rebuild erlang.
> If you can live with 32-bit or build from git Dan also had some nice ways
> around this.
>
> I will see if I can produce some easy instructions on how to start with cl.
> But in this case it was never possible to get started ;-)
>
> Thanks
>
> /Tony
>
> Hi!
>
> Found a workaround for cl (https://github.com/tonyrog/cl) not starting on
> erlang 64-bit mac os x
> The fix is to add "-framework Foundation" to LIBCARBON in erts/
> configure.in
>
> --- Like this ---
> case $ARCH-$OPSYS in
> amd64-darwin*)
> LIBCARBON="-framework Foundation"
> AC_MSG_RESULT([no])
> ;;
> *-darwin*)
> LIBCARBON="-framework Carbon -framework Foundation"
> AC_MSG_RESULT([yes])
> ;;
> --
>
> Any chans that this might be fixed in a future release ?
>
>
> /Tony
>
>
>
> On 17 jan 2013, at 02:26, Alex Babkin <ababkin@REDACTED> wrote:
>
> Hi
>
> I was trying to play around with this code (https://github.com/tonyrog/cl)
> and get it going on my mac (Air, OS X 10.8.2), but wasn't all that
> successful
>
> I have some experience running erlang programs but usually bootstrapped
> with rebar.
>
> I've gotten as far as getting "Trace/BPT trap: 5" as soon as i run some
> examples (and this error doesn't really help/tell me much)
>
> It'd be really great if there would be a step by step instructions on how
> to get the examples running and how to set the system up in general. A lot
> of people use macs for development nowadays, so mac specific instructions
> and gotchas would be great (and i can help with this however i can)
>
> here are the steps i followed:
>
> $mkdir opencl
> $cd opencl
> $git clone git://github.com/tonyrog/cl.git
> $cd cl
> $make
> $cd examples
> $make
> $ cd ../..
> $erl -pa cl/ebin
> Erlang R15B03 (erts-5.9.3) [source] [64-bit] [smp:4:4] [async-threads:0]
> [hipe] [kernel-poll:false]
>
> Eshell V5.9.3 (abort with ^G)
> 1> cl_bandwidth:test().
> Trace/BPT trap: 5
>
>
> Thanks
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130117/b120476d/attachment.htm>
More information about the erlang-questions
mailing list