Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown 'Table' #79

Open
Maxzor opened this issue Jan 30, 2022 · 3 comments
Open

Markdown 'Table' #79

Maxzor opened this issue Jan 30, 2022 · 3 comments

Comments

@Maxzor
Copy link

Maxzor commented Jan 30, 2022

Hello, I am facing some kind of a non-standard table in markdown:
Look for --setprofile SETPROFILE: The Compute Profile accepts 1 or n parameters, either in there: https://github.com/RadeonOpenCompute/rocm_smi_lib/blob/master/python_smi_tools/README.md

--setprofile SETPROFILE:
    The Compute Profile accepts 1 or n parameters, either the Profile to select (see --showprofile for a list
    of preset Power Profiles) or a quoted string of values for the CUSTOM profile.
    NOTE: These values can vary based on the ASIC, and may include:
SCLK_PROFILE_ENABLE  - Whether or not to apply the 3 following SCLK settings (0=disable,1=enable)
    NOTE: This is a hidden field. If set to 0, the following 3 values are displayed as '-'
SCLK_UP_HYST         - Delay before sclk is increased (in milliseconds)
SCLK_DOWN_HYST       - Delay before sclk is decresed (in milliseconds)
SCLK_ACTIVE_LEVEL    - Workload required before sclk levels change (in %)
MCLK_PROFILE_ENABLE  - Whether or not to apply the 3 following MCLK settings (0=disable,1=enable)
    NOTE: This is a hidden field. If set to 0, the following 3 values are displayed as '-'
MCLK_UP_HYST         - Delay before mclk is increased (in milliseconds)
MCLK_DOWN_HYST       - Delay before mclk is decresed (in milliseconds)
MCLK_ACTIVE_LEVEL    - Workload required before mclk levels change (in %)

BUSY_SET_POINT       - Threshold for raw activity level before levels change
FPS                  - Frames Per Second
USE_RLC_BUSY         - When set to 1, DPM is switched up as long as RLC busy message is received
MIN_ACTIVE_LEVEL     - Workload required before levels change (in %)

It gives with ronn --roff:

     roff: ./README                                   
tbl:<standard input>:22: unrecognised format 'O'
tbl:<standard input>:22: giving up on this table

Whatabouta nice table such as one that can be found in man 3 abs?

.TS
allbox;
lb lb lb
l l l.
Interface	Attribute	Value
T{
.BR abs (),
.BR labs (),
.BR llabs (),
.BR imaxabs ()
T}	Thread safety	MT-Safe
.TE

I don't speak ruby :< Best regards and thank you for the tool, Maxime

P.S. You already do that for correctly-formatted markdown tables! Awesome!

@Maxzor
Copy link
Author

Maxzor commented Jan 30, 2022

Bold in table headers is not translated
Cannot multi-line in a markdown table cell with a html <br> tag. Found a bad workaround at debian librocm-smi-tools package, roc-smi manpage, uploading soon.

@dmitrii-galantsev
Copy link

Looks like it works just without the <br> tag.
My fix in the rocm-smi repo should appear sometime soon. ROCm/rocm_smi_lib@275108f (<--this link will be broken for a few days until we publish the change upstream)

Markdown:

| Setting             | Description                                        |
|---------------------|----------------------------------------------------|
| SCLK_PROFILE_ENABLE | Whether or not to apply the 3 following SCLK settings (0=disable,1=enable) |
|                     | **NOTE: This is a hidden field. If set to 0, the following 3 values are displayed as '-’** |
| SCLK_UP_HYST        | Delay before sclk is increased (in milliseconds)   |
| SCLK_DOWN_HYST      | Delay before sclk is decresed (in milliseconds)    |
| SCLK_ACTIVE_LEVEL   | Workload required before sclk levels change (in %) |
| MCLK_PROFILE_ENABLE | Whether or not to apply the 3 following MCLK settings (0=disable,1=enable) |
|                     | **NOTE: This is a hidden field. If set to 0, the following 3 values are displayed as '-'** |
| MCLK_UP_HYST        | Delay before mclk is increased (in milliseconds)   |
| MCLK_DOWN_HYST      | Delay before mclk is decresed (in milliseconds)    |
| MCLK_ACTIVE_LEVEL   | Workload required before mclk levels change (in %) |

Output:
image

@dmitrii-galantsev
Copy link

@apjanke You can close the issue :)

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

No branches or pull requests

2 participants