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
c5c60c8f
Unverified
Commit
c5c60c8f
authored
Oct 17, 2025
by
Nikita Titov
Committed by
GitHub
Oct 17, 2025
Browse files
[ci][c++] fixed `build/header_guard` errors from cpplint (#7055)
parent
32781bae
Changes
100
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
74 additions
and
66 deletions
+74
-66
.pre-commit-config.yaml
.pre-commit-config.yaml
+2
-1
R-package/src/lightgbm_R.h
R-package/src/lightgbm_R.h
+3
-3
include/LightGBM/application.h
include/LightGBM/application.h
+3
-3
include/LightGBM/arrow.h
include/LightGBM/arrow.h
+3
-3
include/LightGBM/bin.h
include/LightGBM/bin.h
+3
-3
include/LightGBM/boosting.h
include/LightGBM/boosting.h
+3
-3
include/LightGBM/c_api.h
include/LightGBM/c_api.h
+3
-3
include/LightGBM/config.h
include/LightGBM/config.h
+3
-3
include/LightGBM/cuda/cuda_algorithms.hpp
include/LightGBM/cuda/cuda_algorithms.hpp
+3
-3
include/LightGBM/cuda/cuda_column_data.hpp
include/LightGBM/cuda/cuda_column_data.hpp
+5
-5
include/LightGBM/cuda/cuda_metadata.hpp
include/LightGBM/cuda/cuda_metadata.hpp
+5
-5
include/LightGBM/cuda/cuda_metric.hpp
include/LightGBM/cuda/cuda_metric.hpp
+3
-3
include/LightGBM/cuda/cuda_objective_function.hpp
include/LightGBM/cuda/cuda_objective_function.hpp
+3
-3
include/LightGBM/cuda/cuda_random.hpp
include/LightGBM/cuda/cuda_random.hpp
+3
-3
include/LightGBM/cuda/cuda_rocm_interop.h
include/LightGBM/cuda/cuda_rocm_interop.h
+8
-2
include/LightGBM/cuda/cuda_row_data.hpp
include/LightGBM/cuda/cuda_row_data.hpp
+5
-4
include/LightGBM/cuda/cuda_split_info.hpp
include/LightGBM/cuda/cuda_split_info.hpp
+5
-5
include/LightGBM/cuda/cuda_tree.hpp
include/LightGBM/cuda/cuda_tree.hpp
+5
-5
include/LightGBM/cuda/vector_cudahost.h
include/LightGBM/cuda/vector_cudahost.h
+3
-3
include/LightGBM/dataset.h
include/LightGBM/dataset.h
+3
-3
No files found.
.pre-commit-config.yaml
View file @
c5c60c8f
...
@@ -27,8 +27,9 @@ repos:
...
@@ -27,8 +27,9 @@ repos:
hooks
:
hooks
:
-
id
:
cpplint
-
id
:
cpplint
args
:
args
:
-
--root=..
# workaround to get correct header guard pattern
-
--recursive
-
--recursive
-
--filter=-build/include_subdir,-
build/header_guard,-
whitespace/line_length
-
--filter=-build/include_subdir,-whitespace/line_length
-
repo
:
local
-
repo
:
local
hooks
:
hooks
:
-
id
:
check-omp-pragmas
-
id
:
check-omp-pragmas
...
...
R-package/src/lightgbm_R.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifndef LIGHTGBM_R_H_
#ifndef
LIGHTGBM_R_PACKAGE_SRC_
LIGHTGBM_R_H_
#define LIGHTGBM_R_H_
#define
LIGHTGBM_R_PACKAGE_SRC_
LIGHTGBM_R_H_
#include <LightGBM/c_api.h>
#include <LightGBM/c_api.h>
...
@@ -903,4 +903,4 @@ LIGHTGBM_C_EXPORT SEXP LGBM_SetMaxThreads_R(
...
@@ -903,4 +903,4 @@ LIGHTGBM_C_EXPORT SEXP LGBM_SetMaxThreads_R(
SEXP
num_threads
SEXP
num_threads
);
);
#endif // LIGHTGBM_R_H_
#endif //
LIGHTGBM_R_PACKAGE_SRC_
LIGHTGBM_R_H_
include/LightGBM/application.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifndef LIGHTGBM_APPLICATION_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_APPLICATION_H_
#define LIGHTGBM_APPLICATION_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_APPLICATION_H_
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -89,4 +89,4 @@ inline void Application::Run() {
...
@@ -89,4 +89,4 @@ inline void Application::Run() {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ight
GBM_APPLICATION_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_APPLICATION_H_
include/LightGBM/arrow.h
View file @
c5c60c8f
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
* Author: Oliver Borchert
* Author: Oliver Borchert
*/
*/
#ifndef LIGHTGBM_ARROW_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_ARROW_H_
#define LIGHTGBM_ARROW_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_ARROW_H_
#include <algorithm>
#include <algorithm>
#include <cstdint>
#include <cstdint>
...
@@ -296,4 +296,4 @@ class ArrowTable {
...
@@ -296,4 +296,4 @@ class ArrowTable {
#include "arrow.tpp"
#include "arrow.tpp"
#endif
/
*
LIGHTGBM_ARROW_H_
*/
#endif
/
/
LIGHTGBM_INCLUDE_
LIGHTGBM_ARROW_H_
include/LightGBM/bin.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifndef LIGHTGBM_BIN_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_BIN_H_
#define LIGHTGBM_BIN_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_BIN_H_
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/common.h>
...
@@ -651,4 +651,4 @@ inline uint32_t BinMapper::ValueToBin(double value) const {
...
@@ -651,4 +651,4 @@ inline uint32_t BinMapper::ValueToBin(double value) const {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ight
GBM_BIN_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_BIN_H_
include/LightGBM/boosting.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifndef LIGHTGBM_BOOSTING_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_BOOSTING_H_
#define LIGHTGBM_BOOSTING_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_BOOSTING_H_
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -328,4 +328,4 @@ class GBDTBase : public Boosting {
...
@@ -328,4 +328,4 @@ class GBDTBase : public Boosting {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ight
GBM_BOOSTING_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_BOOSTING_H_
include/LightGBM/c_api.h
View file @
c5c60c8f
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
* .
* .
* The reason is that they are called frequently, and the type conversion on them may be time-cost.
* The reason is that they are called frequently, and the type conversion on them may be time-cost.
*/
*/
#ifndef LIGHTGBM_C_API_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_C_API_H_
#define LIGHTGBM_C_API_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_C_API_H_
#include <LightGBM/arrow.h>
#include <LightGBM/arrow.h>
#include <LightGBM/export.h>
#include <LightGBM/export.h>
...
@@ -1663,4 +1663,4 @@ INLINE_FUNCTION void LGBM_SetLastError(const char* msg) {
...
@@ -1663,4 +1663,4 @@ INLINE_FUNCTION void LGBM_SetLastError(const char* msg) {
#endif
#endif
}
}
#endif
/* LIGHTGBM_C_API_H_ */
#endif
/*
LIGHTGBM_INCLUDE_
LIGHTGBM_C_API_H_ */
include/LightGBM/config.h
View file @
c5c60c8f
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
* - param is only used by the CLI (especially the "predict" and "convert_model" tasks)
* - param is only used by the CLI (especially the "predict" and "convert_model" tasks)
* - param is related to LightGBM writing files (e.g. "output_model", "save_binary")
* - param is related to LightGBM writing files (e.g. "output_model", "save_binary")
*/
*/
#ifndef LIGHTGBM_CONFIG_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_CONFIG_H_
#define LIGHTGBM_CONFIG_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_CONFIG_H_
#include <LightGBM/export.h>
#include <LightGBM/export.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -1320,4 +1320,4 @@ inline std::string ParseMetricAlias(const std::string& type) {
...
@@ -1320,4 +1320,4 @@ inline std::string ParseMetricAlias(const std::string& type) {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ight
GBM_CONFIG_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_CONFIG_H_
include/LightGBM/cuda/cuda_algorithms.hpp
View file @
c5c60c8f
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All rights reserved.
* Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All rights reserved.
*/
*/
#ifndef LIGHTGBM_CUDA_CUDA_ALGORITHMS_HPP_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_ALGORITHMS_HPP_
#define LIGHTGBM_CUDA_CUDA_ALGORITHMS_HPP_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_ALGORITHMS_HPP_
#ifdef USE_CUDA
#ifdef USE_CUDA
...
@@ -620,4 +620,4 @@ __device__ VAL_T PercentileDevice(const VAL_T* values,
...
@@ -620,4 +620,4 @@ __device__ VAL_T PercentileDevice(const VAL_T* values,
}
// namespace LightGBM
}
// namespace LightGBM
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_CUDA_CUDA_ALGORITHMS_HPP_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_ALGORITHMS_HPP_
include/LightGBM/cuda/cuda_column_data.hpp
View file @
c5c60c8f
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifdef USE_CUDA
#ifndef LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_COLUMN_DATA_HPP_
#define LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_COLUMN_DATA_HPP_
#ifndef LIGHTGBM_CUDA_CUDA_COLUMN_DATA_HPP_
#ifdef USE_CUDA
#define LIGHTGBM_CUDA_CUDA_COLUMN_DATA_HPP_
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/cuda/cuda_utils.hu>
#include <LightGBM/cuda/cuda_utils.hu>
...
@@ -137,6 +137,6 @@ class CUDAColumnData {
...
@@ -137,6 +137,6 @@ class CUDAColumnData {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_CUDA_CUDA_COLUMN_DATA_HPP_
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_COLUMN_DATA_HPP_
include/LightGBM/cuda/cuda_metadata.hpp
View file @
c5c60c8f
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifdef USE_CUDA
#ifndef LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_METADATA_HPP_
#define LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_METADATA_HPP_
#ifndef LIGHTGBM_CUDA_CUDA_METADATA_HPP_
#ifdef USE_CUDA
#define LIGHTGBM_CUDA_CUDA_METADATA_HPP_
#include <LightGBM/cuda/cuda_utils.hu>
#include <LightGBM/cuda/cuda_utils.hu>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -53,6 +53,6 @@ class CUDAMetadata {
...
@@ -53,6 +53,6 @@ class CUDAMetadata {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_CUDA_CUDA_METADATA_HPP_
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_METADATA_HPP_
include/LightGBM/cuda/cuda_metric.hpp
View file @
c5c60c8f
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_CUDA_CUDA_METRIC_HPP_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_METRIC_HPP_
#define LIGHTGBM_CUDA_CUDA_METRIC_HPP_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_METRIC_HPP_
#ifdef USE_CUDA
#ifdef USE_CUDA
...
@@ -41,4 +41,4 @@ class CUDAMetricInterface: public HOST_METRIC {
...
@@ -41,4 +41,4 @@ class CUDAMetricInterface: public HOST_METRIC {
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_CUDA_CUDA_METRIC_HPP_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_METRIC_HPP_
include/LightGBM/cuda/cuda_objective_function.hpp
View file @
c5c60c8f
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_CUDA_CUDA_OBJECTIVE_FUNCTION_HPP_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_OBJECTIVE_FUNCTION_HPP_
#define LIGHTGBM_CUDA_CUDA_OBJECTIVE_FUNCTION_HPP_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_OBJECTIVE_FUNCTION_HPP_
#ifdef USE_CUDA
#ifdef USE_CUDA
...
@@ -83,4 +83,4 @@ class CUDAObjectiveInterface: public HOST_OBJECTIVE {
...
@@ -83,4 +83,4 @@ class CUDAObjectiveInterface: public HOST_OBJECTIVE {
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_CUDA_CUDA_OBJECTIVE_FUNCTION_HPP_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_OBJECTIVE_FUNCTION_HPP_
include/LightGBM/cuda/cuda_random.hpp
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* Copyright (c) 2021 Microsoft Corporation. All rights reserved.
* Copyright (c) 2021 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifndef LIGHTGBM_CUDA_CUDA_RANDOM_HPP_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_RANDOM_HPP_
#define LIGHTGBM_CUDA_CUDA_RANDOM_HPP_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_RANDOM_HPP_
#ifdef USE_CUDA
#ifdef USE_CUDA
...
@@ -71,4 +71,4 @@ class CUDARandom {
...
@@ -71,4 +71,4 @@ class CUDARandom {
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_CUDA_CUDA_RANDOM_HPP_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_CUDA_RANDOM_HPP_
include/LightGBM/cuda/cuda_rocm_interop.h
View file @
c5c60c8f
/*!
/*!
* Copyright(C) 2023 Advanced Micro Devices, Inc. All rights reserved.
* Copyright(C) 2023 Advanced Micro Devices, Inc. All rights reserved.
*/
*/
#ifndef LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_ROCM_INTEROP_H_
#define LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_ROCM_INTEROP_H_
#ifdef USE_CUDA
#ifdef USE_CUDA
#if defined(__HIP_PLATFORM_AMD__) || defined(__HIP__)
#if defined(__HIP_PLATFORM_AMD__) || defined(__HIP__)
...
@@ -15,6 +19,8 @@
...
@@ -15,6 +19,8 @@
#else
#else
// CUDA warpSize is not a constexpr, but always 32
// CUDA warpSize is not a constexpr, but always 32
#define WARPSIZE 32
#define WARPSIZE 32
#endif
#endif // defined(__HIP_PLATFORM_AMD__) || defined(__HIP__)
#endif // USE_CUDA
#endif
#endif
// LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_ROCM_INTEROP_H_
include/LightGBM/cuda/cuda_row_data.hpp
View file @
c5c60c8f
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifdef USE_CUDA
#ifndef LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_ROW_DATA_HPP_
#define LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_ROW_DATA_HPP_
#ifndef LIGHTGBM_CUDA_CUDA_ROW_DATA_HPP_
#ifdef USE_CUDA
#define LIGHTGBM_CUDA_CUDA_ROW_DATA_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/bin.h>
#include <LightGBM/config.h>
#include <LightGBM/config.h>
...
@@ -175,6 +175,7 @@ class CUDARowData {
...
@@ -175,6 +175,7 @@ class CUDARowData {
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_CUDA_CUDA_ROW_DATA_HPP_
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_ROW_DATA_HPP_
include/LightGBM/cuda/cuda_split_info.hpp
View file @
c5c60c8f
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
* Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All rights reserved.
* Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All rights reserved.
*/
*/
#ifdef USE_CUDA
#ifndef LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_SPLIT_INFO_HPP_
#define LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_SPLIT_INFO_HPP_
#ifndef LIGHTGBM_CUDA_CUDA_SPLIT_INFO_HPP_
#ifdef USE_CUDA
#define LIGHTGBM_CUDA_CUDA_SPLIT_INFO_HPP_
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -103,6 +103,6 @@ class CUDASplitInfo {
...
@@ -103,6 +103,6 @@ class CUDASplitInfo {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_CUDA_CUDA_SPLIT_INFO_HPP_
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_SPLIT_INFO_HPP_
include/LightGBM/cuda/cuda_tree.hpp
View file @
c5c60c8f
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifdef USE_CUDA
#ifndef LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_TREE_HPP_
#define LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_TREE_HPP_
#ifndef LIGHTGBM_CUDA_CUDA_TREE_HPP_
#ifdef USE_CUDA
#define LIGHTGBM_CUDA_CUDA_TREE_HPP_
#include <LightGBM/cuda/cuda_column_data.hpp>
#include <LightGBM/cuda/cuda_column_data.hpp>
#include <LightGBM/cuda/cuda_split_info.hpp>
#include <LightGBM/cuda/cuda_split_info.hpp>
...
@@ -168,6 +168,6 @@ class CUDATree : public Tree {
...
@@ -168,6 +168,6 @@ class CUDATree : public Tree {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_CUDA_CUDA_TREE_HPP_
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_INCLUDE_LIGHTGBM_CUDA_CUDA_TREE_HPP_
include/LightGBM/cuda/vector_cudahost.h
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* 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.
* Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All rights reserved.
*/
*/
#ifndef LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#define LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/common.h>
...
@@ -91,4 +91,4 @@ bool operator!=(const CHAllocator<T>&, const CHAllocator<U>&);
...
@@ -91,4 +91,4 @@ bool operator!=(const CHAllocator<T>&, const CHAllocator<U>&);
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
#endif //
LIGHTGBM_INCLUDE_
LIGHTGBM_CUDA_VECTOR_CUDAHOST_H_
include/LightGBM/dataset.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#ifndef LIGHTGBM_DATASET_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_DATASET_H_
#define LIGHTGBM_DATASET_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_DATASET_H_
#include <LightGBM/arrow.h>
#include <LightGBM/arrow.h>
#include <LightGBM/config.h>
#include <LightGBM/config.h>
...
@@ -1071,4 +1071,4 @@ class Dataset {
...
@@ -1071,4 +1071,4 @@ class Dataset {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ight
GBM_DATA_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_DATA
SET
_H_
Prev
1
2
3
4
5
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