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

SYCL: Fix linking with ze_loader in Trilinos #1551

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

masterleinad
Copy link
Contributor

@lucbv and I noticed that Trilinos doesn't link with ze_loader which we currently require for the SYCL backend if LevelZero is used (which we assume for Intel GPUs).
The problem is that Trilinos configures Kokkos inline and thus KokkosKernels doesn't see its exported configuration but only Kokkos' original CMake variables. Thus, this pull request just adds a check for the relevant architectures in terms of Kokkos CMake variables.
We expect all of this to be a workaround until the compiler/runtime natively supports querying free/available device memory.

@lucbv lucbv self-requested a review September 27, 2022 14:23
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.

Yep, not the prettiest but just a workaround for the time being.
Thanks for updating our CMake @masterleinad

@lucbv lucbv added the AT: PRE-TEST INSPECTED Mark this PR as approved for testing. label Sep 27, 2022
@kokkos-devops-admin kokkos-devops-admin removed the AT: PRE-TEST INSPECTED Mark this PR as approved for testing. label Sep 27, 2022
@kokkos-devops-admin
Copy link

Status Flag 'Pre-Test Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED by label AT: PRE-TEST INSPECTED! Autotester is Removing Label; This inspection will remain valid until a new commit to source branch is performed.

@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_GCC930_Light_Tpls_GCC930

  • Build Num: 67
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_CUDA11_CUDA11_LayoutRight

  • Build Num: 76
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC1020

  • Build Num: 29
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC1020_Light_LayoutRight

  • Build Num: 28
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_GCC720

  • Build Num: 127
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_INTEL19

  • Build Num: 78
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_CLANG1001

  • Build Num: 127
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_CLANG13CUDA10

  • Build Num: 19
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Using Repos:

Repo: KOKKOSKERNELS (masterleinad/kokkos-kernels)
  • Branch: fix_trilinos_sycl_ze_loader
  • SHA: 832a900
  • 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_GCC930_Light_Tpls_GCC930

  • Build Num: 67
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_CUDA11_CUDA11_LayoutRight

  • Build Num: 76
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC1020

  • Build Num: 29
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC1020_Light_LayoutRight

  • Build Num: 28
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_GCC720

  • Build Num: 127
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_INTEL19

  • Build Num: 78
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_CLANG1001

  • Build Num: 127
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_CLANG13CUDA10

  • Build Num: 19
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_BRANCH fix_trilinos_sycl_ze_loader
KOKKOSKERNELS_SOURCE_REPO https://github.com/masterleinad/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA 832a900
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA caf47dc
PR_LABELS
PULLREQUESTNUM 1551
TEST_REPO_ALIAS KOKKOSKERNELS

@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

1 similar comment
@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 8e4f260 into kokkos:develop Sep 28, 2022
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

Successfully merging this pull request may close these issues.

3 participants