[code-reflection] Integrated: Initial Testing Framework for HAT
Juan Fumero
jfumero at openjdk.org
Wed Sep 10 13:26:12 UTC 2025
On Tue, 9 Sep 2025 15:44:02 GMT, Juan Fumero <jfumero at openjdk.org> wrote:
> I added a testing framework for HAT. I will open a draft PR for the team to start playing with this. Any feedback is welcome.
>
>
> How to build and run?
>
> java @hat/bld
>
> Run the whole suite for OpenCL:
>
>
> java @hat/test suite ffi-opencl
>
>
> Run the whole suite for CUDA:
>
>
> java @hat/test suite ffi-cuda
>
>
> Run a specific test:
>
>
> java @hat/test ffi-opencl oracle.code.hat.TestArrays$testVectorAddition
>
> You can also combine with the usual Hat flags. For example, this enables printing of the codegen and info
>
>
> HAT=SHOW_CODE,INFO java @hat/test ffi-opencl oracle.code.hat.TestArrays$testVectorAddition
This pull request has now been integrated.
Changeset: 0e0082fd
Author: Juan Fumero <jfumero at openjdk.org>
Committer: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/0e0082fdf6931f354fd28ec5d83ce1a909470e5d
Stats: 1820 lines in 17 files changed: 1775 ins; 1 del; 44 mod
Initial Testing Framework for HAT
-------------
PR: https://git.openjdk.org/babylon/pull/558
More information about the babylon-dev
mailing list