IssacXid opened a new issue, #16556:
URL: https://github.com/apache/tvm/issues/16556

   ### Expected behavior
   
   I have built oneDNN following this link 
https://oneapi-src.github.io/oneDNN/dev_guide_build.html.
   And I modify the config.cmake set(USE_DNNL ON).
   It should be able to build TVM with DNNL json BYOC feature and running the 
file /test/python/relay/test_external_codegen.py should result in all the unit 
test including DNNL to pass.
   
   ### Actual behavior
   
   While building, it throws this error:
   
   ```
   error: ‘const struct dnnl::memory::desc’ has no member named ‘data’; did you 
mean ‘std::shared_ptr<dnnl_memory_desc> 
dnnl::handle<dnnl_memory_desc*>::data_’? (not accessible from this context)
      91 |   if (!(md->data.format_kind == blocked)) {
   
   In file included from /usr/local/include/oneapi/dnnl/dnnl.hpp:35,
                    from /usr/local/include/dnnl.hpp:20,
                    from 
/home/dut3kor/tvm/src/relay/backend/contrib/dnnl/../../../../runtime/contrib/dnnl/dnnl_utils.h:35,
                    from 
/home/dut3kor/tvm/src/relay/backend/contrib/dnnl/query_layout.cc:37:
   /usr/local/include/oneapi/dnnl/dnnl_common.hpp:130:60: note: declared 
private here
   
   ```
   Some other errors are:
   
   ```
   In function ‘std::string 
tvm::relay::contrib::get_optimal_layout_for_conv(std::string, std::string, 
std::string, std::string, std::string, std::string, std::string, std::string, 
std::string)’:
   error: ‘desc’ is not a member of ‘dnnl::convolution_forward’
     257 |   auto conv_desc = dnnl::convolution_forward::desc(
   ```
   
   ### Environment
   
   OS: WSL in Windows
   Installed OneDNN from WSL terminal only
   
   ### Steps to reproduce
   
   Set USE_DNNL=ON, LLVM=ON in /build/config.cmake
   Build OneDNN using the instruction in 
https://oneapi-src.github.io/oneDNN/dev_guide_build.html mentioned for Linux. 
   build TVM in WSL
   
   ### Triage
   
   * byoc:dnnl
   


-- 
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]

Reply via email to