Add kind translation for hipMemcpyDeviceToDevice

[ROCm/clr commit: a397e60ba9]
Tá an tiomantas seo le fáil i:
Ben Sander tiomanta 2016-09-22 14:21:19 -05:00
1 tuismitheoir e32f07802e
tiomantas 976238ad10
1 comhad athraithe
+11 -9
@@ -140,15 +140,17 @@ switch(hError) {
}
inline static cudaMemcpyKind hipMemcpyKindToCudaMemcpyKind(hipMemcpyKind kind) {
switch(kind) {
case hipMemcpyHostToHost:
return cudaMemcpyHostToHost;
case hipMemcpyHostToDevice:
return cudaMemcpyHostToDevice;
case hipMemcpyDeviceToHost:
return cudaMemcpyDeviceToHost;
default:
return cudaMemcpyDefault;
switch(kind) {
case hipMemcpyHostToHost:
return cudaMemcpyHostToHost;
case hipMemcpyHostToDevice:
return cudaMemcpyHostToDevice;
case hipMemcpyDeviceToHost:
return cudaMemcpyDeviceToHost;
case hipMemcpyDeviceToDevice:
return cudaMemcpyDeviceToDevice;
default:
return cudaMemcpyDefault;
}
}