Skip to content

extension 1.13 linker error #260

@xsacha

Description

@xsacha

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions