sjiagc opened a new pull request #20207:
URL: https://github.com/apache/incubator-mxnet/pull/20207


   ## Description ##
   To fix Windows GPU VS 2019 build, make CPU only EvalRandom functions' GPU 
version to call their CPU version. When compiling the C++ standard header file 
random provided by MSVC 14.28.29910 with __CUDACC__ (nvcc drives), the 
_Float_upper_bound fails to compile due to _CONSTEXPR_IF is defined to nothing, 
if _Ty_digits < _Flt_digits.
   
   ## Checklist ##
   ### Essentials ###
   - [ ] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], 
[FEATURE], [DOC], etc)
   - [ ] Changes are complete (i.e. I finished coding on this PR)
   - [ ] All changes have test coverage
   - [ ] Code is well-documented
   
   ### Changes ###
   - [ ] Fix Windows GPU build with latest VS 2019 
   
   ## Comments ##
   - I tried building with the ci/build_windows.py script.
   - I don't know why CI or others haven't encountered this problem, but with 
my newly downloaded VS 2019 (MSVC 14.28.29910), it keeps failing.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to