|
[Sponsors] |
May 19, 2019, 22:22 |
Compiling and loading UDF using Batch
|
#1 |
New Member
Amir
Join Date: Oct 2018
Posts: 17
Rep Power: 8 |
Hello everyone,
I'm using Linux system for running my cases and I wrote a journal file for it it executes on windows perfectly so I made sure that the TUI commands are correct, however in case of reading UDF I receive the following errors. My strategy was compiling my udf in my computer on Windows and has visual studio and copying the built library to the cluster systems, but it seems this doesn't work. I want to 1- try compiling udf on their system using Batch but I didn't find it anywhere in Fluent guide also 2- it is not mentioned in TUI guide that we can interpret a .c file by using TUI comands in journal file, these two are my alternatives can you please help me what is the correct way of interpreting a UDF in TUI or how can I compile and load UDF in a cluster using Batch. Thank you this is there error in cluster's log file: Setting process affinity: Failed opening libc! Error at host: The UDF library you are trying to load (name_of_udf) is not compiled for parallel use on the current platform (lnamd64). No such file or directory /lustre04/scratch/####/test/name_of_udf/lnamd64/2ddp_host/libudf.so Error at Node 1: The UDF library you are trying to load (name_of_udf) is not compiled for parallel use on the current platform (lnamd64). No such file or directory /lustre04/scratch/####/test/name_of_udf/lnamd64/2ddp_node/libudf.so Error at Node 2: The UDF library you are trying to load (name_of_udf) is not compiled for parallel use on the current platform (lnamd64). these are the lines I'm using to compile my udf which works on Windows but not on Linux: define/user-defined/compiled-functions compile libudf yes myudf.c "" "" define/user-defined/compiled-functions load libudf these are the lines I'm using to interpret my udf that doesn't work even on Windows in this case I receive no error but fluent cashes. /define/user-defined/interpreted-functions "address\myudf.c" "cpp" 10000 no Thank you |
|
May 20, 2019, 01:08 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Code:
define user-defined compiled-functions compile |
|
May 20, 2019, 13:19 |
|
#3 |
New Member
Amir
Join Date: Oct 2018
Posts: 17
Rep Power: 8 |
||
May 20, 2019, 22:50 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Code:
(ti-menu-load-string (format #f "define user-defined compiled-functions compile libudf yes myudf.c \"\" \"\" ")) (ti-menu-load-string (format #f "define user-defined compiled-functions load libudf ")) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error code: 126 when loading parallel UDF | Coop | Fluent UDF and Scheme Programming | 0 | July 13, 2018 09:33 |
problem loading UDF library in parallel cluster | Veera Gutti | FLUENT | 8 | July 26, 2016 08:24 |
Basic question regarding compiling a UDF | A.Jalal | Fluent UDF and Scheme Programming | 2 | August 6, 2015 14:57 |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 01:53 |
Compiling / Loading UDF | Martijn | FLUENT | 1 | December 16, 2008 20:06 |