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

Enable SYCL tests #927

Merged
merged 8 commits into from
Apr 27, 2021
Merged

Enable SYCL tests #927

merged 8 commits into from
Apr 27, 2021

Conversation

masterleinad
Copy link
Contributor

  • I only fixed the places in src/Kokkos_ArithTraits that were necessary for running the test with the SYCL backend successfully. Using https://github.com/kokkos/kokkos/blob/develop/core/src/Kokkos_MathematicalFunctions.hpp would probably make most of it redundant.
  • We use KOKKOS_IMPL_DO_NOT_USE_PRINTF internally to work around printf not being directly available with SYCL. The function is not supposed to be used outside the Kokkos since we would want to remove it at any time when there is proper compiler support. I nevertheless used it here. Let me know if you want the printfs to be disabled instead.
  • Some failing tests are still disabled. I haven't looked too hard into it.

@kokkos-devops-admin
Copy link

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging
WARNING: NO REVIEWERS HAVE BEEN REQUESTED FOR THIS PULL REQUEST!

@lucbv
Copy link
Contributor

lucbv commented Apr 5, 2021

@masterleinad I feel sorry you had to do that, I am working on PR #906 to avoid creating all the *.cpp per backend.
Are you in a rush to have this merged in or can you wait a bit on the other PR? The refactor will require only one .cpp (or maybe one per component) which will be more manageable...

@masterleinad
Copy link
Contributor Author

Are you in a rush to have this merged in or can you wait a bit on the other PR? The refactor will require only one .cpp (or maybe one per component) which will be more manageable...

No, no rush here. Actually, it wasn't too bad. Just copying the files from Cuda and doing some renaming via regexes. 🙂

@lucbv lucbv self-requested a review April 6, 2021 13:28
@kokkos-devops-admin
Copy link

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging
NO REVIEWS HAVE BEEN PERFORMED ON THIS PULL REQUEST!

@lucbv
Copy link
Contributor

lucbv commented Apr 23, 2021

@masterleinad the refactor of the unit-tests has been merged in develop and will lead require some re-write.
It should not take much time, although new pre-processor guards will be needed in some unit-tests headers...

@masterleinad
Copy link
Contributor Author

@lucbv I rebased and removed the test files that are auto-generated now.

@kokkos-devops-admin
Copy link

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging
NO REVIEWS HAVE BEEN PERFORMED ON THIS PULL REQUEST!

Copy link
Contributor

@lucbv lucbv left a comment

Choose a reason for hiding this comment

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

This is fine in general but I do no like the idea of disabling some of the TeamVector tests without having a tracking mechanism.
You can disable the whole batched_sycl test, people will clearly know that there is an issue in there...
You can also open an issue for that but I am not sure if this the safest approach?

unit_test/CMakeLists.txt Outdated Show resolved Hide resolved
unit_test/CMakeLists.txt Outdated Show resolved Hide resolved
unit_test/CMakeLists.txt Outdated Show resolved Hide resolved
unit_test/CMakeLists.txt Outdated Show resolved Hide resolved
unit_test/CMakeLists.txt Outdated Show resolved Hide resolved
unit_test/sycl/Test_SYCL_Batched.cpp Outdated Show resolved Hide resolved
@kokkos-devops-admin
Copy link

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging
THE LAST COMMIT TO THIS PULL REQUEST HAS BEEN REVIEWED, BUT NOT ACCEPTED OR REQUIRES CHANGES

@kokkos-devops-admin
Copy link

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging
THE LAST COMMIT TO THIS PULL REQUEST HAS NOT BEEN REVIEWED YET!

@masterleinad
Copy link
Contributor Author

This is fine in general but I do no like the idea of disabling some of the TeamVector tests without having a tracking mechanism.
You can disable the whole batched_sycl test, people will clearly know that there is an issue in there...
You can also open an issue for that but I am not sure if this the safest approach?

If I disable all categories in which failing tests appear, then I'm left with common_sycl. You can always find tests that are problematic by searching for FIXME_SYCL.
I mostly care about having the test infrastructure in place. Getting all the tests passing can be done incrementally IMHO. That being said just let me know what you want me to do.

@lucbv lucbv added the AT: RETEST Have this PR retested. label Apr 26, 2021
@kokkos-devops-admin
Copy link

Status Flag 'Pull Request AutoTester' - User Requested Retest - Label AT: RETEST will be reset after testing.

1 similar comment
@kokkos-devops-admin
Copy link

Status Flag 'Pull Request AutoTester' - User Requested Retest - Label AT: RETEST will be reset after testing.

Copy link
Contributor

@lucbv lucbv left a comment

Choose a reason for hiding this comment

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

OK, I will open an issue with the list of tests failing but that should be fine

@kokkos-devops-admin
Copy link

Status Flag 'Pre-Test Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED AND APPROVED by [ lucbv ]!

@kokkos-devops-admin
Copy link

Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects:

Pull Request Auto Testing STARTING (click to expand)

Build Information

Test Name: KokkosKernels_PullRequest_GCC720

  • Build Num: 194
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_GCC720

  • Build Num: 187
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_INTEL18

  • Build Num: 173
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC720_Light

  • Build Num: 207
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_CUDA10

  • Build Num: 171
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_CUDA9

  • Build Num: 168
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_GCC720_GCC740

  • Build Num: 166
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Using Repos:

Repo: KOKKOSKERNELS (masterleinad/kokkos-kernels)
  • Branch: sycl_add_tests
  • SHA: 315327d
  • Mode: TEST_REPO

Pull Request Author: masterleinad

@kokkos-devops-admin
Copy link

Status Flag 'Pull Request AutoTester' - Jenkins Testing: all Jobs PASSED

Pull Request Auto Testing has PASSED (click to expand)

Build Information

Test Name: KokkosKernels_PullRequest_GCC720

  • Build Num: 194
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_GCC720

  • Build Num: 187
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_INTEL18

  • Build Num: 173
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC720_Light

  • Build Num: 207
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_CUDA10

  • Build Num: 171
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_CUDA9

  • Build Num: 168
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_GCC720_GCC740

  • Build Num: 166
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH sycl_add_tests
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 315327d
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 90970cc
PULLREQUESTNUM 927
TEST_REPO_ALIAS KOKKOSKERNELS

@kokkos-devops-admin kokkos-devops-admin removed the AT: RETEST Have this PR retested. label Apr 27, 2021
@kokkos-devops-admin
Copy link

Status Flag 'Pre-Merge Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED AND APPROVED by [ lucbv ]!

@kokkos-devops-admin
Copy link

Status Flag 'Pull Request AutoTester' - Pull Request MUST BE MERGED MANUALLY BY Project Team - This Repo does not support Automerge

@lucbv lucbv merged commit 54e4213 into kokkos:develop Apr 27, 2021
@masterleinad masterleinad deleted the sycl_add_tests branch May 3, 2021 22:39
@masterleinad
Copy link
Contributor Author

We will need this one for trilinos/Trilinos#9086.

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

Successfully merging this pull request may close these issues.

5 participants