KhronosGroup / SYCL-CTS

SYCL Conformance Tests
Apache License 2.0
60 stars 79 forks source link

Conformance test for SYCL is not working. #925

Open ankitbmishra opened 4 weeks ago

ankitbmishra commented 4 weeks ago

I tried to build conformance test using the code repository given here, for SYCL compilers:

  1. DPC++
  2. Our own SYCL compiler

But, the build failed for both the above SYCL compilers. For DPC++ it is giving error multiple time (screenshot attached):

/storage/ankit/SYCL-CTS/build/tests/vector_api/vector_api_bool.cpp:86:57: error: no type named 'value_type' in 'sycl::vec<bool, 1>'
   86 |       CHECK(std::is_same_v<typename sycl::vec<bool, 1>::value_type, bool>);

Please provide solution for this issue.

Reference screenshots of DPC++ compiler conformance testing:

cmake -S . -B build -DSYCL_IMPLEMENTATION=DPCPP

Screenshot from 2024-08-16 07-59-16

cmake --build ./build -j24

Screenshot from 2024-08-16 07-59-05

ERROR: Screenshot from 2024-08-16 08-11-23

bader commented 3 weeks ago

What DPC++ version do you use? CTS CI uses 20a088e1231c4ac85fd74c0de79c563977d2f38c, which successfully compiles all tests.

ankitbmishra commented 3 weeks ago

Can you please share link of particular dpc++ version that you mentioned in reply.

bader commented 3 weeks ago

Here is the link: https://github.com/intel/llvm/commit/20a088e1231c4ac85fd74c0de79c563977d2f38c If you are looking for pre-built binaries of the compiler you can find them here - https://github.com/intel/llvm/releases/tag/nightly-2024-07-11.

ankitbmishra commented 2 weeks ago
  1. exported above mentioned binaries.(https://github.com/intel/llvm/releases/tag/nightly-2024-07-11)
  2. tried to get conformance test but still unable to build.(reference in image) Screenshot from 2024-08-27 15-42-47

Please help. thank you.

psalz commented 2 weeks ago
2. tried to get conformance test but still unable to build.(reference in image)

The error message says what you need to do!

ankitbmishra commented 2 weeks ago
2. tried to get conformance test but still unable to build.(reference in image)

The error message says what you need to do!

As per the documentation, it should work without any modification! (https://github.com/KhronosGroup/SYCL-CTS)

psalz commented 2 weeks ago
2. tried to get conformance test but still unable to build.(reference in image)

The error message says what you need to do!

As per the documentation, it should work without any modification! (https://github.com/KhronosGroup/SYCL-CTS)

As per the documentation, you should do a recursive checkout:

Configuration and compilation then follow standard CMake procedures. Begin by cloning this repository and its submodules: git clone --recurse-submodules https://github.com/KhronosGroup/SYCL-CTS.git

ankitbmishra commented 2 weeks ago
2. tried to get conformance test but still unable to build.(reference in image)

The error message says what you need to do!

As per the documentation, it should work without any modification! (https://github.com/KhronosGroup/SYCL-CTS)

As per the documentation, you should do a recursive checkout:

Configuration and compilation then follow standard CMake procedures. Begin by cloning this repository and its submodules: git clone --recurse-submodules https://github.com/KhronosGroup/SYCL-CTS.git

As per the documentation, (1) checked cmake version (2) checked python version (3) checked sycl implementation

Still it was giving error because SYCL-CTS/vendor/Catch2 to be added manually (link: https://github.com/catchorg/Catch2/tree/d548be26e3c54abc7e0b076319057d334e3ac589)

That is done and cmake command worked successfully.

cmake -S . -B build -DSYCL_IMPLEMENTATION=DPCPP

after this, as per the documentation next command given:

cmake --build ./build

Screenshot from 2024-08-27 16-40-43

But still the build is not complete and it is showing multiple errors!(reference in images) Screenshot from 2024-08-27 16-38-59 Screenshot from 2024-08-27 16-39-15 Screenshot from 2024-08-27 17-17-14