CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Ppc64 IBM Power5 19 GHz SMP (https://www.cfd-online.com/Forums/openfoam-installation/57468-ppc64-ibm-power5-19-ghz-smp.html)

maka October 30, 2007 12:46

I got the following error when
 
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

msrinath80 October 30, 2007 21:29

Not a problem. You need to add
 
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.

maka November 2, 2007 08:20

Actually, SUSE Linux Enterpris
 
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

msrinath80 November 2, 2007 16:34

But of course. You do need to
 
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.


All times are GMT -4. The time now is 21:43.