CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

UDF parallel

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 4, 2007, 20:06
Default UDF parallel
  #1
Lucy
Guest
 
Posts: n/a
Hi, there has been some problem when I try to load the compiled udf library in parallel computing.It says

library "libudf/lnx86/2ddp_host/libudf.so" opened Primitive Error at Node 0: open_udf_library:No such file or directory Primitive Error at Node 1pen_udf_library:No such file or directory Error: Compute node encountered error Error Object:#f

However, everything runs ok when I run it on just one computer, not parallel, so there is no problem with the udf itself, but some problem of whether the library can be seen by all the computers. Hope there'll be someone who can give me some idea. Thanks in advance. Lucy

  Reply With Quote

Old   August 5, 2007, 06:36
Default Re: UDF parallel
  #2
Joe
Guest
 
Posts: n/a
The library must be accessible to all computers in the cluster.

See UDF manual:

5.7

5.2


" If you are running FLUENT on a network of Windows machines , you may need to type the file's complete path in the Source File Name field in the Interpreted UDFs panel, instead of using the browser option. For example, to compile udfexample.c from a shared working directory named mywork, you would enter the following in the Source File Name field:

\\<fileserver>\mywork\udfexample.c

figure

Here, you replace <fileserver> with the name of the computer on which your working directory ( mywork) and source file ( udfexample.c) are located."
  Reply With Quote

Old   August 5, 2007, 08:49
Default Re: UDF parallel
  #3
kp
Guest
 
Posts: n/a
Hi, My earlier post to a similar query answers your problem.

---------------------------------- The possibilities are: 1. Are you usung UDF? Yes then recompile your UDF on all the nodes. I assume you are using SGE for your work/job submission. In that case open a terminal and type in Fluent &. After the console pops up click on File, run. In that console check parallel and then select number of processors. After that compile your udfs and then exit. You are ready to submit your script now to SGE.

2. You can follow the same procedure to read your case and data. The only difference would be not to follow the step of submission to SGE.

3. Please remember this error is might not be due to network communications but only due to the fact that your libudf libraries are not been acessible by slave nodes.

I would assume in the discussion that you clsuter facility has all the nodes shared and you have read and write acess on them!

Last but not the least: If you are having customised data writing functions over the parallel environment you will have to modify your UDF's slightly. This has been explained in the UDF manual. Let me know how it goes and you can also reach me at kp@dal.ca. Good luck! KP
  Reply With Quote

Old   May 28, 2013, 13:14
Default UDF-parallel
  #4
Senior Member
 
rkhr
Join Date: May 2011
Posts: 209
Rep Power: 7
Kanarya is on a distinguished road
Hi

I have problem to run in parallel this code?It is simple C_UDMI which is calculated before:
DEFINE_MASS_TRANSFER(water1,c,t,from_index, from_species_index, to_index, to_species_index)
{
#if !RP_HOST

return(C_UDMI(c,t,10));

#endif

}

in serial it is ok but parallel giving me following error:
warning C4716: 'water1' : must return a value.

is there anyone had expericed before?

Thanks in advance!!!
Kanarya is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
udf compile in parallel system tahereh FLUENT 1 December 9, 2008 10:48
Help: how to realize UDF on parallel cluster? Haoyin FLUENT 1 August 6, 2007 13:53
Parallel Fluent +UDF Jack Martinez FLUENT 0 June 28, 2007 11:19
UDF in parallel version. yobee FLUENT 0 August 17, 2004 04:12


All times are GMT -4. The time now is 15:10.