How can I use parallel computing on a personal workstation?

121 views
Skip to first unread message

魏远洋

unread,
Apr 7, 2025, 4:53:06 AMApr 7
to basilisk-fr
Hello, Basiliskers! I  am new to Basilisk. My personal workstation has 24 cores,I want to use parallel computing on it ,but I encountered the following problem. 

I use 4 cores to compute ,but they all do the same thing.


error.png

Wojciech Aniszewski

unread,
Apr 24, 2025, 3:28:57 PMApr 24
to 魏远洋, basilisk-fr
Hello 魏远洋,
for what you want, you'd have to read up on the OpenMP shared-memory parallelism. Compile with the -fopenmp flag (and without -DMPI...),
then just run your program with ./drop. It should then run using all 24 threads which will share the memory.

regards
Voitek
> --
> You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/basilisk-fr/6920556a-ab68-4767-a0b6-e9d56ab90ac3n%40googlegroups.com.



--
/^..^\
( (••) ) Wojciech ([vôitek]) ANISZEWSKI
(|)_._(|)~
GPG ID : AC66485E
Twitter : @echo_dancers3
Mastodon: @w...@fediscience.org
BlueSky : @aniszewski.bsky.social
Scholar : https://tinyurl.com/y28b8gfp
OrcId : https://orcid.org/0000-0002-4248-1194
RG : https://www.researchgate.net/profile/Wojciech_Aniszewski

Reply all
Reply to author
Forward
0 new messages