Skip to content

Commit

Permalink
Merge pull request #25 from 7SK/XLA_fix
Browse files Browse the repository at this point in the history
fix xla
  • Loading branch information
whchung committed Mar 28, 2018
2 parents ed6bf17 + 7aecbf2 commit e6b0c7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tensorflow/compiler/jit/kernels/xla_local_launch_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ XlaLocalLaunchOp::XlaLocalLaunchOp(OpKernelConstruction* ctx)
if (device_type_ == DeviceType(DEVICE_CPU)) {
platform_id_ = gpu::host::kHostPlatformId;
} else if (device_type_ == DeviceType(DEVICE_GPU)) {
platform_id_ = gpu::cuda::kCudaPlatformId;
// XXX FIXME devise a way to cope with multiple platforms
//platform_id_ = gpu::cuda::kCudaPlatformId;
platform_id_ = gpu::rocm::kROCmPlatformId;
} else {
ctx->SetStatus(
errors::InvalidArgument("Unknown device type for local _XlaLaunch"));
Expand Down

0 comments on commit e6b0c7a

Please sign in to comment.