[code-reflection] Integrated: [hat][api] Number of blocks introduced with kernelContext.bs[xyz]
Juan Fumero
jfumero at openjdk.org
Wed Jan 21 15:50:10 UTC 2026
On Wed, 21 Jan 2026 11:42:08 GMT, Juan Fumero <jfumero at openjdk.org> wrote:
> Number of blocks introduced with kernelContext.bs[xyz].
>
> This construct allows us to obtain the number of blocks use within the kernel code:
>
> For example:
>
>
> int numBlocks = kernelContext.bsx;
>
>
> How to test?
>
>
> # OpenCL
> HAT=SHOW_CODE java -cp hat/job.jar hat.java test ffi-opencl hat.test.TestNumBlocks
> # CUDA
> HAT=SHOW_CODE java -cp hat/job.jar hat.java test ffi-cuda hat.test.TestNumBlocks
This pull request has now been integrated.
Changeset: 458b1eef
Author: Juan Fumero <jfumero at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/458b1eef6dd99aa9cdf271a4a29fdb08a3611982
Stats: 340 lines in 10 files changed: 239 ins; 32 del; 69 mod
[hat][api] Number of blocks introduced with kernelContext.bs[xyz]
-------------
PR: https://git.openjdk.org/babylon/pull/856
More information about the babylon-dev
mailing list