error: use of undeclared identifier 'hc'
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
Has the hipDNN been discarded?
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