This is an automated email from the ASF dual-hosted git repository.
chengchengjin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new 781392d80d [GLUTEN-8851][VL] Use separate debug config for cudf (#9466)
781392d80d is described below
commit 781392d80db4c8cf2bb87da5be45a5e407e7fc08
Author: Jin Chengcheng <[email protected]>
AuthorDate: Thu May 1 14:19:47 2025 +0100
[GLUTEN-8851][VL] Use separate debug config for cudf (#9466)
---
cpp/velox/compute/VeloxBackend.cc | 2 +-
cpp/velox/config/VeloxConfig.h | 2 ++
.../src/main/scala/org/apache/gluten/config/GlutenConfig.scala | 6 ++++++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/cpp/velox/compute/VeloxBackend.cc
b/cpp/velox/compute/VeloxBackend.cc
index 7fc6e2408c..10f1084912 100644
--- a/cpp/velox/compute/VeloxBackend.cc
+++ b/cpp/velox/compute/VeloxBackend.cc
@@ -161,7 +161,7 @@ void VeloxBackend::init(
#endif
#ifdef GLUTEN_ENABLE_GPU
- FLAGS_velox_cudf_debug = backendConf_->get<bool>(kDebugModeEnabled, false);
+ FLAGS_velox_cudf_debug = backendConf_->get<bool>(kDebugCudf,
kDebugCudfDefault);
if (backendConf_->get<bool>(kCudfEnabled, kCudfEnabledDefault)) {
velox::cudf_velox::registerCudf();
}
diff --git a/cpp/velox/config/VeloxConfig.h b/cpp/velox/config/VeloxConfig.h
index 1a9b14f1e4..e837314199 100644
--- a/cpp/velox/config/VeloxConfig.h
+++ b/cpp/velox/config/VeloxConfig.h
@@ -150,6 +150,8 @@ const uint32_t kGlogSeverityLevelDefault = 1;
#ifdef GLUTEN_ENABLE_GPU
const std::string kCudfEnabled = "spark.gluten.sql.columnar.cudf";
const bool kCudfEnabledDefault = "false";
+const std::string kDebugCudf = "spark.gluten.sql.debug.cudf";
+const bool kDebugCudfDefault = "false";
#endif
// Query trace
diff --git
a/shims/common/src/main/scala/org/apache/gluten/config/GlutenConfig.scala
b/shims/common/src/main/scala/org/apache/gluten/config/GlutenConfig.scala
index 5f7000ef10..835245bfb6 100644
--- a/shims/common/src/main/scala/org/apache/gluten/config/GlutenConfig.scala
+++ b/shims/common/src/main/scala/org/apache/gluten/config/GlutenConfig.scala
@@ -1388,6 +1388,12 @@ object GlutenConfig {
.stringConf
.createWithDefault("/tmp")
+ val DEBUG_CUDF =
+ buildStaticConf("spark.gluten.sql.debug.cudf")
+ .internal()
+ .booleanConf
+ .createWithDefault(false)
+
val UT_STATISTIC =
buildStaticConf("spark.gluten.sql.ut.statistic")
.internal()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]