diff --git a/pyopencl/bitonic_sort_templates.py b/pyopencl/bitonic_sort_templates.py
index 45f7288f263a6c04a6b544844980b1fa1364879e..279b814f32b2fa327bd26805046f19ff2361bd73 100644
--- a/pyopencl/bitonic_sort_templates.py
+++ b/pyopencl/bitonic_sort_templates.py
@@ -46,7 +46,6 @@ defines = """//CL//
 
 typedef ${dtype} data_t;
 typedef ${idxtype} idx_t;
-typedef ${idxtype}2 idx_t2;
 #if CONFIG_USE_VALUE
 #define getKey(a) ((a).x)
 #define getValue(a) ((a).y)