Merge pull request #26774 from ROCmSoftwarePlatform:google_upstream_framework_types
PiperOrigin-RevId: 240179132
This commit is contained in:
commit
e6ee14fb0e
@ -40,9 +40,9 @@ const char* const DEVICE_GPU = "GPU";
|
||||
const char* const DEVICE_SYCL = "SYCL";
|
||||
|
||||
const std::string DeviceName<Eigen::ThreadPoolDevice>::value = DEVICE_CPU;
|
||||
#if GOOGLE_CUDA
|
||||
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
const std::string DeviceName<Eigen::GpuDevice>::value = DEVICE_GPU;
|
||||
#endif // GOOGLE_CUDA
|
||||
#endif // GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
#ifdef TENSORFLOW_USE_SYCL
|
||||
const std::string DeviceName<Eigen::SyclDevice>::value = DEVICE_SYCL;
|
||||
#endif // TENSORFLOW_USE_SYCL
|
||||
|
@ -83,12 +83,12 @@ struct DeviceName<Eigen::ThreadPoolDevice> {
|
||||
static const std::string value;
|
||||
};
|
||||
|
||||
#if GOOGLE_CUDA
|
||||
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
template <>
|
||||
struct DeviceName<Eigen::GpuDevice> {
|
||||
static const std::string value;
|
||||
};
|
||||
#endif // GOOGLE_CUDA
|
||||
#endif // GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
|
||||
#ifdef TENSORFLOW_USE_SYCL
|
||||
template <>
|
||||
|
Loading…
Reference in New Issue
Block a user