Skip to content
Pavan Yalamanchili edited this page Aug 31, 2015 · 8 revisions

Welcome to the arrayfire-python wiki!

Building the ArrayFire library

Please refer to this wiki for build instructions. If you are facing any problems with the ArrayFire library, raise an issue over here

Setting the environment variables

If you have not installed the ArrayFire library in your system paths, please make sure the following environment variables are exported.

On Linux

export LD_LIBRARY_PATH=/path/to/arrayfire/lib:$LD_LIBRARY_PATH

You can put this in your ~/.bashrc or the equivalent file to make it persistent.

On OSX

export DYLD_LIBRARY_PATH=/path/to/arrayfire/lib:$DYLD_LIBRARY_PATH

You can put this in your ~/.bashrc or the equivalent file to make it persistent.

On Windows

To allow DLL detection for all users, it needs to be added to the system PATH variable. For this, follow the steps:

  1. Open Advanced System Settings:
    • Windows 8: Move the Mouse pointer to the bottom right corner of the screen, Right click, choose System. Then click "Advanced System Settings"
    • Windows 7: Open the Start Menu and Right Click on "Computer". Then choose Properties and click "Advanced System Settings"
  2. In Advanced System Settings window, click on Advanced tab
  3. Click on Environment Variables, then under System Variables, find PATH, and click on it.
  4. In edit mode, append %AF_PATH%/lib. NOTE: Ensure that there is a semi-colon separating %AF_PATH%/lib from any existing content (e.g. EXISTING_PATHS;%AF_PATH%/lib;) otherwise other software may not function correctly.
Clone this wiki locally