# StarPU --- Runtime system for heterogeneous multicore architectures.
#
# Copyright (C) 2019-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
#
# StarPU is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or (at
# your option) any later version.
#
# StarPU is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See the GNU Lesser General Public License in COPYING.LGPL for more details.
#
######################
##### Maxeler ######
######################
$ export XILINXD_LICENSE_FILE=2100@jumax
$ module load vivado maxcompiler
$ module load devtoolset/8
To build the JAVA program: (for kernel and Manager (.maxj))
$ cd starpu/tests/
$ maxjc -1.7 -cp $MAXCLASSPATH fpga
To run the Java program to generate a DFE implementation (a .max file)
that can be called from a StarPU/FPGA application and slic headers
(.h) for simulation:
$ java -XX:+UseSerialGC -Xmx2048m -cp $MAXCLASSPATH:. fpga.StreamFMAManager DFEModel=MAIA maxFileName=StreamFMA target=DFE_SIM
$ cp StreamFMA_MAX5C_DFE_SIM/results/*{.max,.h} fpga
$ cd fpga
To build the slic object file (simulation):
$ sliccompile StreamFMA.max
To start the simulation:
$ maxcompilersim -c LIMA -n $USER-StreamFMA restart
$ export LD_LIBRARY_PATH=$MAXELEROSDIR/lib:$LD_LIBRARY_PATH
$ export SLIC_CONF="use_simulation=$USER-StreamFMA"
PS: To stop simulation
$ maxcompilersim -c LIMA -n $USER-StreamFMA stop
#################################
##### StarPU with Maxeler ######
#################################
$ ./autogen.sh
$ ../configure --prefix=$PWD/../install --with-fpga --disable-link-with-riffa --disable-fortran
$ make
# $ make install
To test the code (.c):
$ ./tests/fpga/max_fpga