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

Environment Variable to override config at runtime #785

Open
SJ-Innovation opened this issue Jan 23, 2025 · 2 comments · May be fixed by #786
Open

Environment Variable to override config at runtime #785

SJ-Innovation opened this issue Jan 23, 2025 · 2 comments · May be fixed by #786

Comments

@SJ-Innovation
Copy link

SJ-Innovation commented Jan 23, 2025

In the cases of broken kernels its useful to define VOLK_GENERIC=1 environment variable to globally use the reference implementation as a workaround. In situations where a single kernel is broken doing this kills performance for the rest of GNURadio. I propose a more granular environment variable set derived from the names of the kernels themselves to specify / override the config file.

I'll make a PR for my own purposes, with the hope that this can be merged for others to benefit from.

@marcusmueller
Copy link
Member

What exists: VOLK_CONFIGPATH; e.g.,

mkdir -p /etc/volk
echo 'volk_64u_popcnt u_zuse_z2_simd_extensions  u_zuse_z2_simd_extensions' > /etc/volk/volk_config
export VOLK_CONFIG_PATH=/etc
# volk uses /etc/volk/volk_config from here on. 

@SJ-Innovation
Copy link
Author

Am aware of this, though have multiple concurrent operations running so would rather not be changing global configurations all the time.

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 a pull request may close this issue.

2 participants