Step 1: Preparing and Setting up the SDAccel Environment

In this step, you will setup SDx™ to run in command line, and clone the Github repository for SDAccel™.
  1. Launch a terminal and source the settings scripts found in the SDx environment using the command:
    source <SDx_install_location>/<version>/settings64.csh
    or
    source <SDx_install_location>/<version>/settings64.sh

    This allows you to run the SDx command lines without the need to use the GUI.

  2. Clone the design from the Github repository to a workspace of your choice by using the command:
    git clone https://github.com/Xilinx/SDAccel_Examples <workspace>/examples
    Note: This Github repository totals to be around 400MB in size. Make sure you have sufficient space on a local or remote disk to ensure that it can be completely downloaded.
  3. Once the download is complete navigate to the vadd directory by using the following command:
    cd <workspace>/examples/getting_started/misc/vadd
    Once in this directory, run the ls command and view the files. You should get something like this in return:
    [sdaccel@localhost vadd ]$ ls
    Makefile    README.md    description.json src
    If you run the ls on the src directory, you should get the following:
    [sdaccel@localhost vadd ]$ ls src
    host.cpp    krnl_vadd.cl    vadd.h