[SOLVED] Installation issue with MIOpen

I get this error while compiling the TVM:

In file included from /home/m/software/TVM/tvm/src/contrib/miopen/miopen_utils.cc:5:0:
/home/m/software/TVM/tvm/src/contrib/miopen/miopen_utils.cc: In constructor ‘tvm::contrib::miopen::MIOpenThreadEntry::MIOpenThreadEntry()’:
/home/m/software/TVM/tvm/src/contrib/miopen/miopen_utils.cc:30:45: error: cannot convert ‘ihipStream_t*’ to ‘miopenAcceleratorQueue_t {aka _cl_command_queue*}’ for argument ‘2’ to ‘miopenStatus_t miopenSetStream(miopenHandle_t, miopenAcceleratorQueue_t)’
   MIOPEN_CALL(miopenSetStream(handle, stream));

Is there something wrong with the code or I have not configured something correctly?

Are you using rocm backend? MIOpen is for rocm backend only.

When you build MIOpen, you need to build it with HIP backend, not opencl (during cmake). Your miopen seems to be built for opencl backend.

Right. Rebuilding MIOpen with HIP fixed the issue. Thx