Skip to content

Commit 16a62f4

Browse files
kluckeGoogle-ML-Automation
authored andcommitted
Remove now unused type aliases from gpu_types.h.
PiperOrigin-RevId: 696618474
1 parent bc7dd2b commit 16a62f4

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

xla/stream_executor/gpu/gpu_types.h

-30
Original file line numberDiff line numberDiff line change
@@ -36,46 +36,16 @@ limitations under the License.
3636
namespace stream_executor {
3737
namespace gpu {
3838

39-
// An empty struct to be used as a handle for all unsupported features in
40-
// current CUDA/HIP/SYCL version.
41-
struct UnsupportedGpuFeature {
42-
// This makes the struct the same size as all the other handles.
43-
void* payload;
44-
};
45-
4639
#if TENSORFLOW_USE_SYCL
4740

4841
using GpuStreamHandle = ::sycl::queue*;
49-
using GpuFunctionHandle = ::sycl::kernel*;
50-
using GpuDevicePtr = void*;
51-
using GpuGraphHandle = UnsupportedGpuFeature;
52-
using GpuGraphExecHandle = UnsupportedGpuFeature;
53-
using GpuGraphNodeHandle = UnsupportedGpuFeature;
54-
using GpuGraphConditionalHandle = UnsupportedGpuFeature;
5542

5643
#elif TENSORFLOW_USE_ROCM
5744

5845
using GpuStreamHandle = hipStream_t;
59-
using GpuFunctionHandle = hipFunction_t;
60-
using GpuDevicePtr = hipDeviceptr_t;
61-
using GpuGraphHandle = hipGraph_t;
62-
using GpuGraphExecHandle = hipGraphExec_t;
63-
using GpuGraphNodeHandle = hipGraphNode_t;
64-
using GpuGraphConditionalHandle = UnsupportedGpuFeature;
6546
#else // CUDA
6647

6748
using GpuStreamHandle = CUstream;
68-
using GpuFunctionHandle = CUfunction;
69-
using GpuDevicePtr = CUdeviceptr;
70-
using GpuGraphHandle = CUgraph;
71-
using GpuGraphExecHandle = CUgraphExec;
72-
using GpuGraphNodeHandle = CUgraphNode;
73-
74-
#if CUDA_VERSION >= 12030
75-
using GpuGraphConditionalHandle = CUgraphConditionalHandle;
76-
#else
77-
using GpuGraphConditionalHandle = UnsupportedGpuFeature;
78-
#endif // #if CUDA_VERSION >= 12030
7949

8050
#endif
8151

0 commit comments

Comments
 (0)