Skip to content
Snippets Groups Projects
Commit 82792cc4 authored by Julian Brown's avatar Julian Brown Committed by Thomas Schwinge
Browse files

openacc: Turn off worker partitioning if num_workers==1


This patch turns off the middle-end worker-partitioning support if the
number of workers for an outlined offload function is one.  In that case,
we do not need to perform the broadcasting/neutering code transformation.

	gcc/
	* omp-oacc-neuter-broadcast.cc
	(pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
	1.
	(execute_omp_oacc_neuter_broadcast): Adjust.

Co-Authored-By: default avatarThomas Schwinge <thomas@codesourcery.com>
parent 8251f90e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment