ROCm / ROCm-OpenCL-Runtime

ROCm OpenOpenCL Runtime
168 stars 55 forks source link

fatal error: icd/icd_dispatch.h: No such file or directory #83

Open JustVic opened 5 years ago

JustVic commented 5 years ago

When building I got this error:

[92%] Building CXX object runtime/CMakeFiles/oclruntime.dir/device/device.cpp.o In file included from /home/vic/ROCm/opencl/runtime/platform/context.hpp:10, from /home/vic/ROCm/opencl/runtime/device/device.hpp:11, from /home/vic/ROCm/opencl/runtime/device/device.cpp:5: /home/vic/ROCm/opencl/runtime/platform/object.hpp:12:10: fatal error: icd/icd_dispatch.h: No such file or directory 12 | #include <icd/icd_dispatch.h> | ^~~~~~~~ compilation terminated. make[2]: [runtime/CMakeFiles/oclruntime.dir/build.make:141: runtime/CMakeFiles/oclruntime.dir/device/device.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:21975: runtime/CMakeFiles/oclruntime.dir/all] Error 2 make: *** [Makefile:152: all] Error 2]

But the file is in its place.

[vic@earth build]$ find ../ -name icd_dispatch.h ../api/opencl/khronos/icd/loader/icd_dispatch.h

kzhuravl commented 5 years ago

https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/pull/84 temporary resolves this error. the icd_dispatch moved to "icd/loader/icd_dispatch.h". There is another issue with ICD we need to fix related to symlinking headers into icd/inc. I will post a separate patch internally for that.

kzhuravl commented 5 years ago

I have posted a patch for review internally that resolves this issue without pegging icd to an older revision. Thanks.

kzhuravl commented 5 years ago

Hello, this has been fixed with

Could you verify and close this issue if it works for you?

Thanks,

sterlingpickens commented 4 years ago

These patches seem to have gotten backported to the 2.8.0 branch (and maybe others?). They break 2.8.0 here: repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-2.8.0 repo sync