added host flags to hipDeviceBody test

此提交包含在:
Aditya Atluri
2016-03-29 09:27:57 -05:00
父節點 4320e5c574
當前提交 e652426715
共有 2 個檔案被更改,包括 3 行新增2 行删除
+1 -1
查看文件
@@ -1,5 +1,5 @@
#include"hipDeviceHeader.h"
__device__ int add(int &a, int &b){
__host__ __device__ int add(int &a, int &b){
return a+b;
}
+2 -1
查看文件
@@ -1,6 +1,7 @@
#ifndef HIPDEVICEHEADER_H
#define HIPDEVICEHEADER_H
#include"test_common.h"
__device__ int add(int a, int b);
__host__ __device__ int add(int a, int b);
#endif