CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Ppc64 IBM Power5 19 GHz SMP

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2007, 12:46
Default I got the following error when
  #1
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I got the following error when sourcing .bashrc. I think it is because the processor type "ppc64" is not supported. It is IBM clustered SMP (Symmetric Multiprocessing) system based on dual core processors (IBM Power5+, 1.9 GHz) and 16 core/node.

I also checked the 1.4.1 bashrc but the ppc64 was not there. In V1.3 there were "ppc" type included. Any idea what should I add to bashrc for this type of processors? Thanks.


Executing: /home/usr597/remote/OpenFOAM/OpenFOAM-1.3/.bashrc
Executing: /home/usr597/remote/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/ensightFoam/bashrc
-bash: [: =: unary operator expected
-bash: [: too many arguments
Executing: /home/usr597/remote/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/paraview/bashrc

best regards,
Maka
maka is offline   Reply With Quote

Old   October 30, 2007, 21:29
Default Not a problem. You need to add
  #2
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Not a problem. You need to add the ppc64 check. You're porting to a new platform remember? Check the wiki for instructions. BTW, a word of advice. If you're looking to install OpenFOAM on AIX, good luck. You'll need it. I'm not saying it is impossible. It's just very non-trivial. I solved that problem by wiping out AIX and installing OpenSuSE 10.2 (ppc64 version) on the IBM.
msrinath80 is offline   Reply With Quote

Old   November 2, 2007, 08:20
Default Actually, SUSE Linux Enterpris
  #3
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
Actually, SUSE Linux Enterprise Server (V 9) is already installed on the system.

did you mean the following links on the wiki:
http://openfoamwiki.net/index.php/Ho...o_new_platform
http://openfoamwiki.net/index.php/Ho...mpile_OpenFOAM

I also found a link regarding Mac but the OS installed on the cluster is SUSE, the only difference is when I type "uname -a" I get:

Linux p5120 2.6.5-7.286-pseries64-perfctr #5 SMP Tue Aug 28 16:24:36 CEST 2007 ppc64 ppc64 ppc64 GNU/Linux

I copied the X86_64 in .OpenFOAM/bashrc and made:

elif [ "$processor" = "ppc64" ]; then
#export WM_ARCH=linuxPPC
if [ "$WM_64" ]; then
export WM_ARCH=linuxAMD64
export WM_COMPILER_LIB_ARCH=64
export CC='gcc'
export CXX='g++'
export CFLAGS='-m64 -fPIC'
export CXXFLAGS='-m64 -fPIC'
export LDFLAGS='-m64'
else
export WM_ARCH=linux
#export WM_COMPILER=I32
export WM_COMPILER_ARCH='-64'
export CC='gcc'
export CXX='g++'
export CFLAGS='-m32'
export CXXFLAGS='-m32'
export LDFLAGS='-m32'
fi

I passed all foamInstallationTest but when trying to run icoFoam I get:

-bash: /home/usr597/remote/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxAMD64Gcc4DPOpt/i coFoam: cannot execute binary file
The file exist at that location.

Does this mean that I have to recompile OpenFOAM from scratch? Sorry for my basic question. I compiled OpenFOAM before but not from scratch. Thanks.

Best regards,
Maka
maka is offline   Reply With Quote

Old   November 2, 2007, 16:34
Default But of course. You do need to
  #4
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
But of course. You do need to rebuild OF from scratch and take my word for it when I say this is cakewalk in comparison to building OF on AIX. Post any error messages you come across, I can look into my setup and find out if I did any special tweaking to get it to work. But if my memory serves me right, I faced very few problems.
msrinath80 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:04.