intel / intel/llvm

Error compiling llvm with CUDA: ze_kernel_allocation_exp_properties_t* has no been declared

Open
#20,992 1 comment 0 reactions 1 assignee Claimed by @KFilipek View on GitHub
bug cuda
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

### Describe the bug

Compiling sycl branch (4decbf0da29f7daba8a87361456a264a331e2b5d) fails:

```
[41/1230] Building CXX object unified-runtime/source/adapters/level_zero/CMakeFiles/ur_adapter_level_zero_v2.dir/v2/graph.cpp.o
FAILED: unified-runtime/source/adapters/level_zero/CMakeFiles/ur_adapter_level_zero_v2.dir/v2/graph.cpp.o
/usr/bin/c++ -DUR_ADAPTER_LEVEL_ZERO_V2 -DUR_ENABLE_SANITIZER -DUR_ENABLE_TRACING -DUR_STATIC_LEVEL_ZERO -DUR_VALIDATION_LAYER_SUPPORTED_VERSION=\"0\" -DUR_VERSION=\"0\" -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dur_adapter_level_zero_v2_EXPORTS -I/home/mark/Projects/llvm/build/unified-runtime/source/adapters/level_zero -I/home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero -I/home/mark/Projects/llvm/build/include -I/home/mark/Projects/llvm/llvm/include -I/home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/../.. -I/home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/../../ur -I/home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/LevelZeroLoader-Headers -I/home/mark/Projects/llvm/unified-runtime/include -I/home/mark/Projects/llvm/unified-runtime/source/common -I/home/mark/Projects/llvm/build/_deps/unified-memory-framework-src/include -I/home/mark/Projects/llvm/build/_deps/unified-memory-framework-src/src -I/home/mark/Projects/llvm/build/_deps/unified-memory-framework-src/src/ravl -I/home/mark/Projects/llvm/build/_deps/unified-memory-framework-src/src/critnib -I/home/mark/Projects/llvm/build/_deps/unified-memory-framework-src/src/provider -I/home/mark/Projects/llvm/build/_deps/unified-memory-framework-src/src/memspaces -I/home/mark/Projects/llvm/build/_deps/unified-memory-framework-src/src/memtargets -I/home/mark/Projects/llvm/build/_deps/unified-memory-framework-src/src/uthash -I/home/mark/Projects/llvm/build/_deps/level-zero-loader-src/include -I/home/mark/Projects/llvm/build/content-exp-headers/level_zero/include -I/home/mark/Projects/llvm/build/content-exp-headers/level_zero/include/../.. -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-error -O3 -DNDEBUG -std=c++17 -fPIC -UNDEBUG -Wall -Wpedantic -Wempty-body -Wformat -Wformat-security -Wunused-parameter -fstack-protector-strong -fvisibility=hidden -fcf-protection=full -fstack-clash-protection -fdiagnostics-color=always -MD -MT unified-runtime/source/adapters/level_zero/CMakeFiles/ur_adapter_level_zero_v2.dir/v2/graph.cpp.o -MF unified-runtime/source/adapters/level_zero/CMakeFiles/ur_adapter_level_zero_v2.dir/v2/graph.cpp.o.d -o unified-runtime/source/adapters/level_zero/CMakeFiles/ur_adapter_level_zero_v2.dir/v2/graph.cpp.o -c /home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/v2/graph.cpp
In file included from /home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/../../adapters/level_zero/platform.hpp:16,
from /home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/v2/../device.hpp:22,
from /home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/v2/event_pool_cache.hpp:22,
from /home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/v2/context.hpp:18,
from /home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/v2/graph.hpp:14,
from /home/mark/Projects/llvm/unified-runtime/source/adapters/level_zero/v2/graph.cpp:11:
/home/mark/Projects/llvm/build/_deps/level-zero-loader-src/include/ze_ddi.h:2454:5: error: ‘ze_kernel_allocation_exp_properties_t’ has not been declared
2454 | ze_kernel_allocation_exp_properties_t*
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Compile commands:

`python3 buildbot/configure.py --cuda`
`python3 buildbot/compile.py `

### To reproduce

1. Include a code snippet that is as short as possible
2. Specify the command which should be used to compile the program
3. Specify the command which should be used to launch the program
4. Indicate what is wrong and what was expected

### Environment

- OS: WSL2/Ubuntu 22.04
- Target device and vendor: Nvidia CUDA RTX 4070 Ti Super
- DPC++ version: 4decbf0da29f7daba8a87361456a264a331e2b5d
- Dependencies version: ??

### Additional context

_No response_

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.