README.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. The Makefiles then build the program automatically. They do the equivalent of
  23. the following, written here only for information:
  24. Building the JAVA program: (for kernel and Manager (.maxj))
  25. $ cd starpu/tests/
  26. $ maxjc -1.7 -cp $MAXCLASSPATH fpga
  27. Running the Java program to generate a DFE implementation (a .max file)
  28. that can be called from a StarPU/FPGA application and slic headers
  29. (.h) for simulation:
  30. $ java -XX:+UseSerialGC -Xmx2048m -cp $MAXCLASSPATH:. fpga.MyTasksManager DFEModel=MAIA maxFileName=MyTasks target=DFE_SIM
  31. $ cp MyTasks_MAX5C_DFE_SIM/results/*{.max,.h} fpga
  32. $ cd fpga
  33. Building the slic object file (simulation):
  34. $ sliccompile MyTasks.max
  35. Once built, to start the simulation:
  36. $ maxcompilersim -c LIMA -n $USER-MyTasks restart
  37. $ export LD_LIBRARY_PATH=$MAXELEROSDIR/lib:$LD_LIBRARY_PATH
  38. $ export SLIC_CONF="use_simulation=$USER-MyTasks"
  39. PS: To stop simulation
  40. $ maxcompilersim -c LIMA -n $USER-MyTasks stop
  41. #################################
  42. ##### StarPU with Maxeler ######
  43. #################################
  44. $ ./autogen.sh
  45. $ ../configure --prefix=$PWD/../install --with-fpga --disable-link-with-riffa --disable-fortran
  46. $ make
  47. # $ make install
  48. To test the code (.c):
  49. $ ./tests/fpga/max_fpga