README.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2019-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. #
  5. # StarPU is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # StarPU is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. #
  16. ######################
  17. ##### Maxeler ######
  18. ######################
  19. $ export XILINXD_LICENSE_FILE=2100@jumax
  20. $ module load vivado maxcompiler
  21. $ module load devtoolset/8
  22. To build the JAVA program: (for kernel and Manager (.maxj))
  23. $ cd starpu/tests/
  24. $ maxjc -1.7 -cp $MAXCLASSPATH fpga
  25. To run the Java program to generate a DFE implementation (a .max file)
  26. that can be called from a StarPU/FPGA application and slic headers
  27. (.h) for simulation:
  28. $ java -XX:+UseSerialGC -Xmx2048m -cp $MAXCLASSPATH:. fpga.MyTasksManager DFEModel=MAIA maxFileName=MyTasks target=DFE_SIM
  29. $ cp MyTasks_MAX5C_DFE_SIM/results/*{.max,.h} fpga
  30. $ cd fpga
  31. To build the slic object file (simulation):
  32. $ sliccompile MyTasks.max
  33. To start the simulation:
  34. $ maxcompilersim -c LIMA -n $USER-MyTasks restart
  35. $ export LD_LIBRARY_PATH=$MAXELEROSDIR/lib:$LD_LIBRARY_PATH
  36. $ export SLIC_CONF="use_simulation=$USER-MyTasks"
  37. PS: To stop simulation
  38. $ maxcompilersim -c LIMA -n $USER-MyTasks stop
  39. #################################
  40. ##### StarPU with Maxeler ######
  41. #################################
  42. $ ./autogen.sh
  43. $ ../configure --prefix=$PWD/../install --with-fpga --disable-link-with-riffa --disable-fortran
  44. $ make
  45. # $ make install
  46. To test the code (.c):
  47. $ ./tests/fpga/max_fpga