README 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Contents
  2. ========
  3. * Installing Julia
  4. * Installing StarPU module for Julia
  5. * Running Examples
  6. Installing Julia
  7. ----------------
  8. Julia version 1.3+ is required and can be downloaded from
  9. https://julialang.org/downloads/.
  10. Installing StarPU module for Julia
  11. ----------------------------------
  12. First, build the jlstarpu_c_wrapper library:
  13. $ make
  14. Then, you need to add the lib/ directory to your library path and the julia/
  15. directory to your Julia load path:
  16. $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/src/.lib
  17. $ export JULIA_LOAD_PATH=$PWD/src:$JULIA_LOAD_PATH
  18. This step can also be done by sourcing the setenv.sh script:
  19. $ . setenv.sh
  20. Running Examples
  21. ----------------
  22. You can find several examples in the examples/ directory.
  23. For each example X, three versions are provided:
  24. - X.c: Original C+starpu code
  25. - X_native.jl: Native Julia version (without StarPU)
  26. - X.jl: Julia version using StarPU
  27. To run the original C+StarPU code:
  28. $ make cstarpu.dat
  29. To run the native Julia version:
  30. $ make julia_native.dat
  31. To run the Julia version using StarPU:
  32. $ make julia_generatedc.dat