Hi folks,
I am trying to run more than 8 threads in OpenMP team on my HP-UX 11i v3 system (without root access), but NO success.
Compiler: aCC A.06.26
I tried to setup: OMP_NUM_THREADS, omp_set_num_threads(), max_thread_proc=1000, nkthread=8416, set_dynamic=0
Machine has 2 processors with 4 cores. So, the system shows me 8 processors.
If I do the same but compile with g++ I can spawn more threads, but I need aCC.
I guess maybe it's OpenMP version 2, because on this version I cannot even setup OMP_THREAD_LIMIT (system cannot find this variable).
code:
omp_set_dynamic(0);
omp_set_num_threads(20);
#pragma omp parallel
{
printf("OMP_NUM_THREADS=%d, m=%d\n", omp_get_num_threads(), omp_get_max_threads());
}
output:
omp_in_parallel=0, omp_get_dynamic=0, omp_get_thread_limit=0
OMP_NUM_THREADS=8, m=8
OMP_NUM_THREADS=8, m=8
OMP_NUM_THREADS=8, m=8
OMP_NUM_THREADS=8, m=8
OMP_NUM_THREADS=8, m=8
OMP_NUM_THREADS=8, m=8
OMP_NUM_THREADS=8, m=8
OMP_NUM_THREADS=8, m=8
Any ideas?
Thank you for help.
Alexander.