omp_get_thread_num always return 0

General OpenMP discussion

omp_get_thread_num always return 0

Postby flywang » Tue Dec 17, 2019 2:11 am

I use ndk-r20 complied my openmp code,omp_get_thread_num always return 0.
omp_get_num_procs return 8.but,I use ndk-r14 to complied,no issues found.
Envirment:Android 9
Posts: 1
Joined: Mon Dec 16, 2019 4:23 am

Re: omp_get_thread_num always return 0

Postby MarkB » Mon Jan 06, 2020 7:35 am

Can you post a minimal example code that shows the behaviour? What compiler flags are you using and how do you set the number of threads?
Posts: 783
Joined: Thu Jan 08, 2009 10:12 am
Location: EPCC, University of Edinburgh

Return to Using OpenMP

Who is online

Users browsing this forum: Google [Bot] and 1 guest