Fluent 单机多核并行问题

Fluent 单机多核并行的问题

 

1 Windows 平台

 

Fluent 在 Windows 下的单机多核并行很简单,加上启动参数即可。

 

fluent 3ddp -t4

 

启动之后,可以看到多个进程。

 

Fluent 单机多核并行问题_第1张图片

 

2 Linux 平台

 


目前暂时尝试过的方法:

运行前的准备:

2.1 ssh 服务配置

设置成 key 认证的方式

2.2 写 hosts file

比如运行两个进程

127.0.0.1
127.0.0.1


2.3 运行 fluent

fluent 3ddp -t2 -cns=hosts 3d

下面是命令输出信息:


/opt/progs/Fluent.Inc/fluent6.3.26/bin/fluent -r6.3.26 -g -t 2 -cnf=hosts 2d
/opt/progs/Fluent.Inc/fluent6.3.26/bin/fluent: line 2284: domainname: command not found
/opt/progs/Fluent.Inc/fluent6.3.26/cortex/lnamd64/cortex.3.7.3 -f fluent -g (fluent "2d -pethernet  -host -r6.3.26 -t2 -mpi=hp -cnf=hosts -path/opt/progs/Fluent.Inc")
Loading "/opt/progs/Fluent.Inc/fluent6.3.26/lib/fluent.dmp.114-64"
Done.
/opt/progs/Fluent.Inc/fluent6.3.26/bin/fluent -r6.3.26 2d -pethernet -host -t2 -mpi=hp -cnf=hosts -path/opt/progs/Fluent.Inc -cx xx:54999:39669
Starting /opt/progs/Fluent.Inc/fluent6.3.26/lnamd64/2d_host/fluent.6.3.26 host -cx xx:54999:39669 "(list (rpsetvar (QUOTE parallel/function) "fluent 2d -node -r6.3.26 -t2 -pethernet -mpi=hp -cnf=hosts ") (rpsetvar (QUOTE parallel/rhost) "") (rpsetvar (QUOTE parallel/ruser) "") (rpsetvar (QUOTE parallel/nprocs_string) "2") (rpsetvar (QUOTE parallel/auto-spawn?) #t) (rpsetvar (QUOTE parallel/trace-level) 0) (rpsetvar (QUOTE parallel/remote-shell) 0) (rpsetvar (QUOTE parallel/path) "/opt/progs/Fluent.Inc") (rpsetvar (QUOTE parallel/hostsfile) "hosts") )"

     Welcome to Fluent 6.3.26

     Copyright 2006 Fluent Inc.
     All Rights Reserved

Loading "/opt/progs/Fluent.Inc/fluent6.3.26/lib/flprim.dmp.1119-64"
Done.
 
Host spawning Node 0 on machine "xx" (unix).
/opt/progs/Fluent.Inc/fluent6.3.26/bin/fluent -r6.3.26 2d -node -t2 -pethernet -mpi=hp -cnf=hosts -mport 127.0.1.1:127.0.1.1:49900:0
Starting /opt/progs/Fluent.Inc/fluent6.3.26/multiport/mpi/lnamd64/hp/bin/mpirun -TCP -f /tmp/fluent-appfile.25571
HP-MPI licensed for execution of Fluent.

------------------------------------------------------------------------------
ID     Comm.   Hostname        O.S.        PID     Mach ID HW ID   Name       
------------------------------------------------------------------------------
host   net    xx      Linux-64    25566   0       3       Fluent Host
n1     hp      xx      Linux-64    25718   0       1       Fluent Node
n0*    hp      xx      Linux-64    25717   0       0       Fluent Node

Selected interconnect: ethernet (intra-machine comm. may use shared memory)
------------------------------------------------------------------------------



Cleanup script file is /opt/devel/cleanup-fluent-xx-25465

你可能感兴趣的:(Linux,CFD,software)