On 14-12-18 20:58, Tom de Vries wrote: > 0003-openacc-Add-target-hook-TARGET_GOACC_ADJUST_PARALLEL.patch > 0017-nvptx-Enable-large-vectors.patch 1. If I void nvptx_adjust_parallelism like this: ... static unsigned nvptx_adjust_parallelism (unsigned inner_mask, unsigned outer_mask) { return default_goacc_adjust_parallelism (inner_mask, outer_mask); } ... I don't run into any failing tests. From what I can tell, the only test-case that the proposed implementation of the hook has an effect on, is the worker vector loop in vred2d-128.c, but that one is passing. Can you confirm that this hook is in fact needed? Does this test fail on a specific card? Or is there another test-case that exercises this? 2. If you have a test-case where this is indeed failing without the proposed hook implementation, then please try to remove the hardcoding of vector_length > 32 from the test-source and instead set it using -fopenacc-dim. AFAIU, the proposed hook does not handle that case, so you should be able to make it fail. If so, can you test whether attached implementation fixes it? Thanks, - Tom