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
   
![image](https://user-images.githubusercontent.com/58209855/205480062-7e81c3d4-bd4b-4d83-b159-68e77f622e4a.png)
   
   
   ## 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: issues-unsubscr...@mxnet.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org
For additional commands, e-mail: issues-h...@mxnet.apache.org

Reply via email to