I have the following C/C++ code using OpenMP:
int nProcessors=omp_get_max_threads(); if(argv[4]!=NULL){ printf(\"argv[4]: %s\\n\",argv[4]);
you are using the wrong function. use omp_get_max_threads to check for the maximum number of allowed threads.
omp_get_max_threads