renaming namespace cuda_helper to gpu_helper.
Also adding a `cuda_helper` as an alias for `gpu_helper` in non ROCm mode (for backwards compatibility)
This commit is contained in:
parent
e0c05bb427
commit
3e9beeb2f8
@ -160,7 +160,7 @@ __device__ EIGEN_ALWAYS_INLINE Eigen::half GpuShuffleXorSync(
|
|||||||
// Aliased in gpu_device_functions.h
|
// Aliased in gpu_device_functions.h
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace cuda_helper {
|
namespace gpu_helper {
|
||||||
template <typename T, typename OutType = int32>
|
template <typename T, typename OutType = int32>
|
||||||
__device__ OutType upper_bound(const T* first, OutType count, T val) {
|
__device__ OutType upper_bound(const T* first, OutType count, T val) {
|
||||||
const T* orig = first;
|
const T* orig = first;
|
||||||
@ -202,6 +202,11 @@ __device__ OutType lower_bound(const T* first, OutType count, T val) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace cuda_helper
|
} // namespace cuda_helper
|
||||||
|
|
||||||
|
#ifndef TENSORFLOW_USE_ROCM
|
||||||
|
namespace cuda_helper = gpu_helper;
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace tensorflow
|
} // namespace tensorflow
|
||||||
|
|
||||||
#endif // GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
#endif // GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||||
|
Loading…
Reference in New Issue
Block a user