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

Correcting 'syr test' bug causing compilation errors with Trilinos #1870

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

eeprude
Copy link
Contributor

@eeprude eeprude commented Jun 15, 2023

The compilation error happens in kk syr unit tests, independent of any interactions with, or calls from, Trilinos.

I was able to replicate the problem at weaver with some of the information in the error email sent by Nathan. I think the key aspect causing the error was the presence of CudaUVM options in the configurations of Kokkos and kk. I will include those options in my own work from now on.

+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  1. Environment:

ssh weaver

bsub -Is -n 1 -q rhel8 -gpu num=1 bash

source /etc/profile.d/modules.sh
source /projects/ppc64le-pwr9-rhel8/legacy-env.sh
module load git
module load cmake/3.23.1
module load cuda/11.2.2/gcc/8.3.1
module load openblas/0.3.18/gcc/8.3.1

+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  1. Kokkos code:

cmake
--install-prefix <BASE_PATH>/install/kokkos_git
-D CMAKE_BUILD_TYPE:STRING=Debug
-D CMAKE_CXX_STANDARD:STRING=17
-D CMAKE_CXX_FLAGS:STRING=""
-D CMAKE_CXX_EXTENSIONS:BOOL=OFF
-D CMAKE_VERBOSE_MAKEFILE:BOOL=OFF
-D Kokkos_ENABLE_CUDA_LAMBDA=ON
-D Kokkos_ENABLE_SERIAL:BOOL=ON
-D Kokkos_ENABLE_OPENMP:BOOL=ON
-D Kokkos_ENABLE_THREADS:BOOL=OFF
-D Kokkos_ENABLE_DEPRECATED_CODE_3:BOOL=OFF
-D Kokkos_ENABLE_DEBUG_BOUNDS_CHECK:BOOL=ON
-D Kokkos_ENABLE_TESTS:BOOL=OFF
-D Kokkos_ENABLE_EXAMPLES:BOOL=OFF
-D Kokkos_ENABLE_CUDA=ON
-D Kokkos_ENABLE_CUDA_UVM=ON
-D Kokkos_ARCH_VOLTA70=ON
-D Kokkos_ARCH_POWER9=ON
~/work/Kokkos/kokkos
make -j16
make install

+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  1. Kokkos-Kernels

cmake
--install-prefix <BASE_PATH>/install/kokkos_kernels_syr_compbug
-D CMAKE_BUILD_TYPE:STRING=Debug
-D CMAKE_CXX_STANDARD:STRING=17
-D CMAKE_CXX_FLAGS:STRING="-Wall -Wunused-parameter -Wshadow -pedantic -Werror -Wsign-compare -Wtype-limits -Wuninitialized"
-D CMAKE_CXX_EXTENSIONS:BOOL=OFF
-D CMAKE_VERBOSE_MAKEFILE:BOOL=OFF
-D Kokkos_ROOT:PATH="<BASE_PATH>/install/kokkos_git"
-D KokkosKernels_ENABLE_TPL_BLAS:BOOL=ON
-D KokkosKernels_ENABLE_TPL_CUBLAS:BOOL=ON
-D KokkosKernels_ENABLE_COMPONENT_BLAS=ON
-D KokkosKernels_ENABLE_COMPONENT_BATCHED=OFF
-D KokkosKernels_ENABLE_COMPONENT_GRAPH=OFF
-D KokkosKernels_ENABLE_COMPONENT_SPARSE=OFF
-D KokkosKernels_INST_INT:BOOL=ON
-D KokkosKernels_INST_FLOAT:BOOL=ON
-D KokkosKernels_INST_DOUBLE:BOOL=ON
-D KokkosKernels_INST_COMPLEX_FLOAT:BOOL=ON
-D KokkosKernels_INST_COMPLEX_DOUBLE:BOOL=ON
-D KokkosKernels_INST_OFFSET_SIZE_T:BOOL=ON
-D KokkosKernels_INST_OFFSET_INT:BOOL=ON
-D KokkosKernels_INST_ORDINAL_INT:BOOL=ON
-D KokkosKernels_INST_LAYOUTLEFT:BOOL=ON
-D KokkosKernels_INST_LAYOUTRIGHT:BOOL=ON
-D KokkosKernels_INST_LAYOUTSTRIDE:BOOL=ON
-D KokkosKernels_INST_MEMSPACE_CUDAUVMSPACE=ON
-D KokkosKernels_ENABLE_TESTS:BOOL=ON
-D KokkosKernels_TEST_ETI_ONLY:BOOL=ON
-D KokkosKernels_ENABLE_EXAMPLES:BOOL=OFF
-D KokkosKernels_ENABLE_BENCHMARK:BOOL=OFF
~/work/Kokkos/kokkos-kernels
make -j16

+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The kk compilation worked fine (with the change present in this PR) and the following 3 tests passed:

./blas/unit_test/KokkosKernels_blas_serial --gtest_filter=serial.syr_*
./blas/unit_test/KokkosKernels_blas_openmp --gtest_filter=openmp.syr_*
./blas/unit_test/KokkosKernels_blas_cuda --gtest_filter=Cuda.syr_*

@eeprude eeprude requested review from cwpearson and e10harvey June 15, 2023 07:41
@eeprude eeprude added the bug label Jun 15, 2023
@kokkos-devops-admin
Copy link

Status Flag 'Pre-Test Inspection' - Auto Inspected - Inspection is Not Necessary for this Pull Request.

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

  • Build Num: 694
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC930_Light_Tpls_GCC930_Tpls_CLANG13CUDA10

  • Build Num: 285
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC1020

  • Build Num: 308
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC1020_Light_LayoutRight

  • Build Num: 578
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_GCC1020

  • Build Num: 539
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_INTEL19

  • Build Num: 628
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_CLANG1001

  • Build Num: 681
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_A64FX_Tpls_ARMPL2110

  • Build Num: 482
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_A64FX_GCC1020

  • Build Num: 477
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_VEGA908_ROCM520

  • Build Num: 477
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Using Repos:

Repo: KOKKOSKERNELS (eeprude/kokkos-kernels)
  • Branch: syr_compbug
  • SHA: c4bdc88
  • Mode: TEST_REPO

Pull Request Author: eeprude

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

  • Build Num: 694
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC930_Light_Tpls_GCC930_Tpls_CLANG13CUDA10

  • Build Num: 285
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC1020

  • Build Num: 308
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_GCC1020_Light_LayoutRight

  • Build Num: 578
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_GCC1020

  • Build Num: 539
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_Tpls_INTEL19

  • Build Num: 628
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_CLANG1001

  • Build Num: 681
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_A64FX_Tpls_ARMPL2110

  • Build Num: 482
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_A64FX_GCC1020

  • Build Num: 477
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

Build Information

Test Name: KokkosKernels_PullRequest_VEGA908_ROCM520

  • Build Num: 477
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
KOKKOSKERNELS_SOURCE_REPO https://github.com/eeprude/kokkos-kernels
KOKKOSKERNELS_SOURCE_SHA c4bdc88
KOKKOSKERNELS_TARGET_BRANCH develop
KOKKOSKERNELS_TARGET_REPO https://github.com/kokkos/kokkos-kernels
KOKKOSKERNELS_TARGET_SHA 6fdd658
PR_LABELS bug
PULLREQUESTNUM 1870
TEST_REPO_ALIAS KOKKOSKERNELS

@kokkos-devops-admin
Copy link

Status Flag 'Pre-Merge 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!

@kokkos-devops-admin
Copy link

All Jobs Finished; status = PASSED, However Inspection must be performed before merge can occur...

@ndellingwood
Copy link
Contributor

Cross-referencing #1869 , thanks for the fast fix @eeprude !

@eeprude
Copy link
Contributor Author

eeprude commented Jun 15, 2023 via email

@kokkos-devops-admin
Copy link

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

@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

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

Successfully merging this pull request may close these issues.

5 participants