Define ROCM TopKFunctor for uint{32,64}.
Without these, the ROCM build still fails to build after #39429,ce2a22c
andd1f578c
due to linker errors caused by missing instantiations. PiperOrigin-RevId: 338159752 Change-Id: I221e8d3e676990cb9c1d33d4b0e1660a44023535
This commit is contained in:
parent
3438443618
commit
e3b8e051b9
@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
==============================================================================*/
|
||||
|
||||
#if GOOGLE_CUDA
|
||||
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
#include "tensorflow/core/kernels/topk_op.h"
|
||||
@ -25,4 +25,4 @@ using Eigen::GpuDevice;
|
||||
template struct functor::TopKFunctor<GPUDevice, uint32>;
|
||||
} // namespace tensorflow
|
||||
|
||||
#endif // GOOGLE_CUDA
|
||||
#endif // GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
|
@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
==============================================================================*/
|
||||
|
||||
#if GOOGLE_CUDA
|
||||
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
#include "tensorflow/core/kernels/topk_op.h"
|
||||
@ -25,4 +25,4 @@ using Eigen::GpuDevice;
|
||||
template struct functor::TopKFunctor<GPUDevice, uint64>;
|
||||
} // namespace tensorflow
|
||||
|
||||
#endif // GOOGLE_CUDA
|
||||
#endif // GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
|
Loading…
Reference in New Issue
Block a user