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

OpenFoam 9 on Macbook Pro m1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2021, 05:57
Default OpenFoam 9 on Macbook Pro m1
  #1
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Good morning,I have installed openFoam v9 on my new macbook pro 13 with SoC M1 and 16 Gb RAM via docker. However, the performances are disappointing.
I did some tests with some tutorials and with a personal project (interFoam), and the comparisons with an i7 6700 (Desktop) with window 10 are very disappointing.
I' ve done some tests with some tutorials and a personal project (interFoam), and the comparison with an i7 6700 (Desktop) with window 10 is very disappointing.

The intel processor is much faster.

I was wondering if this is due to the fact of using Docker on Mac or depends on the fact that the M1, being arm, is not yet supported natively, therefore the performance is lower?

To be honest, I have read that docker is now natively supported on M1...

Also, is it possible to install openFoam on Mac Os natively, without Docker?

Thanks to all.

Miguel.
Miguel Hernandez is offline   Reply With Quote

Old   August 27, 2021, 08:06
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 736
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Dear Miguel,

I am wondering about the same.

Information on how to install older version of OpenFoam from source on older version of MacOS is listed here http://openfoamwiki.net/index.php/In...6-ext#OpenFOAM .

I imagine that much (but certainly not all) does carry over to newer
version of OpenFoam on MacOS-Big-Sur in M1 (e.g. Xcode and gcc run fine on M1).

I am happy to join a small group to explore details.

Buena suerte y saludos, Domenico.
dlahaye is offline   Reply With Quote

Old   September 11, 2021, 09:13
Default
  #3
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Dear Miguel,



I am wondering about the same.



Information on how to install older version of OpenFoam from source on older version of MacOS is listed here http://openfoamwiki.net/index.php/In...6-ext#OpenFOAM .



I imagine that much (but certainly not all) does carry over to newer

version of OpenFoam on MacOS-Big-Sur in M1 (e.g. Xcode and gcc run fine on M1).



I am happy to join a small group to explore details.



Buena suerte y saludos, Domenico.


Hi Domenico, thank you for your replay...

To be honest I’m not able to compile from source code in my MacBook Pro M1.

I’ve tried some guides (similar to the link you reported) but whithout success...

Can anyone provide a guide or some tips to compile in Mac OS from source code? Thank you...
Miguel Hernandez is offline   Reply With Quote

Old   September 13, 2021, 20:51
Default
  #4
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 841
Rep Power: 17
sharonyue is on a distinguished road
Quote:
Originally Posted by Miguel Hernandez View Post
Good morning,I have installed openFoam v9 on my new macbook pro 13 with SoC M1 and 16 Gb RAM via docker. However, the performances are disappointing.
I did some tests with some tutorials and with a personal project (interFoam), and the comparisons with an i7 6700 (Desktop) with window 10 are very disappointing.
I' ve done some tests with some tutorials and a personal project (interFoam), and the comparison with an i7 6700 (Desktop) with window 10 is very disappointing.

The intel processor is much faster.

I was wondering if this is due to the fact of using Docker on Mac or depends on the fact that the M1, being arm, is not yet supported natively, therefore the performance is lower?

To be honest, I have read that docker is now natively supported on M1...

Also, is it possible to install openFoam on Mac Os natively, without Docker?

Thanks to all.

Miguel.

Miguel, our users have tested this M1 CPU, also on virtual machine. From our standard test case, m1 needs 359s to run with 4 cores, which is almost identical with 2680V2 or even 7742 (337s), of course 4 cores. Since this user also use virtual machine, so I think the problem does not come from the OS.

For more information of different CPUs, please check it here (Chinese though, maybe you can translate them by google)
https://www.cfd-china.com/topic/3988
__________________
My OpenFOAM algorithm website: http://dyfluid.com
By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam
We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html
sharonyue is offline   Reply With Quote

Old   September 15, 2021, 06:02
Default
  #5
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Quote:
Originally Posted by sharonyue View Post
Miguel, our users have tested this M1 CPU, also on virtual machine. From our standard test case, m1 needs 359s to run with 4 cores, which is almost identical with 2680V2 or even 7742 (337s), of course 4 cores. Since this user also use virtual machine, so I think the problem does not come from the OS.

For more information of different CPUs, please check it here (Chinese though, maybe you can translate them by google)
https://www.cfd-china.com/topic/3988


Thank you for your reply... in virtual machine, do you mean that your test was running using docker?
Miguel Hernandez is offline   Reply With Quote

Old   September 15, 2021, 16:06
Default
  #6
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
I’ve tried weirOverflow tutorial on my MacBook Pro m1 (docker) and on my desktop Intel i7 (6700) - Ubuntu 21.04. MacBook took 1572 sec to run the simulation, the desktop pc 160 sec!!!!
Miguel Hernandez is offline   Reply With Quote

Old   September 15, 2021, 23:23
Default
  #7
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 841
Rep Power: 17
sharonyue is on a distinguished road
Quote:
Originally Posted by Miguel Hernandez View Post
Thank you for your reply... in virtual machine, do you mean that your test was running using docker?
not sure. That user said its on virtual machine, but I have no idea what kind of virtual machine. but shouldn't be docker.

These are the results if you run my test case. https://www.jianguoyun.com/p/DeabU1wQ9s3ZBhjc7LgD


CPU:Apple M1
system :Ubuntu 20.04 ARM (virtual machine)
OpenFOAM vertion:OpenFOAM-8
4 359.22
2 512.2
1 830.43
__________________
My OpenFOAM algorithm website: http://dyfluid.com
By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam
We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html
sharonyue 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
OpenFOAM Training Beijing 22-26 Aug 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 May 3, 2016 04:57
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 20:19.