Changeset 1528 for trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
- Timestamp:
- 05/11/20 08:37:51 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r1527 r1528 661 661 eval ${comp}_PROC_OMP=0 662 662 663 # DEP is the factor to increase the number of cores per process 664 eval ${comp}_PROC_DEP=0 665 666 # DEDICATED is the flag to activate the use of dedicated node for XIOS server only 667 eval ${comp}_OK_DEDICATED=0 668 663 669 # Only if we really have an executable for the component : 664 670 if ( [ "X${ExeNameIn}" != X\"\" ] && [ "X${ExeNameIn}" != "Xinca.dat" ] ) ; then … … 677 683 eval ${comp}_PROC_OMP=1 678 684 eval ${comp}_PROC_NOD=1 685 eval ${comp}_PROC_DEP=1 679 686 680 687 eval NbElts=\${#config_Executable_${comp}[@]} 681 682 688 if [ ${NbElts} -gt 2 ] ; then 683 689 # … … 710 716 OK_PARA_MPI=true 711 717 ;; 718 *[dD][eE][pP]*) 719 # Read DEP parameter for composante 720 eval ${comp}_PROC_DEP=$( echo ${tempvar} | tr '[a-z]' '[A-Z]' | sed -e "s/DEP//" ) 721 ;; 722 *[dD][eE][dD][iI][cC][aA][tT][eE][dD]*) 723 # Read DEDICATED parameter for composante 724 eval ${comp}_OK_DEDICATED=1 712 725 esac 713 726 (( i = i + 1 )) … … 736 749 fi 737 750 fi 751 if ( [ ${comp}_OK_DEDICATED -eq 1 ] && [ "${comp}" != "IOS" ] ) ; then 752 IGCM_debug_Print 2 "Error using DEDICATED parameter !!!" 753 IGCM_debug_Exit "DEDICATED parameter is only available for IOS component " 754 IGCM_debug_Exit "Check your config.card. Exit now" 755 IGCM_debug_Verif_Exit 756 fi 738 757 739 758 eval tempvarMPI=\${${comp}_PROC_MPI} 740 759 eval tempvarNOD=\${${comp}_PROC_NOD} 741 760 eval tempvarOMP=\${${comp}_PROC_OMP} 761 eval tempvarDEP=\${${comp}_PROC_DEP} 742 762 743 763 # set OMP mode if more than 1 OMP thread. … … 751 771 (( coreNumber = coreNumber + tempvarNOD * NB_CORE_PER_NODE )) 752 772 else 753 (( coreNumber = coreNumber + tempvarMPI * tempvarNOD * tempvarOMP ))773 (( coreNumber = coreNumber + tempvarMPI * tempvarNOD * tempvarOMP * tempvarDEP )) 754 774 fi 755 775 # SUM UP NUMBER OF MPI TASKS
Note: See TracChangeset
for help on using the changeset viewer.