[code-reflection] RFR: [hat][api] Number of blocks introduced with kernelContext.bs[xyz] [v2]

Juan Fumero jfumero at openjdk.org
Wed Jan 21 13:24:10 UTC 2026


> 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

Juan Fumero has updated the pull request incrementally with one additional commit since the last revision:

  [hat] TestGrids moved to TestNumBlocks

-------------

Changes:
  - all: https://git.openjdk.org/babylon/pull/856/files
  - new: https://git.openjdk.org/babylon/pull/856/files/7d159df5..b8e09b3f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=856&range=01
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=856&range=00-01

  Stats: 159 lines in 3 files changed: 79 ins; 79 del; 1 mod
  Patch: https://git.openjdk.org/babylon/pull/856.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/856/head:pull/856

PR: https://git.openjdk.org/babylon/pull/856


More information about the babylon-dev mailing list