added host flags to hipDeviceBody test

This commit is contained in:
Aditya Atluri
2016-03-29 09:27:57 -05:00
bovenliggende 2f46ada042
commit f518d0f818
2 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
+1 -1
Bestand weergeven
@@ -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
Bestand weergeven
@@ -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