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

CPUs vs GPUs for CFD?

Register Blogs Community New Posts Updated Threads Search

Like Tree17Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2024, 00:40
Default
  #21
Member
 
EM
Join Date: Sep 2019
Posts: 59
Rep Power: 6
gnwt4a is on a distinguished road
never compare per-iteration timings in black-box codes. u dont know if the algorithm has been changed, the precision lowered or the arithmetic (usually divs/logs/trigs) done at reduced (but faster) accuracy. always compare timings of what is considered a converged solution at (very) high resolutions - (eg) 5 digits in the mean velocity profile.


Edit: Furthermore, do not use simple geometries (e.g. no plane channels nor straight pipes) which prove nothing and are likely to use specially simplified algorithms, and never uniform grids that converge fast and can be done more efficiently with trig expansions.

Last edited by gnwt4a; May 14, 2024 at 05:18. Reason: stuff added
gnwt4a is offline   Reply With Quote

Old   May 14, 2024, 08:00
Default
  #22
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,276
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by CFDfan View Post

I observed the same weird behavior (different answers, or solver divergence when using the GPU) with FEA codes for electromagnetic simulations as well. Obviously not all bugs are cleared and "fast" doesn't necessarily mean "accurate"





Solver can diverge in GPU because the AMG is hugely affected by it. Both the coarsening and the smoothing part.





PS: I have recently developed a smoother that shall not be affected by this issue but still i do not have it in GPU version. At some point of time, will get it. In other solvers, they suffer.
arjun 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
OpenFOAM benchmarks on various hardware eric Hardware 778 April 23, 2024 16:56
General recommendations for CFD hardware [WIP] flotus1 Hardware 18 February 29, 2024 12:48
AMD Epyc 9004 "Genoa" buyers guide for CFD flotus1 Hardware 8 January 16, 2023 05:23
CPU for Flow3d mik_urb Hardware 4 December 4, 2022 22:06
Parallel speedup scales better than number of CPUs MikeWorth OpenFOAM Running, Solving & CFD 5 August 21, 2020 17:30


All times are GMT -4. The time now is 15:27.