-
Notifications
You must be signed in to change notification settings - Fork 74
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
Fix nvcc warnings #2118
Fix nvcc warnings #2118
Conversation
Please remember to set the appropriate labels. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase to solve the merge conflicts.
@@ -7,7 +7,7 @@ | |||
// "On Windows, the enclosing parent function ("C_A_T_C_H_T_E_M_P_L_A_T_E_T_E_S_T_F_U_N_C_...") for an extended | |||
// __host__ | |||
// __device__ lambda cannot have internal or no linkage" | |||
#if(!defined(__NVCC__) || (defined(__NVCC__) && defined(__CUDACC_EXTENDED_LAMBDA__) && !BOOST_COMP_MSVC)) | |||
#if(!defined(__NVCC__) || (defined(__NVCC__) && defined(__CUDACC_EXTENDED_LAMBDA__) && !defined(_MSC_VER))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you switch from BOOST_COMP_MSVC
to the native define?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because before this change, I got the warning that BOOST_COMP_MSVC
was undefined and the compiler assumed 0. I could have included the Boost Predef headers instead, but since I know the MSVC macro, and we also use other vendor specific macros like __NVCC__
, i just went with _MSC_VER
.
Yes mom .. |
e873410
to
cfe60dc
Compare
The GitLab CI is experiencing internal server errors... I'll try to merge this on Monday when the CI can hopefully be restarted. |
@j-stephan any news? |
Sorry, I was at a CASUS event all day. I will look at it tomorrow. |
cfe60dc
to
6531a67
Compare
Ah right, forgot about that! I rebased the PR then, maybe that helps. |
This fixes all nvcc warnings I have locally.