Skip to content

Pytorch compilation error 'undefined reference to `sycl::_V1::detail::getKernelNameHelper' #22550

Description

@sarnex

Describe the bug

https://github.com/intel/llvm/actions/runs/28767848131/job/85297451204

: && /usr/bin/c++ -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_FBGEMM -DUSE_PYTORCH_QNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -DC10_NODEPRECATED -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -faligned-new -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-dangling-reference -Wno-error=dangling-reference -Wno-stringop-overflow -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -O3 -DNDEBUG -DNDEBUG -rdynamic -Wl,--dependency-file=caffe2/CMakeFiles/ivalue_test.dir/link.d -Wl,--no-as-needed caffe2/CMakeFiles/ivalue_test.dir/__/aten/src/ATen/test/ivalue_test.cpp.o -o bin/ivalue_test -L/__w/llvm/llvm/install/lib/pkgconfig/../../lib -Wl,-rpath,/__w/llvm/llvm/install/lib/pkgconfig/../../lib:/__w/llvm/llvm/pytorch/build/lib:/__w/llvm/llvm/install/lib:  lib/libgtest_main.a  lib/libgtest.a  lib/libgmock.a  -lstdc++  -Wl,--no-as-needed,"/__w/llvm/llvm/pytorch/build/lib/libtorch.so" -Wl,--as-needed  -Wl,--no-as-needed,"/__w/llvm/llvm/pytorch/build/lib/libtorch_cpu.so" -Wl,--as-needed  lib/libprotobuf.a  -Wl,--no-as-needed,"/__w/llvm/llvm/pytorch/build/lib/libtorch_xpu.so" -Wl,--as-needed  lib/libc10_xpu.so  lib/libc10.so  /__w/llvm/llvm/install/lib/libsycl.so  lib/libgtest.a && /__w/llvm/llvm/pytorch.dpclang/lib/python3.12/site-packages/cmake/data/bin/cmake -E __run_co_compile --lwyu="ldd;-u;-r" --source=bin/ivalue_test && :
/usr/bin/ld: /__w/llvm/llvm/pytorch/build/lib/libtorch_xpu.so: undefined reference to `sycl::_V1::detail::getKernelNameHelper(sycl::_V1::detail::KernelIdentity<at::native::xpu::NullKernelClass>)'

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions