Skip to content

Commit

Permalink
Patch avoids many warnings about inclusion of deprecated hpp file whe…
Browse files Browse the repository at this point in the history
…n compiling with Cuda >= 10.0.
  • Loading branch information
maartenarnst committed Apr 1, 2022
1 parent 10d2503 commit 3b17323
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@
#include <ostream> // for std::ostream

#ifdef __CUDACC__
#include <math_functions.h>
#include <cuda_runtime_api.h>
// including math functions via math_functions.h is deprecated in cuda version >= 10.0
// the deprecation warning indicates to use cuda_runtime_api.h instead
#if CUDART_VERSION < 10000
#include <math_functions.h>
#endif
#endif

/*
Expand Down

0 comments on commit 3b17323

Please sign in to comment.