GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - arrayfire/arrayfire-go: Go bindings for arrayfire

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
src/arrayfire
src/arrayfire
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

ArrayFire Go Bindings

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:

Join the chat at https://gitter.im/arrayfire/arrayfire-go

Building arrayfire-go

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:

  • Binary Installers
  • Build from source

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

  • AF_PATH/lib
  • NVVM_LIB_PATH if using CUDA backend.

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

Contribute

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

  • https://github.com/golang/go/wiki/cgo
  • https://golang.org/cmd/cgo/
  • http://blog.golang.org/c-go-cgo

About

Go bindings for arrayfire

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

17 stars

Watchers

5 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.