Clean up module api samples

Este commit está contenido en:
Rahul Garg
2018-08-08 22:28:13 +05:30
padre e9d7584b02
commit b6c5d7d71b
Se han modificado 3 ficheros con 10 adiciones y 67 borrados
@@ -30,7 +30,7 @@ THE SOFTWARE.
#define LEN 64
#define SIZE LEN * sizeof(float)
#define fileName "vcpy_kernel.code.adipose"
#define fileName "vcpy_kernel.code"
float myDeviceGlobal;
float myDeviceGlobalArray[16];
#define HIP_CHECK(cmd) \
@@ -79,32 +79,13 @@ int main() {
myDeviceGlobalArray[i] = i * 1000.0f;
}
#ifdef __HIP_PLATFORM_HCC__
uint32_t len = LEN;
uint32_t one = 1;
struct {
void* _Ad;
void* _Bd;
} args;
args._Ad = Ad;
args._Bd = Bd;
#endif
#ifdef __HIP_PLATFORM_NVCC__
struct {
uint32_t _hidden[1];
void* _Ad;
void* _Bd;
} args;
args._hidden[0] = 0;
args._Ad = Ad;
args._Bd = Bd;
#endif
args._Ad = (void*) Ad;
args._Bd = (void*) Bd;
size_t size = sizeof(args);