Skip to content

Commit

Permalink
Fix warning reenabling in llama.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Dec 14, 2022
1 parent 6b300a2 commit f9dc6ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/llama/llama.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
# pragma nv_diag_suppress 940
# else
# pragma diag_suppress 940

# endif
#endif
#ifdef __NVCOMPILER
# pragma push
# pragma diag_suppress 941
#endif


#include "ArrayExtents.hpp"
#include "ArrayIndexRange.hpp"
#include "BlobAllocators.hpp"
Expand Down Expand Up @@ -75,10 +77,14 @@
#include "mapping/Trace.hpp"
#include "mapping/tree/Mapping.hpp"

#if defined(__CUDACC__) || defined(__NVCOMPILER)
#if defined(__CUDACC__)
# ifdef __NVCC_DIAG_PRAGMA_SUPPORT__
# pragma nv_diag_default 940
# else
# pragma diag_default 940
# endif
#endif
#ifdef __NVCOMPILER
# pragma push
# pragma diag_default 941
#endif

0 comments on commit f9dc6ba

Please sign in to comment.