5/28/2023 0 Comments Fibonacci in openmp![]() Use tasks or something similar in OpenMP. The point of my program is not to efficiently compute Fibonacci Numbers, but to Libgomp: Thread creation failed: Resource temporarily unavailable I tried export OMP_NESTED=TRUE, but this leads to following error while running the My question is, what do I need to do to offload the work onto 8 Threads. The machine I'm running this program on has 8 logical CPUs. ![]() When compiling the above program with g++ -fopenmp name_of_program.cpp -WallĪnd running it, I see when looking into htop that only two (sometimes 3) threads are running. It uses OpenMP Tasks for parallelisation. Consider following Program calculating Fibonacci Numbers.
0 Comments
Leave a Reply. |