visgen: add nthreads option to execute visgen with mpirun