Skip to content

Conversation

@singalsu
Copy link
Collaborator

@singalsu singalsu commented Jul 1, 2022

This avoids a currently happening error:

"error: Include graph for 'src_ipc4_int32_table.h' not generated,
too many nodes (89), threshold is 50. Consider increasing
DOT_GRAPH_MAX_NODES."

Signed-off-by: Seppo Ingalsuo [email protected]

@singalsu singalsu requested review from aiChaoSONG and marc-hb July 1, 2022 14:58
This avoids a currently happening error:

"error: Include graph for 'src_ipc4_int32_table.h' not generated,
too many nodes (89), threshold is 50. Consider increasing
DOT_GRAPH_MAX_NODES."

and another warning that happened with first increase to 100:

"warning: Included by graph for 'src.h' not generated, too many
nodes (111), threshold is 100. Consider increasing
DOT_GRAPH_MAX_NODES."

Signed-off-by: Seppo Ingalsuo <[email protected]>
@singalsu singalsu force-pushed the doxygen_address_too_many_nodes branch from 35bf79c to 1b2ded2 Compare July 1, 2022 15:25
@marc-hb
Copy link
Collaborator

marc-hb commented Jul 1, 2022

Not a big fan of this.

Can you share a screenshot of how a graph with ~ 100 nodes looks like? I'm afraid it won't be very useful - there must be a reason why the default is 50...

Another reason for this default: graph generation is by far the most time consuming part of doxygen. In fact it's often the ONLY time consuming part.

The alternative is to exclude generate code
https://www.doxygen.nl/manual/faq.html#faq_code How to exclude some code

Quoting a private chat from a certain @singalsu:

The file is computer generated and not interesting for document content.
...
But it needs to be added into the code generator too, so a bit more effort.

@singalsu singalsu changed the title Doxygen: Increase DOT_GRAPH_MAX_NODES to 100 Doxygen: Increase DOT_GRAPH_MAX_NODES to 120 Jul 1, 2022
@singalsu
Copy link
Collaborator Author

singalsu commented Jul 1, 2022

@marc-hb Agree, I will try the other approach. It's OK if it doesn't suppress all src.h documentation, only the big rates matrix tables. The latter warning (see commit text) was from src.h that's not computer generated.

@marc-hb
Copy link
Collaborator

marc-hb commented Jul 1, 2022

We run doxygen twice, the second time we add WARN_AS_ERROR = YES. This worked when I implemented this ages ago but now it merely prints and does not fail:

https://github.com/thesofproject/sof/runs/7138341491

@marc-hb
Copy link
Collaborator

marc-hb commented Jul 1, 2022

This escape was a bug in doxygen, it has been fixed: https://github.com/thesofproject/sof/runs/7157109995

@marc-hb
Copy link
Collaborator

marc-hb commented Jul 1, 2022

doxygen upgrade (and fix) submitted in

Currently blocked by this warning.

Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a simple way to exclude files in #5995 (and there are others)

EDIT: alternative to this PR added to #5979

@singalsu
Copy link
Collaborator Author

I found a simple way to exclude files in #5995 (and there are others)

EDIT: alternative to this PR added to #5979

@marc-hb Thanks for the patches! I hope you didn't manually do the edits. I assume you didn't update SRC's Matlab generator script so I need to add those lines output there, right?

@singalsu
Copy link
Collaborator Author

Marc's patches solve this issue, so this approach is not needed.

@singalsu singalsu closed this Jul 25, 2022
@marc-hb
Copy link
Collaborator

marc-hb commented Jul 25, 2022

@marc-hb Thanks for the patches! I hope you didn't manually do the edits.

No, I wrote a very small script of course :-)

I assume you didn't update SRC's Matlab generator script so I need to add those lines output there, right?

Unfortunately not, sorry I'm not familiar enough with Matlab. See commit message of 31b1478:

Temporary, manual solution until the \cond directive is also generated
by the sof/tools/tune/src/export.m script(s)

Welcome back from vacation! Can you do this? :-)

@singalsu singalsu deleted the doxygen_address_too_many_nodes branch September 15, 2022 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants