Add kind translation for hipMemcpyDeviceToDevice

[ROCm/clr commit: a397e60ba9]
This commit is contained in:
Ben Sander
2016-09-22 10:38:52 -05:00
orang tua e32f07802e
melakukan 976238ad10
@@ -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;
}
}