File: README.md

package info (click to toggle)
arrayfire 3.3.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 109,016 kB
  • sloc: cpp: 127,909; lisp: 6,878; python: 3,923; ansic: 1,051; sh: 347; makefile: 338; xml: 175
file content (50 lines) | stat: -rw-r--r-- 2,192 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ArrayFire example code build instructions
=====

The source code contained within this directory can be compiled within the 
ArrayFire source tree or as part of a stand-alone project. 

## Building examples while compiling ArrayFire

By default, ArrayFire will build the examples as part of the standard build
process; however, the compiled examples are not packaged in the ArrayFire
installer. After compiling ArrayFire, the examples will be in subdirectories
located in the `build/examples` directory.

If you wish to disable example compilation, simply set the `BUILD_EXAMPLES`
variable to `OFF` in the CMake GUI or `ccmake` curses wrapper. If you are
using the command-line version of `cmake`, simply specify 
`-DBUILD_EXAMPLES=OFF` as an argument.

## Building examples as a stand-alone project

Once ArrayFire is installed on your machine, the contents of this directory
will be copied to a documentation directory on your computer. For example,
on Linux this will be `/usr/share/doc/arrayfire`.

To compile the examples, simply copy the ArrayFire example directory to
a directory in which you have write permissions, and compile the examples
using `cmake` and `make`:

    cp -r /usr/share/doc/arrayfire/examples ~/arrayfire_examples
    cd ~/arrayfire_examples
    mkdir build
    cd build
    cmake ..
    make
    
If ArrayFire is not installed to a system directory, you will need to specify
the directory which contains the `ArrayFireConfig.cmake` as an argument to the
`cmake` invocation. This configuration file is located within the 
`share/ArrayFire` subdirectory of the ArrayFire installation. For example,
if you were to install ArrayFire to the `local` directory within your home
folder, the invocation of `cmake` above would be replaced with the following:

    cmake -DArrayFire_ROOT=~/local/share/ArrayFire/ ..
    
### Support and Contact Info

* Google Groups: https://groups.google.com/forum/#!forum/arrayfire-users
* ArrayFire Services:  [Consulting](http://arrayfire.com/consulting/)  |  [Support](http://arrayfire.com/support/)   |  [Training](http://arrayfire.com/training/)
* ArrayFire Blogs: http://arrayfire.com/blog/
* Email: <mailto:technical@arrayfire.com>