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

ArithTraits warnings in CUDA build #71

Closed
ibaned opened this issue Sep 1, 2017 · 2 comments
Closed

ArithTraits warnings in CUDA build #71

ibaned opened this issue Sep 1, 2017 · 2 comments

Comments

@ibaned
Copy link
Contributor

ibaned commented Sep 1, 2017

So char is an unsigned type under NVCC...

/home/projects/albany/repos/Trilinos/packages/kokkos-kernels/src/Kokkos_ArithTraits.hpp(1477): warning: pointless comparison of unsigned integer with zero

/home/projects/albany/repos/Trilinos/packages/kokkos-kernels/src/Kokkos_ArithTraits.hpp(156): warning: pointless comparison of unsigned integer with zero
          detected during instantiation of "IntType <unnamed>::intPowSigned(IntType, IntType) [with IntType=char]"
(1503): here

/home/projects/albany/repos/Trilinos/packages/kokkos-kernels/src/Kokkos_ArithTraits.hpp(160): warning: pointless comparison of unsigned integer with a negative constant
          detected during instantiation of "IntType <unnamed>::intPowSigned(IntType, IntType) [with IntType=char]"
(1503): here
@ibaned
Copy link
Contributor Author

ibaned commented Sep 1, 2017

This warning gets repeated a lot while compiling Trilinos with NVCC.

@mhoemmen
Copy link
Contributor

mhoemmen commented Sep 1, 2017

@crtrott pushed a fix to develop: #60
This issue is a duplicate of that issue.

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

No branches or pull requests

2 participants