Added C guard for math headers
Change-Id: I0e71819c6436b3e6c99b2deddb2ee2d2a16acedd
这个提交包含在:
@@ -33,10 +33,13 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
|
|
||||||
//#include <cstring>
|
//#include <cstring>
|
||||||
|
#if __cplusplus
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
#else
|
||||||
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#endif
|
||||||
// Define NVCC_COMPAT for CUDA compatibility
|
// Define NVCC_COMPAT for CUDA compatibility
|
||||||
#define NVCC_COMPAT
|
#define NVCC_COMPAT
|
||||||
#define CUDA_SUCCESS hipSuccess
|
#define CUDA_SUCCESS hipSuccess
|
||||||
@@ -493,6 +496,13 @@ __device__ float __dsqrt_rd(double x);
|
|||||||
__device__ float __dsqrt_rn(double x);
|
__device__ float __dsqrt_rn(double x);
|
||||||
__device__ float __dsqrt_ru(double x);
|
__device__ float __dsqrt_ru(double x);
|
||||||
__device__ float __dsqrt_rz(double x);
|
__device__ float __dsqrt_rz(double x);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CUDA 8 device function features
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Kernel launching
|
* Kernel launching
|
||||||
*/
|
*/
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户