Can’t install Xgb with GPU support. The latest try is with Visual Studio 2017, R 3.6.3, Rtools 3.5, Cmake 3.18.2. The machine is Win 10, 64x.
I have tried other combos: R 4.0.2, Rtools 4, Cmake 17.?, Visual Studio 2015, 2019. Often the error was the same as below.
In addition, I tried to install R to different locations, including the default one. I have not kept up with the exact messages but I am fairly sure that the default install location produces the same error.
command I used (omitting -DLIBR_EXECUTABLE does not help):
cmake … -G"Visual Studio 15 2017 Win64" -DUSE_CUDA=ON -DR_LIB=ON -DLIBR_EXECUTABLE=“C:\R\R363\bin\x64\R.exe” -DGPU_COMPUTE_VER=75
I have also tried this check and it’s not the problem:
c:\Users\favor\xgboost\build>“C:/R/R363/bin/x64/R.exe” --slave --no-save -e “cat(normalizePath(R.home(), winslash=’/’))”
[1] “C:/R/R363/library”
C:/R/R363
c:\Users\favor\xgboost\build>“C:/R/R363/bin/x64/R.exe” --slave --no-save -e “cat(normalizePath(R.home(),winslash=’/’))”
[1] “C:/R/R363/library”
C:/R/R363
The actual error message:
DMLC_ROOT point to C:/Users/favor/xgboost/rabit/…/dmlc-core-- LI
BR_HOME [[1] “C:/R/R363/library”
C:/R/R363]
– LIBR_EXECUTABLE [C:\R\R363\bin\x64\R.exe]
– LIBR_INCLUDE_DIRS [[1] “C:/R/R363/library”
C:/R/R363/include]
– LIBR_LIB_DIR [[1] “C:/R/R363/library”
C:/R/R363/bin/x64]
– LIBR_CORE_LIBRARY []
CMake Error at cmake/modules/FindLibR.cmake:44 (message):
LIBR_LIB_DIR was not set!
Call Stack (most recent call first):
cmake/modules/FindLibR.cmake:164 (create_rlib_for_msvc)
R-package/CMakeLists.txt:1 (find_package)
– Configuring incomplete, errors occurred!