added host flags to hipDeviceBody test

Bu işleme şunda yer alıyor:
Aditya Atluri committed 2016-03-29 09:27:57 -05:00
1 ebeveyn 4320e5c574
işleme e652426715
2 files changed
+3 -2

No files matched your search

+1 -1
Dosyayı Görüntüle
@@ -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
Dosyayı Görüntüle
@@ -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