[code-reflection] RFR: Initial Testing Framework for HAT
duke
duke at openjdk.org
Wed Sep 10 11:04:28 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
@jjfumero
Your change (at version 8281c10683614dbe15b2fee2dd57c9e63e7dd939) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/babylon/pull/558#issuecomment-3274437936
More information about the babylon-dev
mailing list