sscal.sh 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/bin/bash
  2. CORES=16;
  3. export EXEC=examples/bin/fmm_cheb
  4. # Set run parameters
  5. declare -a nodes=();
  6. declare -a cores=();
  7. declare -a mpi_proc=();
  8. declare -a threads=();
  9. declare -a testcase=();
  10. declare -a n_pts=();
  11. declare -a m=();
  12. declare -a q=();
  13. declare -a tol=();
  14. declare -a depth=();
  15. declare -a unif=();
  16. declare -a adap=();
  17. declare -a max_time=();
  18. ###################################################################################################
  19. # NON-UNIFORM OCTREE, LAPLACE KERNEL, STRONG SCALABILITY #
  20. ###################################################################################################
  21. # m=10, q=14, octants=
  22. nodes+=( 1 8 64 512 4096 32768 :)
  23. cores+=( ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} :)
  24. mpi_proc+=( 4 32 256 2048 16384 16384 :)
  25. threads+=( ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} :)
  26. testcase+=( 1 1 1 1 1 1 :)
  27. n_pts+=( $((8**7)) $((8**7)) $((8**7)) $((8**7)) $((8**7)) $((8**7)) :)
  28. m+=( 10 10 10 10 10 10 :)
  29. q+=( 14 14 14 14 14 14 :)
  30. tol+=( 1e-0 1e-0 1e-0 1e-0 1e-0 1e-0 :)
  31. depth+=( 15 15 15 15 15 15 :)
  32. unif+=( 0 0 0 0 0 0 :)
  33. adap+=( 0 0 0 0 0 0 :)
  34. max_time+=( 800 800 800 800 800 800 :)
  35. ###################################################################################################
  36. # NON-UNIFORM OCTREE, STOKES KERNEL, STRONG SCALABILITY #
  37. ###################################################################################################
  38. # m=10, q=14, octants=
  39. nodes+=( 1 8 64 512 4096 32768 :)
  40. cores+=( ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} :)
  41. mpi_proc+=( 1 8 64 512 4096 32768 :)
  42. threads+=( ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} :)
  43. testcase+=( 3 3 3 3 3 3 :)
  44. n_pts+=( $((8**7)) $((8**7)) $((8**7)) $((8**7)) $((8**7)) $((8**7)) :)
  45. m+=( 10 10 10 10 10 10 :)
  46. q+=( 14 14 14 14 14 14 :)
  47. tol+=( 1e-0 1e-0 1e-0 1e-0 1e-0 1e-0 :)
  48. depth+=( 15 15 15 15 15 15 :)
  49. unif+=( 0 0 0 0 0 0 :)
  50. adap+=( 0 0 0 0 0 0 :)
  51. max_time+=( 2400 2400 2400 2400 2400 2400 :)
  52. ###################################################################################################
  53. # Export arrays
  54. export nodes_="$(declare -p nodes)";
  55. export cores_="$(declare -p cores)";
  56. export mpi_proc_="$(declare -p mpi_proc)";
  57. export threads_="$(declare -p threads)";
  58. export testcase_="$(declare -p testcase)";
  59. export n_pts_="$(declare -p n_pts)";
  60. export m_="$(declare -p m)";
  61. export q_="$(declare -p q)";
  62. export tol_="$(declare -p tol)";
  63. export depth_="$(declare -p depth)";
  64. export unif_="$(declare -p unif)";
  65. export adap_="$(declare -p adap)";
  66. export max_time_="$(declare -p max_time)";
  67. export RESULT_FNAME=$(basename ${0%.*}).out;
  68. export WORK_DIR=$(dirname ${PWD}/$0)/..
  69. cd ${WORK_DIR}
  70. TERM_WIDTH=$(stty size | cut -d ' ' -f 2)
  71. ./scripts/.submit_jobs.sh | cut -b -${TERM_WIDTH}