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

OpenFOAM14 for Mac OSX Darwin 104

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 7, 2007, 07:22
Default Hi Eric! Thanks for the fee
  #41
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Eric!

Thanks for the feedback. In the next days I'll try compile 1.4.1 on my notebook. I hope that I can then provide a unified patch (which incorporates the additions you suggested. I guess I missed those because I never tested the stuff in parallel)

@Rick: Have you tried setting the processor affinity with mpirun (https://www.sun.com/products-n-solutions/hardware/docs/html/819-7480-10/mca-para ms.html havn't tried it myself yet) to see if it really is the cache? (another possibility would be to set the affinity with the taskset-command afterwards, but that would make it hard to get accurate measurments) But I'm betting on the memory bandwidth
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 10, 2007, 08:40
Default Just before I run into the wee
  #42
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Just before I run into the weekend: I uploaded a patch for 1.4.1 to the Wiki-page. All the nexessary changes are in that patch (I hope)

It compiles with an OpenMPI from DarwinPorts.

Havn't done too much testing on it. Give me a word if you have problems (or if it works for you)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 15, 2007, 13:18
Default Hi Eric! I guess you may ha
  #43
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Eric!

I guess you may have noticed this thread:
http://www.cfd-online.com/cgi-bin/Op...how.cgi?1/4323
(conclusion: cores sharing memory bandwith is bad) But I would have expected a decent speedup at least for the 2CPU-case. Have you had a chance to do parallel benchmarks with non-OpenFOAM software?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 15, 2007, 14:37
Default Hi Bernhard, I wrote a smal
  #44
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 197
Blog Entries: 1
Rep Power: 9
egp is on a distinguished road
Hi Bernhard,

I wrote a small C++ code to compute Pi (e.g., see Using MPI, 2nd ed, by Gropp et al.) over 1e9 intervals. Parallel performance is almost perfect,

1 proc = 10.6 secs
2 proc = 5.3
3 proc = 3.5
4 proc = 2.8
5 proc = 2.1
6 proc = 1.8
7 proc = 1.5
8 proc = 1.6

However, there is almost no data being passed for this test case, which means that the performance doesn't suffer. Also, I did the timing using MPI::Wtime, which gave very different results from the command line "time -p mpirun -np ...".

Eric
egp is offline   Reply With Quote

Old   August 15, 2007, 14:56
Default Hi Eric! Have you tried a "
  #45
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Eric!

Have you tried a "pure" MPI-Benchmark? I think I once used this one:
http://www.dhpc.adelaide.edu.au/projects/MPIBench/
(don't know for sure if it's that one) and I think from the results one can judge the memory-throughput

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 18, 2007, 19:20
Default It was pointed out to me, that
  #46
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
It was pointed out to me, that the first 1.4.1-patch that I uploaded to the Wiki was incomplete (very incomplete in fact). I uploaded a new version.

Sorry to everyone who tried and failed
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 28, 2007, 08:27
Default Hi guys, thanks a lot for t
  #47
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 185
Rep Power: 8
podallaire is on a distinguished road
Hi guys,

thanks a lot for the patch and all the instructions ! I was able to compile everything including Paraview 2-4 on my MacBook Pro and it works really well ! I have only one remaining question :

- Is it possible to use a pre-compiled binary of Paraview3 and link it in order to build paraFoam ?

Best regards,

PO Dallaire
podallaire is offline   Reply With Quote

Old   October 1, 2007, 07:08
Default Hi PO! Look for discussions
  #48
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi PO!

Look for discussions elsewhere on this board concerning ParaView3. Short answer is no, because
a) Paraview3 is not yet supported by paraFoam
b) to compile the PVReader you need at least the Paraview-headers and the CMakeCache.txt that was used to build the binary and none of those is distributed with the binaries

If you want to use paraview3 your options are:
a) use foamToVTK
b) use the OpenFOAM-filter built into (but not always enabled) in Paraview3 (see discussions elsewhere)

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 3, 2007, 09:25
Default Thanks for the infos Bernhard
  #49
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 185
Rep Power: 8
podallaire is on a distinguished road
Thanks for the infos Bernhard !
Have a nice day
PO
podallaire is offline   Reply With Quote

Old   October 17, 2007, 20:27
Default It appears that a new version
  #50
sek
Member
 
Sung-Eun Kim
Join Date: Mar 2009
Posts: 76
Rep Power: 8
sek is on a distinguished road
It appears that a new version of operating system (v10.5 Leopard) wll be released on Oct. 26. Can I surmise it'll become much easier to install OF on Mac?
sek is offline   Reply With Quote

