A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/arrayfire/arrayfire-go below:

arrayfire/arrayfire-go: Go bindings for arrayfire

This project is still in the prototype phase. Please follow the discussion on this issue. You can also chat with us at the following locations:

Install ArrayFire libraries

Ensure you have the ArrayFire library installed on your system.

You can get the ArrayFire library from one of the following ways:

Set Environment variables

Point AF_PATH to the installed location of ArrayFire.

$ export AF_PATH=/path/to/arrayfire

If using the CUDA backend, you will need to include path to nvvm

$ export NVVM_LIB_PATH=/path/to/cuda/nvvm/lib64 # use nvvm/lib for OSX or 32 bit systems

Point GOPATH to the location of arrayfire-go

Export LD_LIBRARY_PATH on Linux and DYLD_LIBRARY_PATH on OSX to point to

Building with arrayfire libraries

For ArrayFire 3.2 and above:

$ export CGO_CFLAGS="-I$AF_PATH/include"
$ export CGO_LDFLAGS="-L$AF_PATH/lib -laf -lforge"
$ go build

For older versions replace -laf with either -lafcuda, -lafopencl or -lafcpu

If you want to contribute to this project, start here:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4