pystencils.codegen.config.SyclOptions.automatic_block_size

pystencils.codegen.config.SyclOptions.automatic_block_size#

SyclOptions.automatic_block_size: BasicOption[bool] = None#

If set to True, let the SYCL runtime decide on the block size.

If set to True, the kernel is generated for execution via parallel_for -dispatch using a flat sycl::range. In this case, the GPU block size will be inferred by the SYCL runtime.

If set to False, the kernel will receive an nd_item and has to be executed using parallel_for with an nd_range. This allows manual specification of the block size.