Old   October 17, 2007, 20:33
Default It appears that a new version
  #51
sek
Member
 
Sung-Eun Kim
Join Date: Mar 2009
Posts: 76
Rep Power: 8
sek is on a distinguished road
It appears that a new version of operating system (v10.5 Leopard) wll be released on Oct. 26. Can I surmise it'll become much easier to install OF on Mac?
sek is offline   Reply With Quote

Old   October 17, 2007, 20:33
Default Hey, it is already easy becaus
  #52
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 185
Rep Power: 8
podallaire is on a distinguished road
Hey, it is already easy because of all the work those guys did here :-) Everything work so far on my Macs.

No, it will be exactly the same.

Regards,

PO Dallaire
podallaire is offline   Reply With Quote

Old   October 17, 2007, 20:39
Default Might be easier, because new L
  #53
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
Might be easier, because new Leopard is going to use new Sun Microsystems disc partition, which if I'm not mistaken is called ZFS. It might have happened that Apple switched in Leopard to case sensitive operating system, but I'm just guessing.
paka is offline   Reply With Quote

Old   October 17, 2007, 20:51
Default Hi, from what I saw in the
  #54
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 185
Rep Power: 8
podallaire is on a distinguished road
Hi,

from what I saw in the previous developer builds, ZFS was not the default file system. Hopefully, that will change for the final version.
podallaire is offline   Reply With Quote

Old   October 17, 2007, 20:54
Default If I'm right, last two builds
  #55
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
If I'm right, last two builds were suppose to have ZFS, but I'm not sure.
paka is offline   Reply With Quote

Old   October 18, 2007, 00:57
Default Well, I already ordered it. W
  #56
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
Well, I already ordered it. When the pack comes, I will re-port OpenFOAM-1.4.1-dev to Mac OS X Leopard and report. If people are interested I can do the mountable disc partition again - is anyone actually using this at the moment?

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   October 18, 2007, 04:09
Default Aloha Hrvoje, Yes, definite
  #57
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
Aloha Hrvoje,

Yes, definitely the mountable package would be great. I know couple people working on it.

Thanks,
Krystian
paka is offline   Reply With Quote

Old   October 28, 2007, 20:52
Default Hi guys, I installed Leopar
  #58
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 185
Rep Power: 8
podallaire is on a distinguished road
Hi guys,

I installed Leopard and made some quick checks for OpenFOAM :

1) Mac OS X does not use ZFS in the installation - still does use the mac os x extended journaled - I do not see ZFS in disk utility
2) I can use my OpenFOAM disk image from Tiger, no problem
3) I tried to recompile but I saw an error somewhere with uint function - I'll try again later this week when I'll have more time
4) I did not compile paraview 2-6; in fact, I compiled Paraview 3 from scratch since it is Mac os X native - no problem here
5) FYI, I found a problem with X11 when compiling and linking opengl library with other programs (see http://wiki.finkproject.org/index.php/Fink:Packaging:Preparing_for_10.5#OpenGL_B ug). Don't know if this useful for the OpenFOAM project - just an info ...

Best regards,

PODallaire
podallaire is offline   Reply With Quote

Old   October 30, 2007, 12:33
Default Hi, The error I saw when I
  #59
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 185
Rep Power: 8
podallaire is on a distinguished road
Hi,

The error I saw when I tried to recompile is :

primitives/uint/uintIO.C: In function 'Foam::Istream& Foam::operator>>(Foam::Istream&, unsigned int&)':
primitives/uint/uintIO.C:69: error: 'uint' was not declared in this scope
make: *** [Make/darwinDPOpt/uintIO.o] Error 1

PO
podallaire is offline   Reply With Quote

Old   October 30, 2007, 15:34
Default Hi! Don't have Leopard, so
  #60
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi!

Don't have Leopard, so I can only guess how to fix this (BTW: which version of g++ comes with Leopard/XCode3 ?):

Try to replace the offending line
i = uint(t.labelToken());
with
i = (unsigned int)(t.labelToken());
(you WILL get a warning about an old-style cast)

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 05:06
VTK errors in ParaFOAM on OpenFOAM14 stevemchale OpenFOAM Installation 5 August 29, 2007 15:39
Compilation from source failed OpenFOAM14 hsieh OpenFOAM Installation 1 June 20, 2007 10:06
Probes in OpenFOAM14 otsuki OpenFOAM Running, Solving & CFD 2 May 16, 2007 06:18
Port of OpenFOAM14 to FreeBSD thierry OpenFOAM Installation 0 April 28, 2007 09:36


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