From: Raad B. <r.b...@ya...> - 2019-10-31 09:36:18
|
Dear all, I’m trying to cross-compile OpenCL (on X86 for RISC-V). Thereby, the kernel (cl file) should be loaded from binary and this is the problem. It seems to me that there is no tool for (cross) compiling the kernel (cl file to binary). I compiled pocl with the host_cpu='riscv64' (this flag apparently specifies the target CPU) but the generated binary can not be loaded on RISC-V. According to its documentation ( https://clang.llvm.org/docs/UsersManual.html#opencl-features) clang should be able to compile kernels, however, in praxis it doesn't. The following post seems to be outdated (and it has also not been accepted as an answer). https://stackoverflow.com/questions/41204224/configuring-pocl-for-riscv/42800248#42800248 It would be a great help if you could give some information (best case would be a simple working example:) ) about how binaries of OpenCL-Kernels can be generated for RISC-V. Best,Raad |