LLVM version incompatible when building OpenCL
I have the following error when I build the source checked out using the repo tool.
/ROCm-OpenCL/opencl/runtime/device/devkernel.cpp:749:19: error: ‘HiddenHostcallBuffer’ is not a member of ‘llvm::AMDGPU::HSAMD::ValueKind’
case ValueKind::HiddenHostcallBuffer:
I have checked the LLVM source checked-out by repo (https://github.com/RadeonOpenCompute/llvm) does not include HiddenHostcallBuffer in the ValueKind definition while the llvm-project repository does.
That is extremely outdated. You probably need https://github.com/RadeonOpenCompute/llvm-project instead.
@ranisalt hi there! I've been compile rocm-opencl-runtime on arm64 platform ,following the README instruction procedure,but when make ,I got : ^~~~~~~~~~~~~~~ /home/ubuntu/opencl/rocm/opencl/runtime/platform/kernel.hpp:73:39: note: ‘const amd::KernelParameterDescriptor& amd::KernelSignature::at’ should be initialized const KernelParameterDescriptor& at(size_t index) const { ^~~~~~ /home/ubuntu/opencl/rocm/opencl/runtime/platform/kernel.hpp: At global scope: /home/ubuntu/opencl/rocm/opencl/runtime/platform/kernel.hpp:179:14: error: ‘size_t’ has not been declared void reset(size_t index) { ^~~~~~ /home/ubuntu/opencl/rocm/opencl/runtime/platform/kernel.hpp:185:12: error: ‘size_t’ has not been declared void set(size_t index, size_t size, const void* value, bool svmBound = false); ^~~~~~ /home/ubuntu/opencl/rocm/opencl/runtime/platform/kernel.hpp:185:26: error: ‘size_t’ has not been declared void set(size_t index, size_t size, const void* value, bool svmBound = false); ^~~~~~ /home/ubuntu/opencl/rocm/opencl/runtime/platform/kernel.hpp:188:13: error: ‘size_t’ has not been declared bool test(size_t index) const { return signature_.at(index).info_.defined_; } ^~~~~~ /home/ubuntu/opencl/rocm/opencl/runtime/platform/kernel.hpp:194:3: error: ‘size_t’ does not name a type; did you mean ‘ssize_t’? size_t localMemSize(size_t minDataTypeAlignment) const; ^~~~~~ many "size_t has not been declared "error! any help ? thanks in advance!
by the way ,I install llvm by compiling source code with git clone --recursive -b clang_tot_upgrade https://github.com/RadeonOpenCompute/hcc.git
is there any incompatible issue here ?