Kaiser-Yang opened a new issue, #21153:
URL: https://github.com/apache/mxnet/issues/21153
## Description
when compiling mxnet 1.2.1, I found that there are some compilation errors.
I think these ERRORs are weird. It is described below.
### Error Message
/src/common/random_generator.h:154:5: error: there are no arguments to
'CUDA_CALL' that depend on a template parameter, so a declaration of
'CUDA_CALL' must be available [-fpermissive]
CUDA_CALL(cudaMalloc(&inst->states_,
## To Reproduce
clone mxnet-1.2.1 from github and set root/make/config.mk USE_CUDA CUDA_PATH
USE_DIST_KVSTORE and enter root to start with command make
## What have you tried to solve it?
I add the below code into random_generator.h

## Environment
cuda-11.2
ubuntu 16.04
What perplexes me is the CUDA_CALL is define in ../common/cuda_utils.h, and
included by random_generator.h but getting a compilation error
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]