Unverified Commit 040b1c54 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] ignore CUDA-related strings in Python logger test (#3874)

* Update test_utilities.py

* Update cuda.yml

* Update test_utilities.py

* Update cuda_tree_learner.cpp

* Update cuda.yml
parent 6c9d0c30
...@@ -265,7 +265,7 @@ void CUDATreeLearner::CountDenseFeatureGroups() { ...@@ -265,7 +265,7 @@ void CUDATreeLearner::CountDenseFeatureGroups() {
} }
} }
if (!num_dense_feature_groups_) { if (!num_dense_feature_groups_) {
Log::Warning("GPU acceleration is disabled because no non-trival dense features can be found"); Log::Warning("GPU acceleration is disabled because no non-trivial dense features can be found");
} }
} }
......
...@@ -81,7 +81,10 @@ WARNING | More than one metric available, picking one to plot. ...@@ -81,7 +81,10 @@ WARNING | More than one metric available, picking one to plot.
"INFO | [LightGBM] [Info] Using GPU Device:", "INFO | [LightGBM] [Info] Using GPU Device:",
"INFO | [LightGBM] [Info] Compiling OpenCL Kernel with 16 bins...", "INFO | [LightGBM] [Info] Compiling OpenCL Kernel with 16 bins...",
"INFO | [LightGBM] [Info] GPU programs have been built", "INFO | [LightGBM] [Info] GPU programs have been built",
"INFO | [LightGBM] [Warning] GPU acceleration is disabled because no non-trivial dense features can be found" "INFO | [LightGBM] [Warning] GPU acceleration is disabled because no non-trivial dense features can be found",
"INFO | [LightGBM] [Warning] Using sparse features with CUDA is currently not supported.",
"INFO | [LightGBM] [Warning] CUDA currently requires double precision calculations.",
"INFO | [LightGBM] [Info] LightGBM using CUDA trainer with DP float!!"
] ]
with open(log_filename, "rt", encoding="utf-8") as f: with open(log_filename, "rt", encoding="utf-8") as f:
actual_log = f.read().strip() actual_log = f.read().strip()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment