Some problem in Parallel Routine
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
You might not have made the right entries in the General tab for this parallel routine. Cross check "External subroutine name" entry. I have recently made a blog entry on Parallel routines, you can find that in this link
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
-
- Participant
- Posts: 334
- Joined: Fri Dec 01, 2006 5:17 am
- Location: Texas
Same error message
Hi Joshy,
I have seen the link you have given..Thanks for the reply..It is really nice and very helpful.
Thanks once again!!
I have created the parallel routine as per the example given by you, but for this simple routine
i am again facing the same error message:
Transformer_24: Failed to load the library "V0S24_Object_test1_Transformer_24.so"; either the directory containing the library file
is not on the library search path, or the library was compiled on a system
that is incompatible with this system: Could not load "V0S24_Object_test1_Transformer_24": ld.so.1: osh: fatal: relocation error: file /data/projectlib/PAR_dev/RT_BP3579.O/V0S24_Object_test1_Transformer_24.so: symbol __1cKObjTestOne6F_pc_: referenced symbol not found.
I have seen the link you have given..Thanks for the reply..It is really nice and very helpful.
![Wink :wink:](./images/smilies/icon_wink.gif)
![Laughing :lol:](./images/smilies/icon_lol.gif)
I have created the parallel routine as per the example given by you, but for this simple routine
i am again facing the same error message:
![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
Transformer_24: Failed to load the library "V0S24_Object_test1_Transformer_24.so"; either the directory containing the library file
is not on the library search path, or the library was compiled on a system
that is incompatible with this system: Could not load "V0S24_Object_test1_Transformer_24": ld.so.1: osh: fatal: relocation error: file /data/projectlib/PAR_dev/RT_BP3579.O/V0S24_Object_test1_Transformer_24.so: symbol __1cKObjTestOne6F_pc_: referenced symbol not found.
-
- Charter Member
- Posts: 299
- Joined: Wed Nov 13, 2002 5:38 pm
- Location: USA
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
"-c" option is to compile the file and produce an object file. That shouldn't be the cause. Pls. post your compiler, compiler options and all the entries you made in the general tab of parallel routine.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Go to APT_COMPILER_OPT environment variable, copy the options listed there and provide those options while compiling your c code. Thats the best way to avoid any discrepencies.
for eg: if you APT_COMPILER_OPT = +z +Z -o
then you will compile your code as such (assuming your compiler is aCC)
for eg: if you APT_COMPILER_OPT = +z +Z -o
then you will compile your code as such (assuming your compiler is aCC)
Code: Select all
aCC +z +Z -o Ereplace.c
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 334
- Joined: Fri Dec 01, 2006 5:17 am
- Location: Texas
Thanks!!
My complier option
APT_COMPLIEOPT=-dalign -O -PIC -library=iostream -c
So
/opt/SUNWspro/prod/bin/cc -dalign -O -library=stdio,stdlib -c /opt/home/dsadmin/checking/OBJECTTEST.c -o /opt/home/dsadmin/checking/OBJECTTEST.o
In the general tab of Parallel Routine following are the entries:
Routine name=OBJECTTEST
Type= External Function
Object Type=Object
Catergory=Examples\Functions
External subroutine name=ObjTestOne
Return Type =char*
Library Path =/opt/home/dsadmin/checking/OBJECTTEST.o
The C code is as per the Joshy's given link.
My complier option
APT_COMPLIEOPT=-dalign -O -PIC -library=iostream -c
So
/opt/SUNWspro/prod/bin/cc -dalign -O -library=stdio,stdlib -c /opt/home/dsadmin/checking/OBJECTTEST.c -o /opt/home/dsadmin/checking/OBJECTTEST.o
In the general tab of Parallel Routine following are the entries:
Routine name=OBJECTTEST
Type= External Function
Object Type=Object
Catergory=Examples\Functions
External subroutine name=ObjTestOne
Return Type =char*
Library Path =/opt/home/dsadmin/checking/OBJECTTEST.o
The C code is as per the Joshy's given link.
Last edited by AmeyJoshi14 on Wed Dec 05, 2007 1:43 am, edited 1 time in total.
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
Does that Razz Emoticon means you got what you want?
![Confused :?](./images/smilies/icon_confused.gif)
Pls. post your compiler, compiler options ...
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
-
- Participant
- Posts: 334
- Joined: Fri Dec 01, 2006 5:17 am
- Location: Texas
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
Post your compiler and compiler option seperately.
And also confirm if you have compiled using the same syntax:
Compiler : compiler options : {filename with extenstion}
And also confirm if you have compiled using the same syntax:
Compiler : compiler options : {filename with extenstion}
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
-
- Participant
- Posts: 334
- Joined: Fri Dec 01, 2006 5:17 am
- Location: Texas
JoshGeorge wrote:Post your compiler and compiler option seperately.
And also confirm if you have compiled using the same syntax:
Compiler : compiler options : {filename with extenstion}
My complier option
APT_COMPLIEOPT=-dalign -O -PIC -library=iostream -c
So
/opt/SUNWspro/prod/bin/cc -dalign -O -library=stdio,stdlib -c /opt/home/dsadmin/checking/OBJECTTEST.c -o /opt/home/dsadmin/checking/OBJECTTEST.o
-
- Participant
- Posts: 334
- Joined: Fri Dec 01, 2006 5:17 am
- Location: Texas
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
Good to hear you finally managed to get it working. As noted repeatedly in the thread you should have used your APT_COMPLIEOPT ie. "-dalign -O -PIC -library=iostream -c" for compiling, instead of "-dalign -O -library =stdio,stdlib -c" . So time for you to mark the thread as resolved. :D
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
-
- Participant
- Posts: 334
- Joined: Fri Dec 01, 2006 5:17 am
- Location: Texas