sscal.sh 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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_pts+=( 1 1 1 1 1 1 :)
  29. m+=( 10 10 10 10 10 10 :)
  30. q+=( 14 14 14 14 14 14 :)
  31. tol+=( 1e-0 1e-0 1e-0 1e-0 1e-0 1e-0 :)
  32. depth+=( 15 15 15 15 15 15 :)
  33. unif+=( 0 0 0 0 0 0 :)
  34. adap+=( 0 0 0 0 0 0 :)
  35. max_time+=( 800 800 800 800 800 800 :)
  36. ###################################################################################################
  37. # NON-UNIFORM OCTREE, STOKES KERNEL, STRONG SCALABILITY #
  38. ###################################################################################################
  39. # m=10, q=14, octants=
  40. nodes+=( 1 8 64 512 4096 32768 :)
  41. cores+=( ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} :)
  42. mpi_proc+=( 1 8 64 512 4096 32768 :)
  43. threads+=( ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} ${CORES} :)
  44. testcase+=( 3 3 3 3 3 3 :)
  45. n_pts+=( $((8**7)) $((8**7)) $((8**7)) $((8**7)) $((8**7)) $((8**7)) :)
  46. m_pts+=( 1 1 1 1 1 1 :)
  47. m+=( 10 10 10 10 10 10 :)
  48. q+=( 14 14 14 14 14 14 :)
  49. tol+=( 1e-0 1e-0 1e-0 1e-0 1e-0 1e-0 :)
  50. depth+=( 15 15 15 15 15 15 :)
  51. unif+=( 0 0 0 0 0 0 :)
  52. adap+=( 0 0 0 0 0 0 :)
  53. max_time+=( 2400 2400 2400 2400 2400 2400 :)
  54. ###################################################################################################
  55. # Export arrays
  56. export nodes_="$(declare -p nodes)";
  57. export cores_="$(declare -p cores)";
  58. export mpi_proc_="$(declare -p mpi_proc)";
  59. export threads_="$(declare -p threads)";
  60. export testcase_="$(declare -p testcase)";
  61. export n_pts_="$(declare -p n_pts)";
  62. export m_pts_="$(declare -p m_pts)";
  63. export m_="$(declare -p m)";
  64. export q_="$(declare -p q)";
  65. export tol_="$(declare -p tol)";
  66. export depth_="$(declare -p depth)";
  67. export unif_="$(declare -p unif)";
  68. export adap_="$(declare -p adap)";
  69. export max_time_="$(declare -p max_time)";
  70. export RESULT_FNAME=$(basename ${0%.*}).out;
  71. export WORK_DIR=$(dirname ${PWD}/$0)/..
  72. cd ${WORK_DIR}
  73. TERM_WIDTH=$(stty size | cut -d ' ' -f 2)
  74. ./scripts/.submit_jobs.sh | cut -b -${TERM_WIDTH}