Skip to content

[OpenCL] Fixes SYCL registration for MapStageOp (#117) - #11322

Merged
caisq merged 1 commit into
tensorflow:masterfrom
lukeiwanski:opencl/MapStageOp
Jul 6, 2017
Merged

caisq merged 1 commit into
tensorflow:masterfrom
lukeiwanski:opencl/MapStageOp

Conversation

@lukeiwanski

Copy link
Copy Markdown
  • [OpenCL] Fixes SYCL registration for MapStageOp

As the MapStageOp is actually run on the host, we need to ensure that
both the 'key' and 'indices' tensors are in host memory. This now
mirrors what CUDA is doing.

  • [OpenCL] Fixes device name comparison map_stage_op_test

Changes the expected device name string, as the device name could be
'/device:SYCL:0' or '/device:GPU:0'.

The CUDA device name reported by test_util is in the form '/gpu:0',
while the device name used in the nodes looks like '/device:GPU:0'. When
running on CUDA we need to change the expected device name accordingly,
however this isn't a problem on SYCL.

* [OpenCL] Fixes SYCL registration for MapStageOp

As the MapStageOp is actually run on the host, we need to ensure that
both the 'key' and 'indices' tensors are in host memory. This now
mirrors what CUDA is doing.

* [OpenCL] Fixes device name comparison map_stage_op_test

Changes the expected device name string, as the device name could be
'/device:SYCL:0' or '/device:GPU:0'.

The CUDA device name reported by test_util is in the form '/gpu:0',
while the device name used in the nodes looks like '/device:GPU:0'. When
running on CUDA we need to change the expected device name accordingly,
however this isn't a problem on SYCL.
@tensorflow-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@caisq

caisq commented Jul 6, 2017

Copy link
Copy Markdown
Contributor

@tensorflow-jenkins test this please

@caisq caisq self-assigned this Jul 6, 2017
@caisq
caisq merged commit 3bcc9b6 into tensorflow:master Jul 6, 2017
@caisq

caisq commented Jul 6, 2017

Copy link
Copy Markdown
Contributor

Thanks, @lukeiwanski

@lukeiwanski
lukeiwanski deleted the opencl/MapStageOp branch July 6, 2017 19:10
allenlavoie pushed a commit to allenlavoie/tensorflow that referenced this pull request Jul 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants