Add kind translation for hipMemcpyDeviceToDevice

[ROCm/hip commit: 0d47e62cb0]
This commit is contained in:
Ben Sander
2016-09-22 10:38:52 -05:00
parent 9a067341a7
commit c845631845
@@ -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;
}
}