-
Notifications
You must be signed in to change notification settings - Fork 921
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
Use rapids-logger to generate the cudf logger #17307
Changes from 11 commits
2a4f252
6e3147b
b6e4716
9ca16a8
6fc0211
366fcbf
02d8452
7848713
2951502
6a5e418
13b42ae
8085f9c
92abe86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,11 @@ | |
#include "getenv_or.hpp" | ||
|
||
#include <cudf/detail/utilities/integer_utils.hpp> | ||
#include <cudf/detail/utilities/logger.hpp> | ||
#include <cudf/io/config_utils.hpp> | ||
#include <cudf/logger.hpp> | ||
|
||
#include <dlfcn.h> | ||
#include <sys/stat.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need this for functions like |
||
|
||
#include <cerrno> | ||
#include <cstring> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused as these are two separate env variables but seem to define the same thing? Can we combine them so we only have one env var for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LIBCUDF_LOGGING_LEVEL
is a CMake variable, whileCUDF_LOG_ACTIVE_LEVEL
is a preprocessor definition (#define
in C/C++). They are independent entities that both need to exist since they serve different purposes. If you prefer, I can align the CMake variable's name with the underlying define, but that would be a breaking change for the build.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realize that
LIBCUDF_LOGGING_LEVEL
is CMake variable but there is an env variable with the same name. So technically we have at least 3 logging variables. Probably my previous request to combine all of them into one is impossible. Maybe rename them to be something else better to understand? For example, can be likeCUDF_COMPILE_LOG_LEVEL
(so we know it is used for compiling C++ code), andCUDF_ENV_LOG_LEVEL
so we know it is environment variable used at runtime etc.