Includes <cmath> or <math.h> by __cplusplus in hip_complex.h
[ROCm/hip commit: 2523c39a37]
Ta zmiana jest zawarta w:
%! (template.HTML=
Yaxun (Sam) Liu)złożyło 2018-06-17 20:20:32 -04:00
1 rodzic
cf6cdab029
złożenie
0e29f327e2
Plik 1 zmieniony
+8
@@ -24,7 +24,15 @@ THE SOFTWARE.
|
||||
#define HIP_INCLUDE_HIP_HCC_DETAIL_HIP_COMPLEX_H
|
||||
|
||||
#include "hip/hcc_detail/hip_vector_types.h"
|
||||
|
||||
// TODO: Clang has a bug which allows device functions to call std functions
|
||||
// when std functions are introduced into default namespace by using statement.
|
||||
// math.h may be included after this bug is fixed.
|
||||
#if __cplusplus
|
||||
#include <cmath>
|
||||
#else
|
||||
#include "math.h"
|
||||
#endif
|
||||
|
||||
#if __cplusplus
|
||||
#define COMPLEX_ADD_OP_OVERLOAD(type) \
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika