Skip to content

Workaround isnan across different environments. - #4883

Merged
trivialfis merged 2 commits into
dmlc:masterfrom
trivialfis:fix-nan
Sep 24, 2019
Merged

trivialfis merged 2 commits into
dmlc:masterfrom
trivialfis:fix-nan

Conversation

@trivialfis

@trivialfis trivialfis commented Sep 22, 2019 •

Copy link
Copy Markdown
Member

Closes #4882. Haven't verify the fix yet. Just trying to see general test results.

@trivialfis trivialfis changed the title Try to use std::isnan except in R. Workaround isnan across different environments. Sep 23, 2019
@trivialfis

trivialfis commented Sep 23, 2019 •

Copy link
Copy Markdown
Member Author

@melonki Could you please help verifying this PR fix the error you encountered? You can copy this PR into a local branch by:

git checkout -b trivialfis-fix-nan master
git pull https://github.com/trivialfis/xgboost.git fix-nan

@trivialfis

trivialfis commented Sep 23, 2019 •

Copy link
Copy Markdown
Member Author

I built it on Ubuntu 19.04 with R and cuda 9.2.

@melonki

melonki commented Sep 23, 2019

Copy link
Copy Markdown

@melonki Could you please help verifying this PR fix the error you encountered? You can copy this PR into a local branch by:

git checkout -b trivialfis-fix-nan master
git pull https://github.com/trivialfis/xgboost.git fix-nan

Thank you for your solution but the errors still exist. I am not sure whether I used the PR in the right way. The details are in the attach file.
ErrorLog2.txt

@trivialfis

trivialfis commented Sep 23, 2019 •

Copy link
Copy Markdown
Member Author

@melonki Could you try clearing out your build directory (maybe created by msvc, I don't know)? From your error log, there are lots of unrelated errors like:

“stdafx.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package\xgboost-r.
“hdfs.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package\xgboost-r.v
“curl/curl.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package\xgboost-r.
“gtest/gtest.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package

and many others. The above listed missing headers by default are not used in XGBoost, unless you explicitly asked so by providing corresponding CMake parameters.

@melonki

melonki commented Sep 23, 2019

Copy link
Copy Markdown

@melonki Could you try clearing out your build directory (maybe created by msvc, I don't know)? From your error log, there are lots of unrelated errors like:

“stdafx.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package\xgboost-r.
“hdfs.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package\xgboost-r.v
“curl/curl.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package\xgboost-r.
“gtest/gtest.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package

and many others. The above listed missing header by default are not used in XGBoost, unless you explicitly asked by providing corresponding CMake parameters.

okay, I'll try it again.

@melonki

melonki commented Sep 23, 2019 •

Copy link
Copy Markdown

@melonki Could you try clearing out your build directory (maybe created by msvc, I don't know)? From your error log, there are lots of unrelated errors like:

“stdafx.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package\xgboost-r.
“hdfs.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package\xgboost-r.v
“curl/curl.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package\xgboost-r.
“gtest/gtest.h”: No such file or directory [C:\Users\B621\xgboost\build\R-package

and many others. The above listed missing header by default are not used in XGBoost, unless you explicitly asked by providing corresponding CMake parameters.

I uninstalled xgboost package in R studio and deleted xgboost folder in my directory and installed it all over again, but the errors still exist.
Here are the codes I typed in CMD:

git clone https://github.com/dmlc/xgboost
cd xgboost
git submodule init
git submodule update
git checkout -b trivialfis-fix-nan master
git pull https://github.com/trivialfis/xgboost.git fix-nan
cd R-package
"C:/Program Files/R/R-3.6.1/bin/x64/R.exe" CMD INSTALL .
cd C:\Users\B621\xgboost
mkdir build
cd build
cmake .. -G"Visual Studio 15 2017 Win64" -DUSE_CUDA=ON -DR_LIB=ON -DLIBR_EXECUTABLE="C:/Program Files/R/R-3.6.1/bin/x64/R.exe"
cmake --build . --target install --config Release

The details are in the attach file.
ErrorLog3.txt

@trivialfis

Copy link
Copy Markdown
Member Author

@melonki Please take a look at : https://xgboost.readthedocs.io/en/latest/build.html#installing-r-package-with-gpu-support

I don't think you need to do:

cd R-package
... CMD INSTALL

Using cmake install should be enough.

@melonki

melonki commented Sep 24, 2019

Copy link
Copy Markdown

@melonki Please take a look at : https://xgboost.readthedocs.io/en/latest/build.html#installing-r-package-with-gpu-support

I don't think you need to do:

cd R-package
... CMD INSTALL

Using cmake install should be enough.

It worked! Thank you for your suggestion!

@trivialfis

Copy link
Copy Markdown
Member Author

@melonki Great!

@trivialfis
trivialfis merged commit a40b72d into dmlc:master Sep 24, 2019
@trivialfis
trivialfis deleted the fix-nan branch September 24, 2019 01:36
@lock lock Bot locked as resolved and limited conversation to collaborators Dec 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building for R with GPU support fails in the last step in Win10

2 participants