Building HAT: error, missing file?

Juan Fumero juan.fumero at manchester.ac.uk
Fri Jan 17 20:05:25 UTC 2025


Thanks, np.

Juan

From: Paul Sandoz <paul.sandoz at oracle.com>
Date: Friday, 17 January 2025 at 20:35
To: Gary Frost <gary.frost at oracle.com>
Cc: Juan Fumero <juan.fumero at manchester.ac.uk>, babylon-dev at openjdk.org <babylon-dev at openjdk.org>
Subject: Re: Building HAT: error, missing file?
Fixed,
Paul.


On Jan 17, 2025, at 7:56 AM, Gary Frost <gary.frost at oracle.com> wrote:

Paul just beat me to it.
I had not rebuilt Babylon from latest code for a few weeks.  My mistake.

Once I do that, I will update HAT to solve this iface issue.

Apologies for this.

Gaty


________________________________
From: babylon-dev <babylon-dev-retn at openjdk.org> on behalf of Paul Sandoz <paul.sandoz at oracle.com>
Sent: Friday, January 17, 2025 3:54 PM
To: Juan Fumero <juan.fumero at manchester.ac.uk>
Cc: babylon-dev at openjdk.org <babylon-dev at openjdk.org>
Subject: Re: Building HAT: error, missing file?

We just made some changes to code reflection API. The method Quotable::quoted has recently been removed (https://github.com/openjdk/babylon/pull/302/ [github.com]<https://urldefense.com/v3/__https:/github.com/openjdk/babylon/pull/302/__;!!PDiH4ENfjr2_Jw!EvCY2h_gIvwoqXn6NA3h6Ehn05--0Zfas8y-tdhlKdyRInQbWoYbqxyrFgz4NN50GGgvCxLlqEKd5kEwQwvMveKmYFZlVg$>). It has been replaced with calls to Op::ofQuoted. We need to create a PR with that change in HAT.

Paul.


On Jan 17, 2025, at 2:54 AM, Juan Fumero <juan.fumero at manchester.ac.uk> wrote:

Tracing back, on my system fails after this commit:

https://github.com/openjdk/babylon/commit/82e0e551b6d8db1ccef7c00f52f7fdc786400962 [github.com]<https://urldefense.com/v3/__https:/github.com/openjdk/babylon/commit/82e0e551b6d8db1ccef7c00f52f7fdc786400962__;!!PDiH4ENfjr2_Jw!EvCY2h_gIvwoqXn6NA3h6Ehn05--0Zfas8y-tdhlKdyRInQbWoYbqxyrFgz4NN50GGgvCxLlqEKd5kEwQwvMveIjEaAIZQ$>

```
$ cd hat
$ . env.bash
$ java @bldr/args bld
Note: /tmp/babylon/hat/bldr/Bldr.java uses preview features of Java SE 24.
Note: Recompile with -Xlint:preview for details.
jextract not in path
no CUDA
no JExtract
we have CMake
we have OpenGL
we have OpenCL
no HIP
javac ERROR /tmp/babylon/hat/hat/src/main/java/hat/Accelerator.java  150:55 cannot find symbol
  symbol:   method quoted()
  location: variable quotableComputeContextConsumer of type hat.Accelerator.QuotableComputeContextConsumer
javac ERROR /tmp/babylon/hat/hat/src/main/java/hat/ComputeContext.java  143:54 cannot find symbol
```

Maybe I am missing something. Has the build changed?

Juan

________________________________
From: Juan Fumero
Sent: 17 January 2025 11:34
To: babylon-dev at openjdk.org <babylon-dev at openjdk.org>
Subject: Building HAT: error, missing file?

Hi all,
    I am building HAT from the latest commit: https://github.com/openjdk/babylon/commit/82e0e551b6d8db1ccef7c00f52f7fdc786400962 [github.com]<https://urldefense.com/v3/__https:/github.com/openjdk/babylon/commit/82e0e551b6d8db1ccef7c00f52f7fdc786400962__;!!PDiH4ENfjr2_Jw!EvCY2h_gIvwoqXn6NA3h6Ehn05--0Zfas8y-tdhlKdyRInQbWoYbqxyrFgz4NN50GGgvCxLlqEKd5kEwQwvMveIjEaAIZQ$>

It seems a file is missing.

Note that my pending branch works fine, but a few commits behind: https://github.com/jjfumero/babylon/tree/dev/examples [github.com]<https://urldefense.com/v3/__https:/github.com/jjfumero/babylon/tree/dev/examples__;!!PDiH4ENfjr2_Jw!EvCY2h_gIvwoqXn6NA3h6Ehn05--0Zfas8y-tdhlKdyRInQbWoYbqxyrFgz4NN50GGgvCxLlqEKd5kEwQwvMveJhPZnVhQ$>

Getting this error:

```bash
$  java @bldr/args bld
Note: /tmp/babylon/hat/bldr/Bldr.java uses preview features of Java SE 24.
Note: Recompile with -Xlint:preview for details.
no CUDA
we have JExtract
we have CMake
we have OpenGL
we have OpenCL
no HIP
error: Expected at least one header file
Usage: jextract <options> <header file>
Use --help for a list of possible options
Exception in thread "main" java.lang.RuntimeException: java.nio.file.NoSuchFileException: /tmp/babylon/hat/stage/jextract/opencl
      at bldr.Bldr$DirPathHolder.find(Bldr.java:135)
      at bldr.Bldr$DirPathHolder.find(Bldr.java:140)
      at bldr.Bldr$DirPathHolder.findFiles(Bldr.java:144)
      at bldr.Bldr$DirPathHolder.findFiles(Bldr.java:152)
      at bldr.Bldr$DirPathHolder.findFilesBySuffix(Bldr.java:156)
      at bldr.Bldr$SourcePathEntry.javaFiles(Bldr.java:484)
      at bldr.Bldr$SourcePath.lambda$javaFiles$0(Bldr.java:286)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
      at bldr.Bldr$SourcePath.javaFiles(Bldr.java:286)
      at bldr.Bldr.javac(Bldr.java:1133)
      at bldr.Bldr$JarBuilder.javac(Bldr.java:1545)
      at bldr.Bldr$JarBuilder.javac(Bldr.java:1567)
      at bld.lambda$main$2(bld:129)
      at bldr.Bldr.jarBuilder(Bldr.java:1642)
      at bldr.Bldr.jar(Bldr.java:1647)
      at bld.main(bld:126)
Caused by: java.nio.file.NoSuchFileException: /tmp/babylon/hat/stage/jextract/opencl
```

Cheers,
Juan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/babylon-dev/attachments/20250117/dcc9487c/attachment-0001.htm>


More information about the babylon-dev mailing list