ARM-software / ComputeLibrary

The Compute Library is a set of computer vision and machine learning functions optimised for both Arm CPUs and GPUs using SIMD technologies.
MIT License
2.76k stars 767 forks source link

error: use of undeclared identifier 'OpenCLTimestamps' #1016

Closed Martinfx closed 1 year ago

Martinfx commented 1 year ago

Hi, i have issue with compile on x64. How make it?

https://github.com/Martinfx/FreeBSD-Ports/blob/max-compute-library/computelibrary/Makefile clone https://github.com/Martinfx/FreeBSD-Ports/tree/max-compute-library/computelibrary cd computelibrary make

Output of 'strings libarm_compute.so | grep arm_compute_version': arm_compute_version=v22.08 Build options: {'os': 'freebsd', 'Werror': '0', 'neon': '0', 'opencl': '1', 'embed_kernels': '0', 'examples': '1', 'arch': 'x86_64', 'build': 'native'} Git hash=b'176db289626e546a3934c1bbc72f61f1174e237e'

Platform: x64 SCONS_ARGS+= os=freebsd Werror=0 neon=0 opencl=1 embed_kernels=0 examples=1 arch=x86_64 build=native

Operating System: FreeBSD hades 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64

Problem description:

clang++13 -o build/examples/gemm_tuner/cl_gemmlowp_reshaped_rhs_only_fused_output_stage_fixedpoint -m64 -Wl,--allow-shlib-undefined build/examples/gemm_tuner/cl_gemmlowp_reshaped_rhs_only_fused_output_stage_fixedpoint.o build/utils/Utils.o build/examples/gemm_tuner/CommonGemmExampleOptions.o -Lbuild -L. -lpthread -lc -larm_compute_graph -larm_compute -larm_compute_core
clang++13 -o build/tests/framework/Framework.o -c -DARCH_ARM -Wextra -Wdisabled-optimization -Wformat=2 -Winit-self -Wstrict-overflow=2 -Wswitch-default -Woverloaded-virtual -Wformat-security -Wctor-dtor-privacy -Wsign-promo -Weffc++ -Wno-overlength-strings -Wall -std=c++14 -pedantic -Wno-vla-extension -fPIC -DENABLE_FP16_KERNELS -DENABLE_FP32_KERNELS -DENABLE_QASYMM8_KERNELS -DENABLE_QASYMM8_SIGNED_KERNELS -DENABLE_QSYMM16_KERNELS -DENABLE_INTEGER_KERNELS -DENABLE_NHWC_KERNELS -DENABLE_NCHW_KERNELS -fPIC -O3 -m64 -Wno-overloaded-virtual -D_GLIBCXX_USE_NANOSLEEP -DARM_COMPUTE_CPP_SCHEDULER=1 -DENABLE_NEON -DARM_COMPUTE_ENABLE_NEON -DARM_COMPUTE_GRAPH_ENABLED -DARM_COMPUTE_OPENCL_ENABLED -DARM_COMPUTE_CL -Iinclude -I. -Ibuild/tests/framework -Itests/framework -Itests/framework tests/framework/Framework.cpp
tests/framework/Framework.cpp:82:158: error: use of undeclared identifier 'OpenCLTimestamps'
    _available_instruments.emplace(std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMESTAMPS, ScaleFactor::NONE), Instrument::make_instrument<OpenCLTimestamps, ScaleFactor::NONE>);
                                                                                                                                                             ^
tests/framework/Framework.cpp:83:161: error: use of undeclared identifier 'OpenCLTimestamps'
    _available_instruments.emplace(std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMESTAMPS, ScaleFactor::TIME_US), Instrument::make_instrument<OpenCLTimestamps, ScaleFactor::TIME_US>);
                                                                                                                                                                ^
tests/framework/Framework.cpp:84:161: error: use of undeclared identifier 'OpenCLTimestamps'
    _available_instruments.emplace(std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMESTAMPS, ScaleFactor::TIME_MS), Instrument::make_instrument<OpenCLTimestamps, ScaleFactor::TIME_MS>);
                                                                                                                                                                ^
tests/framework/Framework.cpp:85:160: error: use of undeclared identifier 'OpenCLTimestamps'
    _available_instruments.emplace(std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMESTAMPS, ScaleFactor::TIME_S), Instrument::make_instrument<OpenCLTimestamps, ScaleFactor::TIME_S>);
                                                                                                                                                               ^
tests/framework/Framework.cpp:86:153: error: use of undeclared identifier 'OpenCLTimer'
    _available_instruments.emplace(std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMER, ScaleFactor::NONE), Instrument::make_instrument<OpenCLTimer, ScaleFactor::NONE>);
                                                                                                                                                        ^
tests/framework/Framework.cpp:87:156: error: use of undeclared identifier 'OpenCLTimer'
    _available_instruments.emplace(std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_US), Instrument::make_instrument<OpenCLTimer, ScaleFactor::TIME_US>);
                                                                                                                                                           ^
tests/framework/Framework.cpp:88:156: error: use of undeclared identifier 'OpenCLTimer'
    _available_instruments.emplace(std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_MS), Instrument::make_instrument<OpenCLTimer, ScaleFactor::TIME_MS>);
                                                                                                                                                           ^
tests/framework/Framework.cpp:89:155: error: use of undeclared identifier 'OpenCLTimer'
    _available_instruments.emplace(std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_S), Instrument::make_instrument<OpenCLTimer, ScaleFactor::TIME_S>);
                                                                                                                                                          ^
tests/framework/Framework.cpp:90:160: error: use of undeclared identifier 'OpenCLMemoryUsage'
    _available_instruments.emplace(std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::NONE), Instrument::make_instrument<OpenCLMemoryUsage, ScaleFactor::NONE>);
                                                                                                                                                               ^
tests/framework/Framework.cpp:92:64: error: use of undeclared identifier 'OpenCLMemoryUsage'
                                   Instrument::make_instrument<OpenCLMemoryUsage, ScaleFactor::SCALE_1K>);
                                                               ^
tests/framework/Framework.cpp:94:64: error: use of undeclared identifier 'OpenCLMemoryUsage'
                                   Instrument::make_instrument<OpenCLMemoryUsage, ScaleFactor::SCALE_1M>);
                                                               ^