module_api: workaround to use vcpy_kernel.cpp for NV path

Change-Id: Ib4868bf02c64070e846c19427c39289609909466


[ROCm/hip commit: 07badd6f4e]
This commit is contained in:
Maneesh Gupta
2016-09-04 12:35:08 +05:30
orang tua e9f4f40a45
melakukan 576add3596
4 mengubah file dengan 21 tambahan dan 21 penghapusan
@@ -83,9 +83,12 @@ int main(){
#endif
#ifdef __HIP_PLATFORM_NVCC__
std::vector<void*>argBuffer(2);
memcpy(&argBuffer[0], &Ad, sizeof(void*));
memcpy(&argBuffer[1], &Bd, sizeof(void*));
uint32_t one = 1;
std::vector<void*>argBuffer(3);
uint32_t *ptr32_t = (uint32_t*)&argBuffer[0];
memcpy(ptr32_t + 0, &one, sizeof(uint32_t));
memcpy(&argBuffer[1], &Ad, sizeof(void*));
memcpy(&argBuffer[2], &Bd, sizeof(void*));
#endif