OMP_PLACES and OMP_PROC_BIND

发布时间:2024年01月05日

在这里插入图片描述

The OMP_PROC_BIND environment variable 
	sets the initial value of the bind-var ICV. 
The value of this environment variable is either 
	true, false,
	or a comma separated list of master, close, or spread. 
The values of the list set the thread affinity policy
	to be used for parallel regions at the corresponding nested level.

If the environment variable is set to false, 
	the execution environment may move OpenMP threads between OpenMP places, 
	thread affinity is disabled, 
	and proc_bind clauses on parallel constructs are ignored.

Otherwise, 
	the execution environment should not move OpenMP threads between OpenMP places, 
	thread affinity is enabled, 
	and the initial thread 
		is bound to the first place in the OpenMP place list 
		prior to the first active parallel region.
文章来源:https://blog.csdn.net/qq_38963393/article/details/135411660
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。