10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-20 13:02:36 +01:00

Better load balancing in fci and cassd

This commit is contained in:
Anthony Scemama 2016-11-16 13:59:24 +01:00
parent 9e88e7f0de
commit 4ab7c939e9
2 changed files with 9 additions and 6 deletions

View File

@ -145,9 +145,9 @@ subroutine ZMQ_selection(N_in, pt2)
step = int(5000000.d0 / dble(N_int * N_states * elec_num * elec_num * mo_tot_num * mo_tot_num ))
step = max(1,step)
do i= N_det_generators, 1, -step
i_generator_start = max(i-step+1,1)
i_generator_max = i
do i= 1, N_det_generators,step
i_generator_start = i
i_generator_max = min(i+step-1,N_det_generators)
write(task,*) i_generator_start, i_generator_max, 1, N
call add_task_to_taskserver(zmq_to_qp_run_socket,task)
end do

View File

@ -137,9 +137,12 @@ subroutine ZMQ_selection(N_in, pt2)
step = int(5000000.d0 / dble(N_int * N_states * elec_num * elec_num * mo_tot_num * mo_tot_num ))
step = max(1,step)
do i= N_det_generators, 1, -step
i_generator_start = max(i-step+1,1)
i_generator_max = i
! do i= N_det_generators, 1, -step
! i_generator_start = max(i-step+1,1)
! i_generator_max = i
do i= 1, N_det_generators,step
i_generator_start = i
i_generator_max = min(i+step-1,N_det_generators)
write(task,*) i_generator_start, i_generator_max, 1, N
call add_task_to_taskserver(zmq_to_qp_run_socket,task)
end do