Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Add tests for SYCL 2020 function objects #310

Merged
merged 18 commits into from
Jul 1, 2021

Conversation

maximdimakov
Copy link

@maximdimakov maximdimakov commented Jun 4, 2021

Some tests are rewritten with SYCL2020 group algorithm functions and SYCL2020 function objects

Comment on lines +27 to +28
// std::exclusive_scan isn't implemented yet, so use serial implementation
// instead

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we compile everything with C++17, can we replace this with std::exclusive_scan?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed using of emu::exclusive scan to std::exclusive_scan

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that Jenkins pre-ci linux/cuda compiles with c++14. Tests are failing with message "no member named 'exclusive_scan' in namespace 'std'"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maximdimakov, -fsycl triggers -std=c++17, so it should be compiled with c++17. Looks strange, does it reproduce locally?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can not reproduce this problem locally. The errors occurs when I explicitly specify -std=c++14. Without -std flag or with -std=c++17 the test passed

Copy link

@dm-vodopyanov dm-vodopyanov Jun 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the environment problem of CI machine, could be outdated libstdc++ which doesn't contain implementation for std::inclusive_scan and std::exclusive_scan. @tfzhu, can you please take a look on this issue and try to resolve it?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also tagging @bader to be aware about this CI problem.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the problem resolved? If not, could you please leave a TODO here about using std::exclusive_scan later?

std::numeric_limits<int>::lowest());

#ifdef SPIRV_1_3
test<class KernelName_WonwuUVPUPOTKRKIBtT>(q, input, output,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix kernel name here as well

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@vladimirlaz
Copy link

@maximdimakov, could you please fix formating issue and make sure that all test are passing as soon as compiler change was merged a while ago.

@bader
Copy link

bader commented Jun 16, 2021

FYI: name of the standard is "SYCL 2020", not "sycl2020".

@maximdimakov maximdimakov changed the title [SYCL] Add tests for sycl2020 function objects [SYCL] Add tests for SYCL 2020 function objects Jun 16, 2021
@maximdimakov
Copy link
Author

@vladimirlaz it seems that for linux and cuda the problem remains the same

@dm-vodopyanov
Copy link

@maximdimakov, this is because of #310 (comment). Can you please contact tools team to resolve this issue?

vladimirlaz
vladimirlaz previously approved these changes Jun 17, 2021
@vladimirlaz
Copy link

@AlexeySachkov could you please review/approve the PR?

Comment on lines +27 to +28
// std::exclusive_scan isn't implemented yet, so use serial implementation
// instead

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the problem resolved? If not, could you please leave a TODO here about using std::exclusive_scan later?

@vladimirlaz
Copy link

@AlexeySachkov could you please review/approve the PR?

@vladimirlaz vladimirlaz merged commit 8df801c into intel:intel Jul 1, 2021
smaslov-intel pushed a commit to smaslov-intel/llvm-test-suite that referenced this pull request Aug 12, 2021
Signed-off-by: mdimakov <maxim.dimakov@intel.com>
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Apr 12, 2022
merge contents in BuildTest into RunTest
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants