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

Nightly clang+cuda build errors: KokkosSparse_spmv_bsrmatrix_impl.hpp:367: error: reference to __device__ function 'operator=' in __host__ __device__ function #1209

Closed
ndellingwood opened this issue Nov 30, 2021 · 2 comments
Assignees

Comments

@ndellingwood
Copy link
Contributor

PR #1197 included updates to address unused variables caught when compiling with -Werror. The merge of that PR exposed another preexisting issue in clang/8+cuda/10 builds within KokkosSparse_spmv_bsrmatrix_impl

Error message:

05:16:38 /home/jenkins/jenkins-new/workspace/KokkosKernels_KokkosDev2_CLANG8_CUDA10_cpp14/kokkos-kernels/src/sparse/impl/KokkosSparse_spmv_bsrmatrix_impl.hpp:367:46: error: reference to __device__ function 'operator=' in __host__ __device__ function
05:16:38             sa(ti / FRAG_M, ti % FRAG_M, tj) = 0;

Reproducer instructions (kokkos-dev-2 testbed):

source /projects/sems/modulefiles/utils/sems-modules-init.sh ; module use /home/projects/x86-64/modulefiles/local
module load sems-env sems-cmake/3.17.1 clang/8.0 cuda/10.0

$KOKKOSKERNELS_PATH/cm_generate_makefile.bash --with-devices=Cuda,Serial --arch=SNB,Volta70 --compiler=clang++ --cxxflags="-O3 -Wall -Wshadow -pedantic -Werror -Wsign-compare -Wtype-limits -Wuninitialized -Wno-pass-failed " --cxxstandard="14" --kokkos-path=$KOKKOS_PATH --kokkoskernels-path=$KOKKOSKERNELS_PATH --with-scalars='double,complex_double' --with-ordinals=int --with-offsets=int,size_t --with-layouts=LayoutLeft --with-options=disable_deprecated_code --with-cuda-options=enable_lambda   --no-examples
@ndellingwood
Copy link
Contributor Author

Compilation errors resolved with #1307

@cwpearson
Copy link
Contributor

Fixed in #1307

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

No branches or pull requests

2 participants