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

[Question] How to disable all log ? #274

Closed
tpoisonooo opened this issue Mar 17, 2022 · 2 comments
Closed

[Question] How to disable all log ? #274

tpoisonooo opened this issue Mar 17, 2022 · 2 comments

Comments

@tpoisonooo
Copy link
Contributor

tpoisonooo commented Mar 17, 2022

I want to close all log print, I have tried build with/without spdlog and define SPDLOG_ACTIVE_LEVEL first.

#define SPDLOG_ACTIVE_LEVEL 5
#include "kompute/Kompute.hpp"
#include "Shader.hpp"

... mycode...

But the terminal still print something, just like this:

[2022-03-17 19:57:07.412] [info] [Manager.cpp:322] Using physical device index 0 found NVIDIA Tegra X1 (nvgpu)
tmp_kp_shader.comp
[2022-03-17 19:57:07.865] [info] [Algorithm.cpp:370] Kompute OpAlgoCreate setting dispatch size
[2022-03-17 19:57:07.865] [info] [Algorithm.cpp:387] Kompute OpAlgoCreate set dispatch size X: 4, Y: 4, Z: 1
[2022-03-17 19:57:07.870] [info] [Sequence.cpp:51] Kompute Sequence command now started recording
[2022-03-17 19:57:07.871] [info] [Sequence.cpp:77] Kompute Sequence command recording END
[2022-03-17 19:57:07.877] [info] [Sequence.cpp:218] Freeing CommandBuffer
[2022-03-17 19:57:07.877] [info] [Sequence.cpp:234] Destroying CommandPool
[2022-03-17 19:57:07.877] [info] [Sequence.cpp:251] Kompute Sequence clearing operations buffer
@axsaucedo
Copy link
Member

@tpoisonooo what value did you set for SPDLOG_ACTIVE_LEVEL? That should work regardless of whether spdlog is enabled - if you set SPDLOG_ACTIVE_LEVEL=5 it should basicall not log anything. If you are indeed using spdlog you can actually set the log level dynamically as well.

@axsaucedo
Copy link
Member

Closing - let me know if still an 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