Building HAT: error, missing file?

Juan Fumero juan.fumero at manchester.ac.uk
Fri Jan 17 10:54:19 UTC 2025


Tracing back, on my system fails after this commit:

https://github.com/openjdk/babylon/commit/82e0e551b6d8db1ccef7c00f52f7fdc786400962

```
$ 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

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

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/c4c806e5/attachment-0001.htm>


More information about the babylon-dev mailing list