[SCore-users-jp] Omni OpenMPについて

kameyama @ pccluster.org kameyama @ pccluster.org
2002年 3月 25日 (月) 22:08:57 JST


亀山です.

In article <200203231113.AA00894 @ hiroyuki.fasol.fujitsu.com> Hiroyuki KOUCHI <kouchi @ fasol.fujitsu.com> wrotes:
> 
> SCore-D 4.2.1 connected.
> <1> SCORE-D:WARNING Unable to change directory (/home/hiroyuki), 
> 	and set to /var/scored/singleuser/1000/jobs/jid-1.
> <0:0> SCORE: 2 nodes (2x1) ready.
> t_start() error:gettimeofday: Bad address
> fatal(id=0):_ompsm_scash_fatal: shared arg stack overflow

Omni の document
    /opt/omni/doc/omni-scash-extension.html
によると,

<dt> OMNI_SCASH_ARGS_SIZE
<dd> Specifies the argument memory size of each thread.
The size is in bytes as default.
You can specifies in the unit of kilo using "k" and the unit of mega
using "m". For example, "1k" means 1024 bytes.

If program output "shared arg stack overflow" message, should be set
larger size to OMNI_SCASH_ARGS_SIZE. OMNI_SCASH_ARGS_SIZE is 4K byte
as default.

だそうです.
この環境変数を適当に設定すれば最後のエラーはなくなると思います.
gettimeofday のほうは
    #pragma omp threadprivate (time_start)
    #pragma omp threadprivate (time_stop)
を追加して, time_start/time_stop を threadprivate にする必要があるようです.

(main_calc() で x, y の型が int なのは意図したものであるか不明ですけど...)

                       from Kameyama Toyohisa



SCore-users-jp メーリングリストの案内