linux下time -v 给出-v : command not found
(base) skt1faker@SKT1Faker:~/my_procedure/homework/Parallel/finish$ time -v mpirun -np 2 ./eightt.exe
-v: command not found
real 0m0.407s
user 0m0.078s
sys 0m0.034s
这里显示出现了问题,将-v是为了指令,解决方法就是使用下面的命令
(base) skt1faker@SKT1Faker:~/my_procedure/homework/Parallel/finish$ /usr/bin/time -v mpirun -np 2 ./eightt.exe
the process_id = 1 calculate num = 1378
the process_id = 0 calculate num = 1302
ans = 2680
Command being timed: "mpirun -np 2 ./eightt.exe"
User time (seconds): 3.55
System time (seconds): 0.04
Percent of CPU this job got: 196%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:01.83
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 8768
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 130
Minor (reclaiming a frame) page faults: 3605
Voluntary context switches: 99
Involuntary context switches: 806
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
原因未知,如果小伙伴有更好的办法或者知道这是什么原因可以评论一下!!!