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

clang/7+cuda/9 build -Werror-unused parameter error in nightly test #2884

Closed
ndellingwood opened this issue Mar 17, 2020 · 1 comment
Closed
Labels
Enhancement Improve existing capability; will potentially require voting

Comments

@ndellingwood
Copy link
Contributor

Sample error:

18:48:10 /home/jenkins/slave/workspace/Kokkos_develop_kokkos-dev_clang_701_cuda_92/kokkos/core/src/impl/Kokkos_Atomic_Load.hpp:123:8: error: unused parameter 'ptr' [-Werror,-Wunused-parameter]
18:48:10     T* ptr, typename std::enable_if<!(sizeof(T) == 1 || sizeof(T) == 2 ||
18:48:10        ^
18:48:10 1 error generated when compiling for sm_35.

Sample reproducer:

   #   Load modules:
         module load sems-env sems-cmake/3.12.2 kokkos-env kokkos-hwloc/1.10.1/base sems-clang/7.0.1 sems-cuda/9.2
 
   #   Use generate_makefile line below to call cmake which generates makefile for this build:
         /home/jenkins/slave/workspace/Kokkos_develop_kokkos-dev_clang_701_cuda_92/kokkos/generate_makefile.bash --with-devices=Cuda,OpenMP --arch=Kepler35 --compiler=/projects/sems/install/rhel6-x86_64/sems/compiler/clang/7.0.1/base/bin/clang++ --cxxflags="-O3 -Wall -Wunused-parameter -Wshadow -pedantic -Werror -Wsign-compare -Wtype-limits -Wuninitialized " --cxxstandard="11" --ldflags="" --with-cuda=/projects/sems/install/rhel6-x86_64/sems/compiler/cuda/9.2/base --kokkos-path=/home/jenkins/slave/workspace/Kokkos_develop_kokkos-dev_clang_701_cuda_92/kokkos --no-examples 
@ndellingwood ndellingwood added Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos) Blocks Promotion Overview issue for release-blocking bugs DevelopOnly labels Mar 17, 2020
@ndellingwood ndellingwood added this to the Tentative 3.1 Release milestone Mar 17, 2020
@crtrott
Copy link
Member

crtrott commented Mar 17, 2020

Ok this only happens for Kepler class GPUs.

@crtrott crtrott added Enhancement Improve existing capability; will potentially require voting InDevelop and removed Blocks Promotion Overview issue for release-blocking bugs DevelopOnly Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos) labels Mar 18, 2020
@crtrott crtrott closed this as completed Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improve existing capability; will potentially require voting
Projects
None yet
Development

No branches or pull requests

2 participants