Changeset 5101 for LMDZ6/branches/Amaury_dev/libf/dyn3dmem/times.F90
- Timestamp:
- Jul 23, 2024, 8:22:55 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/dyn3dmem/times.F90
r5093 r5101 61 61 62 62 timer_running(no_timer)=0 63 callcpu_time(last_time(no_timer))63 CALL cpu_time(last_time(no_timer)) 64 64 65 65 endif … … 79 79 80 80 timer_running(no_timer)=timer_running(no_timer)-last_time(no_timer) 81 callcpu_time(last_time(no_timer))81 CALL cpu_time(last_time(no_timer)) 82 82 timer_running(no_timer)=timer_running(no_timer)+last_time(no_timer) 83 83 endif … … 95 95 endif 96 96 97 callcpu_time(last_time(no_timer))97 CALL cpu_time(last_time(no_timer)) 98 98 endif 99 99 … … 116 116 117 117 timer_running(no_timer)=timer_running(no_timer)-last_time(no_timer) 118 callcpu_time(last_time(no_timer))118 CALL cpu_time(last_time(no_timer)) 119 119 timer_running(no_timer)=timer_running(no_timer)+last_time(no_timer) 120 120 … … 154 154 155 155 tmp_table(:,:)=timer_table(:,:,mpi_rank) 156 callmpi_allgather(tmp_table(1,1),data_size,MPI_REAL_LMDZ,timer_table(1,1,0),data_size,MPI_REAL_LMDZ,COMM_LMDZ,ierr)156 CALL mpi_allgather(tmp_table(1,1),data_size,MPI_REAL_LMDZ,timer_table(1,1,0),data_size,MPI_REAL_LMDZ,COMM_LMDZ,ierr) 157 157 tmp_table(:,:)=timer_table_sqr(:,:,mpi_rank) 158 callmpi_allgather(tmp_table(1,1),data_size,MPI_REAL_LMDZ,timer_table_sqr(1,1,0),data_size,MPI_REAL_LMDZ,COMM_LMDZ,ierr)158 CALL mpi_allgather(tmp_table(1,1),data_size,MPI_REAL_LMDZ,timer_table_sqr(1,1,0),data_size,MPI_REAL_LMDZ,COMM_LMDZ,ierr) 159 159 deallocate(tmp_table) 160 160 … … 185 185 186 186 tmp_table(:,:)=timer_average(:,:,mpi_rank) 187 callmpi_allgather(tmp_table(1,1),data_size,MPI_REAL_LMDZ,timer_average(1,1,0),data_size,MPI_REAL_LMDZ,COMM_LMDZ,ierr)187 CALL mpi_allgather(tmp_table(1,1),data_size,MPI_REAL_LMDZ,timer_average(1,1,0),data_size,MPI_REAL_LMDZ,COMM_LMDZ,ierr) 188 188 tmp_table(:,:)=timer_delta(:,:,mpi_rank) 189 callmpi_allgather(tmp_table(1,1),data_size,MPI_REAL_LMDZ,timer_delta(1,1,0),data_size,MPI_REAL_LMDZ,COMM_LMDZ,ierr)189 CALL mpi_allgather(tmp_table(1,1),data_size,MPI_REAL_LMDZ,timer_delta(1,1,0),data_size,MPI_REAL_LMDZ,COMM_LMDZ,ierr) 190 190 tmp_iter(:,:)=timer_iteration(:,:,mpi_rank) 191 callmpi_allgather(tmp_iter(1,1),data_size,MPI_INTEGER,timer_iteration(1,1,0),data_size,MPI_INTEGER,COMM_LMDZ,ierr)191 CALL mpi_allgather(tmp_iter(1,1),data_size,MPI_INTEGER,timer_iteration(1,1,0),data_size,MPI_INTEGER,COMM_LMDZ,ierr) 192 192 deallocate(tmp_table) 193 193 … … 203 203 AllTimer_IsActive=.TRUE. 204 204 if (AllTimer_IsActive) then 205 callsystem_clock(count,count_rate,count_max)206 callcpu_time(Last_cpuCount)205 CALL system_clock(count,count_rate,count_max) 206 CALL cpu_time(Last_cpuCount) 207 207 Last_Count=count 208 208 endif … … 214 214 integer :: count,count_rate,count_max 215 215 216 callsystem_clock(count,count_rate,count_max)216 CALL system_clock(count,count_rate,count_max) 217 217 if (Count>=Last_Count) then 218 218 DiffTime=(1.*(Count-last_Count))/count_rate … … 228 228 real :: Count 229 229 230 callcpu_time(Count)230 CALL cpu_time(Count) 231 231 DiffCpuTime=Count-Last_cpuCount 232 232 Last_cpuCount=Count
Note: See TracChangeset
for help on using the changeset viewer.