Enable/Disable OMP or change thread count

49 views
Skip to first unread message

Onyx Bennett

unread,
Apr 18, 2025, 2:49:56 PMApr 18
to ProjectChrono
Hello, I am looking at Chrono for one of my CS courses and I was curious if there is a way to run demos with different thread counts or if any of them have OMP that I could play with. I haven't had success searching for these on my own.

Onyx Bennett

unread,
Apr 18, 2025, 4:19:50 PMApr 18
to ProjectChrono
Or if there are any demos that take input my group and I can scale, that would be extremely helpful

HUZAIFA MUSTAFA UNJHAWALA

unread,
Apr 18, 2025, 4:22:52 PMApr 18
to ProjectChrono
Hello,

Yes, look at the member function of ChSystem SetNumThreads.

An analysis on how efficiently the load is balanced across the threads for different demos would certainly be helpful!


Best
Huzaifa

Onyx Bennett

unread,
Apr 18, 2025, 4:30:18 PMApr 18
to ProjectChrono
Thank you so much!

Dan Negrut

unread,
Apr 18, 2025, 4:35:20 PMApr 18
to Onyx Bennett, ProjectChrono

Two quick additional things:

  • If you feel adventurous and want to benchmark on the GPU, to see which GPU does what, here’s something that you can benchmark: https://github.com/projectchrono/DEM-Engine or perhaps the FSI solver, which comes into play in CRM terramechanics sims as well.
  • If you end up looking at the OpenMP scaling and/or GPU aspects, please share the results on the forum so that everybody learns something out of your effort. In that case, it would be great to also share a link to the code that you used to benchmark.

Thank you,

Dan

---------------------------------------------

Bernard A. and Frances M. Weideman Professor

NVIDIA CUDA Fellow

Department of Mechanical Engineering

Department of Computer Science

University of Wisconsin - Madison

4150ME, 1513 University Avenue

Madison, WI 53706-1572

608 772 0914

http://sbel.wisc.edu/

http://projectchrono.org/

---------------------------------------------

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/projectchrono/c275bb98-f4ba-4438-bdb7-f3c1d1c95883n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages