Merge pull request #635 from ROCm-Developer-Tools/fix-include

Fix build failure of hipTestHalf and hipTestIncludeMath for hip-clang

[ROCm/clr commit: 50228bf5fc]
Dieser Commit ist enthalten in:
Maneesh Gupta
2018-09-19 09:04:06 +05:30
committet von GitHub
Commit 0117b0b0fc
3 geänderte Dateien mit 10 neuen und 7 gelöschten Zeilen
@@ -27,11 +27,12 @@ THE SOFTWARE.
#include "math_fwd.h"
#include <hip/hip_runtime_api.h>
#include <stddef.h>
#include <hip/hip_vector_types.h>
#include <hip/hcc_detail/device_library_decls.h>
#include <hip/hcc_detail/llvm_intrinsics.h>
#include <stddef.h>
/*
Integer Intrinsics
*/
@@ -131,7 +131,7 @@ extern int HIP_TRACE_API;
// Feature tests:
#if defined(__HCC_ACCELERATOR__) && (__HCC_ACCELERATOR__ != 0)
#if (defined(__HCC_ACCELERATOR__) && (__HCC_ACCELERATOR__ != 0)) || __HIP_DEVICE_COMPILE__
// Device compile and not host compile:
// 32-bit Atomics:
@@ -22,14 +22,16 @@ THE SOFTWARE.
#pragma once
#include "math_fwd.h"
#include <hip/hcc_detail/host_defines.h>
#include <assert.h>
#include <limits.h>
#include <limits>
#include <stdint.h>
#include <algorithm>
#include <hip/hcc_detail/host_defines.h>
#include "hip_fp16_math_fwd.h"
#include "math_fwd.h"
// HCC's own math functions should be included first, otherwise there will
// be conflicts when hip/math_functions.h is included before hip/hip_runtime.h.