intel / intel/llvm

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

Open
#22,550 1 comment 0 reactions 1 assignee Claimed by @sergey-semenov View on GitHub
bug confirmed
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

### 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)'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.