Added C guard for math headers

Change-Id: I0e71819c6436b3e6c99b2deddb2ee2d2a16acedd


[ROCm/hip commit: e04b8d6aa7]
这个提交包含在:
Aditya Atluri
2016-09-29 13:54:34 -05:00
父节点 d31206acb8
当前提交 e4e4c54055
+11 -1
查看文件
@@ -33,10 +33,13 @@ THE SOFTWARE.
//#include <cstring>
#if __cplusplus
#include <cmath>
#else
#include <math.h>
#include <string.h>
#include <stddef.h>
#endif
// Define NVCC_COMPAT for CUDA compatibility
#define NVCC_COMPAT
#define CUDA_SUCCESS hipSuccess
@@ -493,6 +496,13 @@ __device__ float __dsqrt_rd(double x);
__device__ float __dsqrt_rn(double x);
__device__ float __dsqrt_ru(double x);
__device__ float __dsqrt_rz(double x);
/**
* CUDA 8 device function features
*/
/**
* Kernel launching
*/