-
Notifications
You must be signed in to change notification settings - Fork 798
Closed
Labels
Description
Describe the bug
A truncated version of the sycl.hpp
path works when it should not. It should only be able to find the header with sycl/sycl.hpp
.
Bug found when adding test to #6769.
To Reproduce
Compile the below cpp file with the -fsycl
option. This should not compile as the include path should be sycl/sycl.hpp
, however it does successfully find the file path.
Build llvm as normal.
Set environment paths
export PATH=$PATH_TO_LLVM/build/bin:$PATH
export LD_LIBRARY_PATH=$PATH_TO_LLVM/build/lib:$LD_LIBRARY_PATH
Create source file test_file.cpp
#include <sycl.hpp>
int main () {
sycl::queue Q;
return 0;
}
Compile file, this will compile when it should not be able to find the sycl.hpp
path.
clang++ -fsycl test_file.cpp
Environment (please complete the following information):
- OS: Linux, Ubuntu
- Target device and vendor: Intel CPU/GPU
- DPC++ version: commit c7289d0