"python-package/vscode:/vscode.git/clone" did not exist on "d800a4e31e8073253e921143a98b7404776a84a7"
Commit 6be08748 authored by Huan Zhang's avatar Huan Zhang Committed by Guolin Ke
Browse files

Move Boost.Compute include path to the beginning of compiler search paths (#411)

* fix the size of vector cnt_per_class

* put Boost.Compute includes at the beginning

We want to put the submodule Boost.Compute at the beginning of compiler search
paths, because the submodule usually contains upstream bug fixes that have not
been included in the stable Boost releases installed on the host OS.
parent 053d9d8a
...@@ -36,6 +36,8 @@ else() ...@@ -36,6 +36,8 @@ else()
endif(USE_OPENMP) endif(USE_OPENMP)
if(USE_GPU) if(USE_GPU)
SET(BOOST_COMPUTE_HEADER_DIR ${PROJECT_SOURCE_DIR}/compute/include)
include_directories (${BOOST_COMPUTE_HEADER_DIR})
find_package(OpenCL REQUIRED) find_package(OpenCL REQUIRED)
include_directories(${OpenCL_INCLUDE_DIRS}) include_directories(${OpenCL_INCLUDE_DIRS})
MESSAGE(STATUS "OpenCL include directory:" ${OpenCL_INCLUDE_DIRS}) MESSAGE(STATUS "OpenCL include directory:" ${OpenCL_INCLUDE_DIRS})
...@@ -75,13 +77,11 @@ endif() ...@@ -75,13 +77,11 @@ endif()
SET(LightGBM_HEADER_DIR ${PROJECT_SOURCE_DIR}/include) SET(LightGBM_HEADER_DIR ${PROJECT_SOURCE_DIR}/include)
SET(BOOST_COMPUTE_HEADER_DIR ${PROJECT_SOURCE_DIR}/compute/include)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}) SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}) SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
include_directories (${LightGBM_HEADER_DIR}) include_directories (${LightGBM_HEADER_DIR})
include_directories (${BOOST_COMPUTE_HEADER_DIR})
if(APPLE) if(APPLE)
if (APPLE_OUTPUT_DYLIB) if (APPLE_OUTPUT_DYLIB)
......
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