-
Notifications
You must be signed in to change notification settings - Fork 308
Closed
Labels
Description
Using the latest 1.13.0+cpu extension, it gives me this linker error:
symbol lookup error: lib/libintel-ext-pt-cpu.so: undefined symbol: __itt_task_begin_ptr__3_0
The only change is adding the provided CMake:
add_library(intel_ext_pt_cpu_library INTERFACE IMPORTED)
set_target_properties(intel_ext_pt_cpu_library PROPERTIES
INTERFACE_LINK_LIBRARIES "-Wl,--no-as-needed,\"${INTEL_EXT_PT_CPU_LIBRARY}\""
)
LIST(APPEND TORCH_LIBRARIES intel_ext_pt_cpu_library)
Am I missing something?
Edit: It's because I disabled ITT (Instrumentation and Tracing Technology) in libtorch.
I added this to resolve the issue:
add_library(intel_itt INTERFACE IMPORTED)
set_target_properties(intel_itt PROPERTIES
INTERFACE_LINK_LIBRARIES "-Wl,--no-as-needed,\"${PREBUILT}/lib/libamplxe_samplingmrte_javaprof_1.0.so\""
)
LIST(APPEND TORCH_LIBRARIES intel_itt)