ROCm / ROCm-OpenCL-Runtime

ROCm OpenOpenCL Runtime
168 stars 55 forks source link

`acl` Functions undefined #134

Open stelleg opened 3 years ago

stelleg commented 3 years ago

The functions with the acl prefix called by ROCclr, e.g. aclWriteToMem don't seem to be defined anywhere in the radeonopencompute organization, and as a result, building libamdocl64.so fails with many undefined symbols, e.g.

ld: error: undefined symbol: aclValidateBinaryImage
>>> referenced by program.cpp
>>>               program.cpp.o:(amd::Program::addDeviceProgram(amd::Device&, void const*, unsigned long, bool, amd::option::Options*, amd::Program const*, int, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)) in archive /home/stelleg/soft/rocclr/build/libamdrocclr_static.a
>>> referenced by program.cpp
>>>               program.cpp.o:(amd::Program::addDeviceProgram(amd::Device&, void const*, unsigned long, bool, amd::option::Options*, amd::Program const*, int, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)) in archive /home/stelleg/soft/rocclr/build/libamdrocclr_static.a
gandryey commented 3 years ago

Make sure you have the latest ROCclr. Acl interfaces must be enabled only under WITH_COMPILER_LIB define and it's not a part of the ROCM build.