rgov
rgov

Reputation: 4329

Multiple processes created by OpenMP

I tried out using OpenMP to parallelize a loop (using Thrust and GOMP on Ubuntu) and was surprised to see multiple processes pop up in my process list. I had thought that OpenMP would spin up multiple threads, but not multiple processes.

Under what conditions does OpenMP spawn multiple processes?

Interestingly, my breakpoints on fork and posix_spawn were not hit. Is htop lying to me? (Each entry showed a unique PID.)

Upvotes: 0

Views: 226

Answers (1)

Jim Cownie
Jim Cownie

Reputation: 2859

You are being misled. Libgomp does not create processes.

Upvotes: 1

Related Questions