hipDNN icon indicating copy to clipboard operation
hipDNN copied to clipboard

error: use of undeclared identifier 'hc'

Open 296083197 opened this issue 5 years ago • 2 comments

env(ubuntu 18.04, rocm4.0.0)

mkdir build && cd build; cmake .. is OK; when use make:

[ 33%] Building CXX object library/CMakeFiles/hipdnn.dir/src/hcc_detail/hipdnn_miopen.cpp.o /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:972:17: warning: comparison of different enumeration types ('hipdnnDataType_t' and 'miopenDataType_t') [-Wenum-compare] if(*dataType == miopenFloat) { ~~~~~~~~~ ^ ~~~~~~~~~~~ /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:981:24: warning: comparison of different enumeration types ('hipdnnDataType_t' and 'miopenDataType_t') [-Wenum-compare] else if (*dataType == miopenHalf){ ~~~~~~~~~ ^ ~~~~~~~~~~ /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:983:5: error: use of undeclared identifier 'hc' hc::half betaVal = *(static_cast<const hc::half *>(beta)); ^ /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:983:44: error: use of undeclared identifier 'hc' hc::half betaVal = *(static_cast<const hc::half *>(beta)); ^ /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:983:24: warning: ISO C++ does not allow indirection on operand of type 'const void *' [-Wvoid-ptr-dereference] hc::half betaVal = *(static_cast<const hc::half *>(beta)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:984:5: error: use of undeclared identifier 'hc' hc::half *gradientF = static_cast<hc::half *>(gradient); ^ /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:984:39: error: use of undeclared identifier 'hc' hc::half *gradientF = static_cast<hc::half *>(gradient); ^ /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:985:5: error: use of undeclared identifier 'hc' hc::half *gradientPriorF = static_cast<hc::half *>(gradientPrior); ^ /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:985:44: error: use of undeclared identifier 'hc' hc::half *gradientPriorF = static_cast<hc::half *>(gradientPrior); ^ /home/george/ROCm/ROCmSoftwarePlatform/hipDNN/library/src/hcc_detail/hipdnn_miopen.cpp:986:35: error: use of undeclared identifier 'hc' hipLaunchKernelGGL((TensorAddhc::half), dim3(blocks), dim3(threadsPerBlock), ^ 3 warnings and 7 errors generated when compiling for gfx906.

where is the namespace 'hc' be declared? when use "dpkg --list | grep rocm", the results show that all packages version of rocm are 4.0

296083197 avatar Dec 30 '20 09:12 296083197

Has the hipDNN been discarded?

296083197 avatar Jan 12 '21 08:01 296083197

Has the hipDNN been discarded?

Hello! I'm not a maintainer of this repo and I believe that you already don't need this functionality, but in case if you still interested (or some stranger like me who stumbled upon same problem and got into this issue) you are welcome to use patch from PR to fix this problem

ankutalev avatar Aug 09 '23 08:08 ankutalev