Skip to content

Commit

Permalink
conditionally use newer nvcc diagnostic supression pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Oct 30, 2021
1 parent 41a96b8 commit 66d47eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/llama/llama.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@

#ifdef __NVCC__
# pragma push
# pragma diag_suppress 940
# if __CUDACC_VER_MAJOR__ * 1000 + __CUDACC_VER_MINOR__ >= 11005
# pragma nv_diag_suppress 940
# else
# pragma diag_suppress 940
# endif
#endif

#include "ArrayExtents.hpp"
Expand Down

0 comments on commit 66d47eb

Please sign in to comment.