2
0

module_api: workaround to use vcpy_kernel.cpp for NV path

Change-Id: Ib4868bf02c64070e846c19427c39289609909466
Este cometimento está contido em:
Maneesh Gupta
2016-09-04 12:35:08 +05:30
ascendente e08f4513c1
cometimento 07badd6f4e
4 ficheiros modificados com 21 adições e 21 eliminações
+6 -3
Ver ficheiro
@@ -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