Skip to content

Latest commit

 

History

History
39 lines (38 loc) · 801 Bytes

File metadata and controls

39 lines (38 loc) · 801 Bytes
title 3.1.5 omp_get_num_procs Function | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
ms.assetid bbfbf17b-0c68-4ba6-a25d-07c36ecb551f
caps.latest.revision 5
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

3.1.5 omp_get_num_procs Function

The omp_get_num_procs function returns the number of processors that are available to the program at the time the function is called. The format is as follows:

#include <omp.h>  
int omp_get_num_procs(void);