PageRenderTime 49ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/examples/Makefile

https://github.com/guicho271828/cl-mpi
Makefile | 60 lines | 29 code | 22 blank | 9 comment | 0 complexity | 7e0643f92cfec977c8e1fbe8d7780af6 MD5 | raw file
  1. #################################################
  2. #
  3. # Some demonstration programs for CL-MPI
  4. #
  5. SBCL = /usr/local/bin/sbcl
  6. CMUCL = /usr/local/bin/lisp
  7. # number of processes to use (you should use at least 2, as some of the demos require 2 processors)
  8. NUM_PROCS = 2
  9. sbcl-hello-world:
  10. $(SBCL) --eval "(progn (compile-file \"mpi-hello-world.lisp\")(sb-ext:quit))"
  11. mpirun -np $(NUM_PROCS) $(SBCL) --load "mpi-hello-world" --eval "(progn (mpi-hello-world)(sb-ext:quit))"
  12. cmucl-hello-world:
  13. $(CMUCL) -eval "(progn (compile-file \"mpi-hello-world.lisp\")(ext:quit))"
  14. mpirun -np $(NUM_PROCS) $(CMUCL) -load "mpi-hello-world" -eval "(progn (mpi-hello-world)(ext:quit))"
  15. sbcl-integrate:
  16. $(SBCL) --eval "(progn (compile-file \"trapezoidal-integration.lisp\")(sb-ext:quit))"
  17. mpirun -np $(NUM_PROCS) $(SBCL) --load "trapezoidal-integration"
  18. cmucl-integrate:
  19. $(CMUCL) -eval "(progn (compile-file \"trapezoidal-integration.lisp\")(ext:quit))"
  20. mpirun -np $(NUM_PROCS) $(CMUCL) -load "trapezoidal-integration"
  21. sbcl-mandel-bench1:
  22. $(SBCL) --eval "(progn (compile-file \"mandel-bench-1.lisp\")(sb-ext:quit))"
  23. mpirun -np $(NUM_PROCS) $(SBCL) --load "mandel-bench-1" --eval "(progn (main) (sb-ext:quit))"
  24. cmucl-mandel-bench1:
  25. $(CMUCL) -eval "(progn (compile-file \"mandel-bench-1.lisp\")(ext:quit))"
  26. mpirun -np $(NUM_PROCS) $(CMUCL) -load "mandel-bench-1" -eval "(progn (main) (ext:quit))"
  27. #########################################
  28. #
  29. # More "experimental" demos
  30. #
  31. sbcl-mandelbrot:
  32. $(SBCL) --eval "(progn (compile-file \"mandelbrot.lisp\")(sb-ext:quit))"
  33. mpirun -np $(NUM_PROCS) $(SBCL) --load "mandelbrot" --eval "(progn (mandel 100 5000 5000) (sb-ext:quit))"
  34. sbcl-evo-compress:
  35. $(SBCL) --eval "(progn (compile-file \"evo-lisa.lisp\")(sb-ext:quit))"
  36. mpirun -np $(NUM_PROCS) $(SBCL) --load "evo-lisa" --eval "(progn (evo-lisa:evo-lisa \"ml.gif\" 30 1000)(sb-ext:quit))"
  37. clean:
  38. rm -f *~ *.o *.fasl *.x86f *.sse2f