omp.h unable to access all processors.
Hi!
I'm running a pod with 8 vCPUs, but it seems like omp.h can only access 1 of them while thread can access all of them.
For example,
will print out
1
9
8 Replies
Set the Environment Variable:
Before running your program, set OMP_NUM_THREADS to match the number of logical cores:
or try
also returns 1 for me
i was just wondering if the restriction on nproc could be somehow affecting omp
try to open a ticket for asking this im not sure about the program you're using
ok thanks!
looks like cpu pod limitations
is there a way to multithread with omp on a cpu pod then?
I cant seem to utilize more than one core at a time
I suspect might be not. I was able to get it work on gpu though
ah thats unfortunate
thanks tho