tissue333
  • Introduction
  • JPEG and Neural Network
    • Progress
    • TodoList
  • Findings
    • Why inconsistensy in backward propagation (pytorch)?
    • GOMP_4.0 not found
    • How to support parallel computing with constant tensor in a self-defined layer?
  • Seashell
    • Review
    • Spatial
    • Dahlia Programmability
    • FuTil
    • FuTil Paper Review
  • Configurable DNN to FPGA
    • General Idea
    • Event Queue Dialect (MLIR)
  • Progress Log
  • Random
    • ubuntu
Powered by GitBook
On this page
  • Setup AWS
  • How to Run Spatial on AWS

Was this helpful?

  1. Seashell

Spatial

PreviousReviewNextDahlia Programmability

Last updated 5 years ago

Was this helpful?

Setup AWS

  • scp chazz

  • scp ~/.aws

  • scp ~/.ssh/*.pem

How to Run Spatial on AWS

  • Spatial requires .

    • CentOS:

      • CentOS cannot install these package with gcc. Compiling from source and download_prerequisitesalso get stuck for I don't know why. Let's just download and compile.

      • yum install gmp-devel; (this must be first step, otherwise libisl cannot find bmp.h)

      • download , install with ./configure && make && sudo make install. Default installed in /usr/local/lib/. So add export LD_LIBRARY_PATH=/usr/local/lib to ~/.bash_profile.

      • pkg-config: (sudo yum -y install glib-devel.) download and ./configure --with-internal-glib && make && sudo make install.

    • I love Ubuntu

  • Simulation should work now.

    • sbt(need to install java and then sbt)

    • compile

    • runMain HelloSpatial --sim

  • Set up aws-fpga (use version 14, the server seems have strange version)

    • export AWS_HOME=~/spatials/aws-fpga/
      source $AWS_HOME/hdk_setup.sh
      sudo source $AWS_HOME/sdk_setup.sh
  • Compile

    • export SPATIAL_HOME=pwd/spatial-quickstart

    • export DATA_HOME=pwd/spatial-lang/apps/data/; modify $DATA to sys.env("DATA_HOME")

    • sbt

    • runMain appName --synth --fpga=AWS_F1

  • Generate

    • goto gen/appName and change build.sbt: scalatest 2.2.5 => 3.05; scalacheck 1.12.4 => 1.13.4

    • java.lang.OutOfMemoryError => export _JAVA_OPTIONS="-Xmx4g" (increase heap)

    • make aws-F1-afi | tee make.log

pkg-config, libisl, libbmp
libisl
pkg-config
bitstream