added host flags to hipDeviceBody test

[ROCm/hip commit: f518d0f818]
This commit is contained in:
Aditya Atluri
2016-03-29 09:27:57 -05:00
parent b7284988d6
commit d0b0cda704
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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