Skip to content

Extra-Outputs not generated with Cmake ? #8664

Closed

Description

@FabianSchuetze

Thanks for the wonderful library.

I would like to generate the STMT_HTML file with cmake, but it doesn't seem to be generated in the example apps, or? For example, according to the docs for the wavelet app, I change the cmake file as follows:

 # Filters
-add_halide_library(daubechies_x FROM wavelet.generator)
+add_halide_library(daubechies_x FROM wavelet.generator STMT_HTML)
 add_halide_library(inverse_daubechies_x FROM wavelet.generator)
 add_halide_library(haar_x FROM wavelet.generator)
 add_halide_library(inverse_haar_x FROM wavelet.generator)

I can build the app, but I don't see any *html file. I can generate the stmt_html output by calling the generator manually, but I wonder if it shouldn't be generated as part of the build process?

Activity

  1. alexreinking commented on Jul 1, 2025

    @alexreinking
    Member

    You're missing an argument to STMT_HTML. The argument should be a variable name to which to write the output path for the .stmt.html file.

    Note the syntax from the docs is:

    add_halide_library(
        ...
        [<extra-output> OUTVAR]
        ...
    )
    

    I'm not sure cmake_parse_arguments will do the right thing if you don't supply the output variable name.

  2. FabianSchuetze commented on Jul 1, 2025

    @FabianSchuetze
    ContributorAuthor

    Ouch... It seems the heatwave we're currently experiencing is roasting my brain. Thanks a lot!

    Nevertheless, would that be an opportunity for a verbose check?

  3. locked and limited conversation to collaborators on Jul 1, 2025
  4. converted this issue into a discussion #8666 on Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions