josephevans opened a new pull request #19530:
URL: https://github.com/apache/incubator-mxnet/pull/19530
## Description ##
[WIP] Fixes to build properly on Windows with Cuda 11.0:
* Update multi_lamb.cu and multi_lans.cu to use cuda's pow() function
instead of std::pow() and statically cast exponent to float so it matches cuda
pow signature.
Fixes compilation errors:
```
multi_lamb.cu(53): error: calling a __host__ function("pow<float, int,
(int)0> ") from a __global__ function("mxnet::op::KernelStep1<(bool)1, float,
float> ") is not allowed
multi_lamb.cu(53): error: identifier "pow<float, int, (int)0> " is undefined
in device code
```
## 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 ###
- [ ] Feature1, tests, (and when applicable, API doc)
- [ ] Feature2, tests, (and when applicable, API doc)
## Comments ##
- If this change is a backward incompatible change, why must this change be
made.
- Interesting edge cases to note here
----------------------------------------------------------------
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]