+ 1

Multicore programming

I see from Javascript that SoloLearn playground has 8 cores: https://code.sololearn.com/WRFqaxzxgn8S/?ref=app Now I would like to use 8 cores even in C/CPP. Here is a trivial program for testing: https://code.sololearn.com/cuJWVSVmb7k7/?ref=app Unfortunately the result is only one core. On other playgrounds you can compile with option "-fopenmp". In this way, for example, wandbox.org will show 3 cores, and tutorialspoint.com (http://tpcg.io/L5U5VL) will show as many as 32 cores! In other words, is there some way to modify compiler options in SoloLearn playground?

26th May 2019, 11:33 AM
Bilbo Baggins
Bilbo Baggins - avatar
1 ответ
+ 1
Sadly, there is no such options as of now ... you could suggest it to the sololearn team though ! It would be nice ! I think you can use pthread though
24th Jul 2019, 9:18 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar