Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
548cec82
Commit
548cec82
authored
Oct 21, 2025
by
Jeff Daily
Browse files
Merge branch 'master' into rocm3
parents
2f7bd8ef
5dbfcdc4
Changes
195
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
61 additions
and
61 deletions
+61
-61
include/LightGBM/cuda/vector_cudahost.h
include/LightGBM/cuda/vector_cudahost.h
+3
-3
include/LightGBM/dataset.h
include/LightGBM/dataset.h
+3
-3
include/LightGBM/dataset_loader.h
include/LightGBM/dataset_loader.h
+3
-3
include/LightGBM/export.h
include/LightGBM/export.h
+3
-3
include/LightGBM/feature_group.h
include/LightGBM/feature_group.h
+3
-3
include/LightGBM/meta.h
include/LightGBM/meta.h
+4
-4
include/LightGBM/metric.h
include/LightGBM/metric.h
+3
-3
include/LightGBM/network.h
include/LightGBM/network.h
+3
-3
include/LightGBM/objective_function.h
include/LightGBM/objective_function.h
+3
-3
include/LightGBM/prediction_early_stop.h
include/LightGBM/prediction_early_stop.h
+3
-3
include/LightGBM/sample_strategy.h
include/LightGBM/sample_strategy.h
+3
-3
include/LightGBM/train_share_states.h
include/LightGBM/train_share_states.h
+3
-3
include/LightGBM/tree.h
include/LightGBM/tree.h
+3
-3
include/LightGBM/tree_learner.h
include/LightGBM/tree_learner.h
+3
-3
include/LightGBM/utils/array_args.h
include/LightGBM/utils/array_args.h
+3
-3
include/LightGBM/utils/binary_writer.h
include/LightGBM/utils/binary_writer.h
+3
-3
include/LightGBM/utils/byte_buffer.h
include/LightGBM/utils/byte_buffer.h
+3
-3
include/LightGBM/utils/chunked_array.hpp
include/LightGBM/utils/chunked_array.hpp
+3
-3
include/LightGBM/utils/common.h
include/LightGBM/utils/common.h
+3
-3
include/LightGBM/utils/file_io.h
include/LightGBM/utils/file_io.h
+3
-3
No files found.
include/LightGBM/cuda/vector_cudahost.h
View file @
548cec82
...
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All rights reserved.
*/
#ifndef LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#define LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#include <LightGBM/utils/common.h>
...
...
@@ -94,4 +94,4 @@ bool operator!=(const CHAllocator<T>&, const CHAllocator<U>&);
}
// namespace LightGBM
#endif // LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
include/LightGBM/dataset.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_DATASET_H_
#define LIGHTGBM_DATASET_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_DATASET_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_DATASET_H_
#include <LightGBM/arrow.h>
#include <LightGBM/config.h>
...
...
@@ -1071,4 +1071,4 @@ class Dataset {
}
// namespace LightGBM
#endif // L
ight
GBM_DATA_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_DATA
SET
_H_
include/LightGBM/dataset_loader.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_DATASET_LOADER_H_
#define LIGHTGBM_DATASET_LOADER_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_DATASET_LOADER_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_DATASET_LOADER_H_
#include <LightGBM/dataset.h>
...
...
@@ -107,4 +107,4 @@ class DatasetLoader {
}
// namespace LightGBM
#endif // LIGHTGBM_DATASET_LOADER_H_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_DATASET_LOADER_H_
include/LightGBM/export.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_EXPORT_H_
#define LIGHTGBM_EXPORT_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_EXPORT_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_EXPORT_H_
/** Macros for exporting symbols in MSVC/GCC/CLANG **/
...
...
@@ -22,4 +22,4 @@
#define LIGHTGBM_C_EXPORT LIGHTGBM_EXTERN_C
#endif
#endif
/**
LIGHTGBM_EXPORT_H_
**/
#endif
//
LIGHTGBM_INCLUDE_
LIGHTGBM_EXPORT_H_
include/LightGBM/feature_group.h
View file @
548cec82
...
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
*/
#ifndef LIGHTGBM_FEATURE_GROUP_H_
#define LIGHTGBM_FEATURE_GROUP_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_FEATURE_GROUP_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_FEATURE_GROUP_H_
#include <LightGBM/bin.h>
#include <LightGBM/meta.h>
...
...
@@ -629,4 +629,4 @@ class FeatureGroup {
}
// namespace LightGBM
#endif // LIGHTGBM_FEATURE_GROUP_H_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_FEATURE_GROUP_H_
include/LightGBM/meta.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_META_H_
#define LIGHTGBM_META_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_META_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_META_H_
#include <cstdint>
#include <functional>
...
...
@@ -83,9 +83,9 @@ const int kAlignedSize = 32;
// Refer to https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4127?view=vs-2019
#ifdef _MSC_VER
#pragma warning(disable : 4127)
#pragma warning(disable : 4127)
#endif
}
// namespace LightGBM
#endif // L
ight
GBM_META_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_META_H_
include/LightGBM/metric.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_METRIC_H_
#define LIGHTGBM_METRIC_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_METRIC_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_METRIC_H_
#include <LightGBM/config.h>
#include <LightGBM/dataset.h>
...
...
@@ -142,4 +142,4 @@ class DCGCalculator {
}
// namespace LightGBM
#endif // L
ight
GBM_METRIC_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_METRIC_H_
include/LightGBM/network.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_NETWORK_H_
#define LIGHTGBM_NETWORK_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_NETWORK_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_NETWORK_H_
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
...
...
@@ -314,4 +314,4 @@ class Network {
}
// namespace LightGBM
#endif // L
ight
GBM_NETWORK_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_NETWORK_H_
include/LightGBM/objective_function.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_OBJECTIVE_FUNCTION_H_
#define LIGHTGBM_OBJECTIVE_FUNCTION_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_OBJECTIVE_FUNCTION_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_OBJECTIVE_FUNCTION_H_
#include <LightGBM/config.h>
#include <LightGBM/dataset.h>
...
...
@@ -123,4 +123,4 @@ class ObjectiveFunction {
}
// namespace LightGBM
#endif // L
ight
GBM_OBJECTIVE_FUNCTION_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_OBJECTIVE_FUNCTION_H_
include/LightGBM/prediction_early_stop.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_PREDICTION_EARLY_STOP_H_
#define LIGHTGBM_PREDICTION_EARLY_STOP_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_PREDICTION_EARLY_STOP_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_PREDICTION_EARLY_STOP_H_
#include <LightGBM/export.h>
...
...
@@ -33,4 +33,4 @@ LIGHTGBM_EXPORT PredictionEarlyStopInstance CreatePredictionEarlyStopInstance(co
}
// namespace LightGBM
#endif // LIGHTGBM_PREDICTION_EARLY_STOP_H_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_PREDICTION_EARLY_STOP_H_
include/LightGBM/sample_strategy.h
View file @
548cec82
...
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_SAMPLE_STRATEGY_H_
#define LIGHTGBM_SAMPLE_STRATEGY_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_SAMPLE_STRATEGY_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_SAMPLE_STRATEGY_H_
#include <LightGBM/cuda/cuda_utils.hu>
#include <LightGBM/utils/random.h>
...
...
@@ -84,4 +84,4 @@ class SampleStrategy {
}
// namespace LightGBM
#endif // LIGHTGBM_SAMPLE_STRATEGY_H_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_SAMPLE_STRATEGY_H_
include/LightGBM/train_share_states.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_TRAIN_SHARE_STATES_H_
#define LIGHTGBM_TRAIN_SHARE_STATES_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_TRAIN_SHARE_STATES_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_TRAIN_SHARE_STATES_H_
#include <LightGBM/bin.h>
#include <LightGBM/feature_group.h>
...
...
@@ -363,4 +363,4 @@ struct TrainingShareStates {
}
// namespace LightGBM
#endif // L
ight
GBM_TRAIN_SHARE_STATES_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_TRAIN_SHARE_STATES_H_
include/LightGBM/tree.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_TREE_H_
#define LIGHTGBM_TREE_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_TREE_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_TREE_H_
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
...
...
@@ -728,4 +728,4 @@ inline int Tree::GetLeafByMap(const std::unordered_map<int, double>& feature_val
}
// namespace LightGBM
#endif // L
ight
GBM_TREE_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_TREE_H_
include/LightGBM/tree_learner.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_TREE_LEARNER_H_
#define LIGHTGBM_TREE_LEARNER_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_TREE_LEARNER_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_TREE_LEARNER_H_
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
...
...
@@ -115,4 +115,4 @@ class TreeLearner {
}
// namespace LightGBM
#endif // L
ight
GBM_TREE_LEARNER_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_TREE_LEARNER_H_
include/LightGBM/utils/array_args.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_UTILS_ARRAY_A
G
RS_H_
#define LIGHTGBM_UTILS_ARRAY_A
G
RS_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_ARRAY_AR
G
S_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_ARRAY_AR
G
S_H_
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/threading.h>
...
...
@@ -205,4 +205,4 @@ class ArrayArgs {
}
// namespace LightGBM
#endif
// L
ight
GBM_UTILS_ARRAY_A
G
RS_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_UTILS_ARRAY_AR
G
S_H_
include/LightGBM/utils/binary_writer.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2022 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_UTILS_BINARY_WRITER_H_
#define LIGHTGBM_UTILS_BINARY_WRITER_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_BINARY_WRITER_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_BINARY_WRITER_H_
#include <cstdlib>
#include <vector>
...
...
@@ -55,4 +55,4 @@ struct BinaryWriter {
};
}
// namespace LightGBM
#endif // LIGHTGBM_UTILS_BINARY_WRITER_H_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_BINARY_WRITER_H_
include/LightGBM/utils/byte_buffer.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2022 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_UTILS_BYTE_BUFFER_H_
#define LIGHTGBM_UTILS_BYTE_BUFFER_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_BYTE_BUFFER_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_BYTE_BUFFER_H_
#include <LightGBM/export.h>
#include <LightGBM/utils/binary_writer.h>
...
...
@@ -59,4 +59,4 @@ struct ByteBuffer final : public BinaryWriter {
}
// namespace LightGBM
#endif // L
ight
GBM_UTILS_BYTE_BUFFER_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_UTILS_BYTE_BUFFER_H_
include/LightGBM/utils/chunked_array.hpp
View file @
548cec82
...
...
@@ -4,8 +4,8 @@
*
* Author: Alberto Ferreira
*/
#ifndef LIGHTGBM_UTILS_CHUNKED_ARRAY_HPP_
#define LIGHTGBM_UTILS_CHUNKED_ARRAY_HPP_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_CHUNKED_ARRAY_HPP_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_CHUNKED_ARRAY_HPP_
#include <LightGBM/utils/log.h>
...
...
@@ -257,4 +257,4 @@ class ChunkedArray {
}
// namespace LightGBM
#endif // LIGHTGBM_UTILS_CHUNKED_ARRAY_HPP_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_CHUNKED_ARRAY_HPP_
include/LightGBM/utils/common.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_UTILS_COMMON_H_
#define LIGHTGBM_UTILS_COMMON_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_COMMON_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_COMMON_H_
#include <LightGBM/utils/json11.h>
#include <LightGBM/utils/log.h>
...
...
@@ -1272,4 +1272,4 @@ inline static std::string ArrayToString(const std::vector<T>& arr, size_t n) {
}
// namespace LightGBM
#endif // LIGHTGBM_UTILS_COMMON_H_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_COMMON_H_
include/LightGBM/utils/file_io.h
View file @
548cec82
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2018 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_UTILS_FILE_IO_H_
#define LIGHTGBM_UTILS_FILE_IO_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_FILE_IO_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_FILE_IO_H_
#include <LightGBM/utils/binary_writer.h>
...
...
@@ -75,4 +75,4 @@ struct VirtualFileReader {
}
// namespace LightGBM
#endif // L
ight
GBM_UTILS_FILE_IO_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_UTILS_FILE_IO_H_
Prev
1
2
3
4
5
6
7
8
…
10
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment