wms2537 commented on issue #20066:
URL:
https://github.com/apache/incubator-mxnet/issues/20066#issuecomment-809948892
I tried adding but got the following error when compiling, it seems that
`atomicAdd` dows not support int16. How to fix this?
```
../src/operator/numpy/np_bincount_op.cu(46): error: no instance of
overloaded function "atomicAdd" matches the argument list
argument types are: (uint16_t *, const uint16_t)
detected during:
instantiation of "void mxnet::op::BincountFusedKernel::Map(int,
const DType *, const OType *, OType *) [with DType=float, OType=uint16_t]"
../src/operator/numpy/./../mxnet_op.h(1213): here
instantiation of "void
mxnet::op::mxnet_op::mxnet_generic_kernel<OP,Args...>(int, Args...) [with
OP=mxnet::op::BincountFusedKernel, Args=<float *, uint16_t *, uint16_t *>]"
../src/operator/numpy/./../mxnet_op.h(1234): here
instantiation of "void mxnet::op::mxnet_op::Kernel<OP,
mxnet::gpu>::Launch(mshadow::Stream<mshadow::gpu> *, int, Args...) [with
OP=mxnet::op::BincountFusedKernel, Args=<float *, uint16_t *, uint16_t *>]"
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]