Move HIP_HCC define to CMake

[ROCm/hip commit: 65abde6626]
这个提交包含在:
Ben Sander 于 2016-04-17 07:40:04 -05:00 提交
1 父节点 95e4be12de
当前提交 698ea7f30f
4 个文件已更改
+5 -11

没有与搜索条件相匹配的文件

-5
查看文件
@@ -43,11 +43,6 @@ THE SOFTWARE.
#include "hcc_detail/hip_hcc.h"
#include "hsa_ext_amd.h"
// HIP includes:
#define HIP_HCC
//#include "hcc_detail/staging_buffer.h"
// TODO, re-org header order.
extern const char *ihipErrorString(hipError_t hip_error);
#include "hcc_detail/trace_helper.h"
+3 -1
查看文件
@@ -24,6 +24,8 @@ THE SOFTWARE.
#include "hcc_detail/staging_buffer.h"
#ifdef HIP_HCC
#include "hcc_detail/hip_runtime.h"
#include "hcc_detail/hip_hcc.h"
#define THROW_ERROR(e) throw ihipException(e)
#else
#define THROW_ERROR(e) throw
@@ -301,7 +303,7 @@ void StagingBuffer::CopyPeerToPeer(void* dst, hsa_agent_t dstAgent, const void*
tprintf (DB_COPY2, "P2P: wait_completion[%d] bytesRemaining=%zu\n", bufferIndex, bytesRemaining1);
bool hostWait = 0;
bool hostWait = 0; // TODO - remove me
if (hostWait) {
// Host-side wait, should not be necessary: