Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conformance test for SYCL is not working. #925

Open
ankitbmishra opened this issue Aug 16, 2024 · 8 comments
Open

Conformance test for SYCL is not working. #925

ankitbmishra opened this issue Aug 16, 2024 · 8 comments

Comments

@ankitbmishra
Copy link

ankitbmishra commented Aug 16, 2024

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
Copy link
Contributor

bader commented Aug 16, 2024

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

@ankitbmishra
Copy link
Author

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

@bader
Copy link
Contributor

bader commented Aug 16, 2024

Here is the link: intel/llvm@20a088e
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
Copy link
Author

  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
Copy link
Contributor

psalz commented Aug 27, 2024

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

The error message says what you need to do!

@ankitbmishra
Copy link
Author

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
Copy link
Contributor

psalz commented Aug 27, 2024

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
Copy link
Author

ankitbmishra commented Aug 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants