作者wtula (http://kuso.cc/95T )
看板Linux
标题Re: [问题] 平行运算的问题
时间Tue Jun 3 09:51:23 2008
自问自答一下
前提的作法都没错
但是根据另一份文提到
http://www.osc.edu/supercomputing/computing/ipf/
"To control the number of processors, set the environment variables
OMP_NUM_THREADS.
If the number of available processors is less than
OMP_NUM_THREADS, then at least one processor will run multiple threads. "
而系统上没有queuing system
所以当很多人用的时候 自然只会拿到一颗cpu而已
※ 引述《wtula (http://kuso.cc/95T )》之铭言:
: 我用ifort(intel fortran compiler)
: 加上 -parallel 参数将序列程式码自动平行化
: 然後export OMP_NUM_THREADS=2
: 再执行./a.out
: 但是系统上还是只出现一个程序(process)
: 也就是他还是不用两个cpu帮我计算
: 基本上我已经参考了
: http://www.fortran.cn/bbs/dispbbs.asp?boardID=2&ID=1293&page=5
: http://www.msi.umn.edu/bscl/nih/start/altix/
: http://www.afrl.hpc.mil/overall/faq/altixfaqs.php
: 这台主机是24cpus 非cluster 没有PBS或其他排程系统
: uname -a 如下
: Linux Altix3700-1 2.6.5-7.244-sn2 #1 SMP Mon Dec 12 18:32:25 UTC 2005
: ia64 ia64 ia64 GNU/Linux
: 请问有人知道我哪里稿错了吗?谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 221.0.186.14