patflick / miopen-benchmark

benchmarking miopen
BSD 3-Clause "New" or "Revised" License
17 stars 15 forks source link

Incorrect argument type of 'incomplete type' to miopenCreateWithStream(); #2

Open AMD-PSP opened 7 years ago

AMD-PSP commented 7 years ago

While running make, I get the error below. The function miopenCreateWithStream is called with 'hipStream_t', an incomplete argument type, when it should of type 'miopenAcceleratorQueue_t'. hipStream_t is typedefed to miopenAcceleratorQueue_t when MIOPEN_BACKEND_HIP is true, but that is not the case here. I tried to set MIOPEN_BACKEND_HIP to true and manually typedef hipStream_t to miopenAcceleratorQuene_t but I still got the same error. Any help would be greatly appreciated.

/opt/rocm/hip/bin/hipcc -g -Wall --amdgpu-target=gfx900 -I/opt/rocm/hip/include -I/opt/rocm/include alexnet.cpp -L/opt/rocm/lib -L/opt/rocm/opencl/lib/x86_64 -lMIOpen -lOpenCL -lmiopengemm -lhipblas-hcc -lrocblas-hcc -o alexnet In file included from alexnet.cpp:1: In file included from ./miopen.hpp:4: /opt/rocm/include/miopen/miopen.h:77:9: error: unknown type name 'hipStream_t' typedef hipStream_t miopenAcceleratorQueue_t; ^ In file included from alexnet.cpp:1: ./miopen.hpp:335:19: error: no matching function for call to 'miopenCreateWithStream' CHECK_MIO(miopenCreateWithStream(&h, q)); ^~~~~~ ./miopen.hpp:319:30: note: expanded from macro 'CHECK_MIO' miopenStatus_t miostat = cmd;\ ^~~ /opt/rocm/include/miopen/miopen.h:119:30: note: candidate function not viable: cannot convert argument of incomplete type 'hipStream_t' (aka 'ihipStream_t ') to 'miopenAcceleratorQueue_t' (aka '_cl_command_queue ') for 2nd argument MIOPEN_EXPORT miopenStatus_t miopenCreateWithStream(miopenHandle_t* handle, ^ 2 errors generated. Died at /opt/rocm/hip/bin/hipcc line 452. Makefile:18: recipe for target 'alexnet' failed make: *** [alexnet] Error 2

patflick commented 7 years ago

Currently this benchmark requires the use of the HIP backend for MIOpen. The OpenCL currently doesn't work.