From e31244cf33c4ede884307963a33dee0945cf6789 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Sat, 6 Feb 2021 15:53:40 -0600 Subject: [PATCH] fix typos in log messages (#3914) --- src/io/dataset.cpp | 2 +- src/network/network.cpp | 10 +++++----- src/treelearner/cuda_tree_learner.cpp | 4 ++-- src/treelearner/gpu_tree_learner.cpp | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/io/dataset.cpp b/src/io/dataset.cpp index c951f8b6b4d3..1d4f85fd24a9 100644 --- a/src/io/dataset.cpp +++ b/src/io/dataset.cpp @@ -1232,7 +1232,7 @@ void Dataset::ConstructHistogramsInner( } } -// explicitly initilize template methods, for cross module call +// explicitly initialize template methods, for cross module call template void Dataset::ConstructHistogramsInner( const std::vector& is_feature_used, const data_size_t* data_indices, data_size_t num_data, const score_t* gradients, const score_t* hessians, diff --git a/src/network/network.cpp b/src/network/network.cpp index 3976d72a6926..10045c9711a1 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -67,7 +67,7 @@ void Network::Dispose() { void Network::Allreduce(char* input, comm_size_t input_size, int type_size, char* output, const ReduceFunction& reducer) { if (num_machines_ <= 1) { - Log::Fatal("Please initilize the network interface first"); + Log::Fatal("Please initialize the network interface first"); } comm_size_t count = input_size / type_size; // if small package or small count , do it by all gather.(reduce the communication times.) @@ -94,7 +94,7 @@ void Network::Allreduce(char* input, comm_size_t input_size, int type_size, char void Network::AllreduceByAllGather(char* input, comm_size_t input_size, int type_size, char* output, const ReduceFunction& reducer) { if (num_machines_ <= 1) { - Log::Fatal("Please initilize the network interface first"); + Log::Fatal("Please initialize the network interface first"); } // assign blocks comm_size_t all_size = input_size * num_machines_; @@ -120,7 +120,7 @@ void Network::AllreduceByAllGather(char* input, comm_size_t input_size, int type void Network::Allgather(char* input, comm_size_t send_size, char* output) { if (num_machines_ <= 1) { - Log::Fatal("Please initilize the network interface first"); + Log::Fatal("Please initialize the network interface first"); return; } // assign blocks @@ -136,7 +136,7 @@ void Network::Allgather(char* input, comm_size_t send_size, char* output) { void Network::Allgather(char* input, const comm_size_t* block_start, const comm_size_t* block_len, char* output, comm_size_t all_size) { if (num_machines_ <= 1) { - Log::Fatal("Please initilize the network interface first"); + Log::Fatal("Please initialize the network interface first"); } if (allgather_ext_fun_ != nullptr) { return allgather_ext_fun_(input, block_len[rank_], block_start, block_len, num_machines_, output, all_size); @@ -233,7 +233,7 @@ void Network::ReduceScatter(char* input, comm_size_t input_size, int type_size, const comm_size_t* block_start, const comm_size_t* block_len, char* output, comm_size_t output_size, const ReduceFunction& reducer) { if (num_machines_ <= 1) { - Log::Fatal("Please initilize the network interface first"); + Log::Fatal("Please initialize the network interface first"); } if (reduce_scatter_ext_fun_ != nullptr) { return reduce_scatter_ext_fun_(input, input_size, type_size, block_start, block_len, num_machines_, output, output_size, reducer); diff --git a/src/treelearner/cuda_tree_learner.cpp b/src/treelearner/cuda_tree_learner.cpp index 46f1f1f03d0f..5e4ccaeb9a52 100644 --- a/src/treelearner/cuda_tree_learner.cpp +++ b/src/treelearner/cuda_tree_learner.cpp @@ -470,10 +470,10 @@ void CUDATreeLearner::InitGPU(int num_gpu) { Log::Fatal("bin size %d cannot run on GPU", max_num_bin_); } if (max_num_bin_ == 65) { - Log::Warning("Setting max_bin to 63 is sugguested for best performance"); + Log::Warning("Setting max_bin to 63 is suggested for best performance"); } if (max_num_bin_ == 17) { - Log::Warning("Setting max_bin to 15 is sugguested for best performance"); + Log::Warning("Setting max_bin to 15 is suggested for best performance"); } // get num_dense_feature_groups_ diff --git a/src/treelearner/gpu_tree_learner.cpp b/src/treelearner/gpu_tree_learner.cpp index efe36072544b..ec4e3e15b648 100644 --- a/src/treelearner/gpu_tree_learner.cpp +++ b/src/treelearner/gpu_tree_learner.cpp @@ -720,10 +720,10 @@ void GPUTreeLearner::InitGPU(int platform_id, int device_id) { Log::Fatal("bin size %d cannot run on GPU", max_num_bin_); } if (max_num_bin_ == 65) { - Log::Warning("Setting max_bin to 63 is sugguested for best performance"); + Log::Warning("Setting max_bin to 63 is suggested for best performance"); } if (max_num_bin_ == 17) { - Log::Warning("Setting max_bin to 15 is sugguested for best performance"); + Log::Warning("Setting max_bin to 15 is suggested for best performance"); } ctx_ = boost::compute::context(dev_); queue_ = boost::compute::command_queue(ctx_, dev_);