added host flags to hipDeviceBody test
Cette révision appartient à :
1 Parent
4320e5c574
révision
e652426715
2 fichiers modifiés
+3
-2
Aucun fichier ne correspond à votre recherche
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur