- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello brothers, I am new to the SYCL world, and I am suffering a problem with the dev environment.
I am a C++ developer on Linux platform. Usually, I use Vscode as the text editor, Cmake as the building system, and clangd as the C++ language server (not MS C++ intelli). I managed all my projects in that manner, and it worked very nicely.
Recently I got my new A770 card, and installed oneapi-basekit on my Ubuntu desktop (I can use level 0 without any problem). After setting the env variables, I can compile simple projects smoothly.
But, clangd failed to analyze the headers, you can find the simple example in the attachments.
I found that `CL/__spirv/spirv_ops.hpp` is 'include/sycl/CL/__spirv/spirv_ops.hpp'. This error disappeared after adding '${SYCL_INCLUDE_DIR}/sycl' to target include directories, but another problem comes (the third pic).
So I am wondering how to manage SYCL projects using cmake in the right way. Could someone please give me a hand? Thanks in advance.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm neovim user and using clangd as my language server for c++, but I'm experiencing same problem as you.
I saw a article which says "the clangd built on intel/llvm can parse sycl headers, the others cannot", so I found clangd on /opt/intel/oneapi/compiler/latest/bin/compiler/ and used it but it even stops working while parsing sycl headers!
Can you try to use this version clangd, which is shipped with intel-basetoolkit?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![](/skins/images/D3C0B914909A6564BBB97F4AD1ED1973/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page