On 07-01-19 09:56, Tom de Vries wrote:
> +  /* Check that the vector_length is not too large.  */
> +  if (dims[GOMP_DIM_VECTOR] > PTX_MAX_VECTOR_LENGTH)
> +    dims[GOMP_DIM_VECTOR] = PTX_MAX_VECTOR_LENGTH;

And just to note this:

I've chosen a different solution here than og8, which falls back to
PTX_WARP_SIZE here.

I figured that given that when too much workers are specified, we fall
back to the maximum amount of workers, we should do the same for
vector_length.

Thanks,
- Tom

Reply via email to