CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   problem loading UDF library in parallel cluster (http://www.cfd-online.com/Forums/fluent/49401-problem-loading-udf-library-parallel-cluster.html)

Veera Gutti October 1, 2008 15:12

problem loading UDF library in parallel cluster
 
I am trying to use udf's for FLUENT in parallel linux cluster.I am having trouble loading compiled UDF libraries. The UDF compilation and library loading is working good in serial mode (no problem) on the linux cluster.

In parallel computing, the compilation is going good (I hope). Here is the compilation log

or d in lnamd64/[23]*; do \

( \

cd $d; \

for f in ../../src/*.[ch] ../../src/makefile; do \

if [ ! -f `basename $f` ]; then \

echo "# linking to" $f "in" $d; \

ln -s $f .; \

fi; \

done; \

echo ""; \

echo "# building library in" $d; \

if [ "" = "1" ]; then \

echo "# using gcc64"; \

make ARCHC=gcc64 -k>makelog 2>&1; \

else \

if [ "" = "1" ]; then \

echo "# using gcc"; \

make ARCHC=gcc -k>makelog 2>&1; \

else \

make -k>makelog 2>&1; \

fi; \

fi;\

cat makelog; \

) \

done # linking to ../../src/thermophoresis_air_udf.c in lnamd64/3ddp_host # linking to ../../src/makefile in lnamd64/3ddp_host

# building library in lnamd64/3ddp_host make[1]: Entering directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_host' # Generating udf_names.c because of makefile thermophoresis_air_udf.c make[2]: Entering directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_host' make libudf.so "CFLAGS=-fpic -shared -ansi -Wall -O -DPTR_RESTRICT= " "LDFLAGS=-shared -lm" make[3]: Entering directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_host' # Compiling udf_names.o because of udf_names.c cc -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/opt/Fluent.Inc/fluent12.0.3/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/opt/Fluent.Inc/fluent12.0.3/src -I/opt/Fluent.Inc/fluent12.0.3/cortex/src -I/opt/Fluent.Inc/fluent12.0.3/client/src -I/opt/Fluent.Inc/fluent12.0.3/tgrid/src -I/opt/Fluent.Inc/fluent12.0.3/multiport/src -I/opt/Fluent.Inc/fluent12.0.3/multiport/mpi_wrapper/include -I. -c udf_names.c # Compiling thermophoresis_air_udf.o because of thermophoresis_air_udf.c cc -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/opt/Fluent.Inc/fluent12.0.3/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/opt/Fluent.Inc/fluent12.0.3/src -I/opt/Fluent.Inc/fluent12.0.3/cortex/src -I/opt/Fluent.Inc/fluent12.0.3/client/src -I/opt/Fluent.Inc/fluent12.0.3/tgrid/src -I/opt/Fluent.Inc/fluent12.0.3/multiport/src -I/opt/Fluent.Inc/fluent12.0.3/multiport/mpi_wrapper/include -I. -c thermophoresis_air_udf.c # Linking libudf.so because of makefile udf_names.c udf_names.o thermophoresis_air_udf.o ld -shared -lm udf_names.o thermophoresis_air_udf.o -o libudf.so make[3]: Leaving directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_host' make[2]: Leaving directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_host' make[1]: Leaving directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_host' # linking to ../../src/thermophoresis_air_udf.c in lnamd64/3ddp_node # linking to ../../src/makefile in lnamd64/3ddp_node

# building library in lnamd64/3ddp_node make[1]: Entering directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_node' # Generating udf_names.c because of makefile thermophoresis_air_udf.c make[2]: Entering directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_node' make libudf.so "CFLAGS=-fpic -shared -ansi -Wall -O -DPTR_RESTRICT= " "LDFLAGS=-shared -lm" make[3]: Entering directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_node' # Compiling udf_names.o because of udf_names.c cc -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/opt/Fluent.Inc/fluent12.0.3/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/opt/Fluent.Inc/fluent12.0.3/src -I/opt/Fluent.Inc/fluent12.0.3/cortex/src -I/opt/Fluent.Inc/fluent12.0.3/client/src -I/opt/Fluent.Inc/fluent12.0.3/tgrid/src -I/opt/Fluent.Inc/fluent12.0.3/multiport/src -I/opt/Fluent.Inc/fluent12.0.3/multiport/mpi_wrapper/include -I. -c udf_names.c # Compiling thermophoresis_air_udf.o because of thermophoresis_air_udf.c cc -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/opt/Fluent.Inc/fluent12.0.3/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/opt/Fluent.Inc/fluent12.0.3/src -I/opt/Fluent.Inc/fluent12.0.3/cortex/src -I/opt/Fluent.Inc/fluent12.0.3/client/src -I/opt/Fluent.Inc/fluent12.0.3/tgrid/src -I/opt/Fluent.Inc/fluent12.0.3/multiport/src -I/opt/Fluent.Inc/fluent12.0.3/multiport/mpi_wrapper/include -I. -c thermophoresis_air_udf.c # Linking libudf.so because of makefile udf_names.c udf_names.o thermophoresis_air_udf.o ld -shared -lm udf_names.o thermophoresis_air_udf.o -o libudf.so make[3]: Leaving directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_node' make[2]: Leaving directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_node' make[1]: Leaving directory `/home/veera/FLUENT_working/thermophoresis/lib-junk2/lnamd64/3ddp_node'

But while loading the UDF library I have trouble and the program just keeps running and running with no end after the message as shown below.

Opening library "libudf"... Library "libudf/lnamd64/3ddp_host/libudf.so" opened connect to address 192.168.1.1 port 544: connection refused connect to address 192.168.1.1 port 544: connection refused trying normal rsh (/usr/bin/rsh) connect to address 192.168.1.1 port 544: connection refused connect to address 192.168.1.1 port 544: connection refused trying normal rsh (/usr/bin/rsh) connect to address 192.168.1.1 port 544: connection refused connect to address 192.168.1.1 port 544: connection refused trying normal rsh (/usr/bin/rsh) connect to address 192.168.1.1 port 544: connection refused connect to address 192.168.1.1 port 544: connection refused ....... ... .. . Primitive Error at Node 0: open_udf_library: No such file or directory connect to address 192.168.1.1 port 544: connection refused connect to address 192.168.1.1 port 544: connection refused trying normal rsh (/usr/bin/rsh) connect to address 192.168.1.1 port 544: connection refused connect to address 192.168.1.1 port 544: connection refused trying normal rsh (/usr/bin/rsh) connect to address 192.168.1.1 port 544: connection refused connect to address 192.168.1.1 port 544: connection refused trying normal rsh (/usr/bin/rsh) ... .. .. node01: Connection refused node01: Connection refused node01: Connection refused node01: Connection refused node02: Connection refused node02: Connection refused node02: Connection refused node02: Connection refused head.cluster: Connection refused

Thank you in advance for your help.

Veera Gutti October 8, 2008 11:07

Re: problem loading UDF library in parallel cluste
 
Hi all,

I solved the problem myself. Open the mesh file in parallel fluent, compile the library and exit fluent. Then export the library folder (make sure the path to the library folder is the same on the nodes as well while exporting) to all the compute nodes in the linux cluster. Then start fluent again... load the library.

NH_Aus March 5, 2010 21:25

thermophoresis_air_udf.c
 
Hi there, Could you post your thermophoresis_air_udf.c code?

docnurulhasan@gmail.com

xavi April 7, 2010 12:07

UDF interpreting in parallel
 
Hi,
I have problems interpreting an UDF through a cluster, there is a problem when it tries to write for each node the UDF...any ideas what to do? I have shared folders but didn't work...
cheers

svvivekv August 31, 2010 13:49

Hi I am having the same problem in loading the UDF using the linux platform. Thing is my computer is a mulit proccesor unit. I am able to load the UDF when the serial node is on but when when I with the parrel settings these are the errors I obtain:

Primitive Error at Node 1: open_udf_library: No such file or directory

Primitive Error at Node 2: open_udf_library: No such file or directory

Primitive Error at Node 3: open_udf_library: No such file or directory

Please do help if you have a solution or suggestion.

Thanks

cdf_user April 2, 2011 05:20

udf node error fluent
 
To Veera Gutti,

How do we export the library folder to all the nodes. Please elaborate on this?

Sharjeel.

ajConsu July 1, 2011 05:22

I am having almost the same problems.

When I am working on graphic mode, as I open the .cas and .dat files and I build and load the UDF library at the same directory, it leads to no errors.

But when I save the .cas and .dat files and I try to launch Fluent from a journal file, it can't read the UDF library because it is searching the libudf.so file in the nodes directories, not in the .cas and .dat files directory.

Entering the full path when loading UDF library does not work.
Entering a line in the UDF explaining where to go when loading the UDF neither.

alilouu July 3, 2011 09:15

error udf library ....path not found
 
I have almost the same problem, when I use my own laptop, i load the udf ordinary, but when i use a work station, i cn not load it, " error udf library..path to the libudf not found", and I didn't assimilate the answer of exporting the folder of libudf to the calculate nodes.
thanks


All times are GMT -4. The time now is 02:51.