-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[BUGFIX] Fix Windows GPU VS 2019 build (#20206) #20207
Conversation
Hey @sjiagc , Thanks for submitting the PR
CI supported jobs: [sanity, website, edge, windows-cpu, miscellaneous, clang, unix-cpu, centos-gpu, centos-cpu, windows-gpu, unix-gpu] Note: |
aeec2a4
to
b387d9b
Compare
b387d9b
to
9a05b6e
Compare
@mxnet-bot run ci [unix-gpu] |
Jenkins CI successfully triggered : [unix-gpu] |
@mxnet-bot run ci [unix-cpu] |
Jenkins CI successfully triggered : [unix-cpu] |
@mxnet-bot run ci [unix-cpu] |
Jenkins CI successfully triggered : [unix-cpu] |
My point is as less of CPU code should be compiled with |
@mxnet-bot run ci [unix-cpu, unix-gpu, windows-cpu] |
Jenkins CI successfully triggered : [unix-cpu, unix-gpu, windows-cpu] |
@mxnet-bot run ci [unix-cpu, windows-cpu] |
Jenkins CI successfully triggered : [unix-cpu, windows-cpu] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@sjiagc thanks for the fix! |
Co-authored-by: Tom Shen <jun.shen@advance.ai>
Co-authored-by: Tom Shen <jun.shen@advance.ai>
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
Changes
Comments
__CUDACC__
flag as possible.