what's max dims of cudaArray's x and y cudaArray

delete this post.
See the below post and get:
The maximum width for a texture is 64K and maximum height 32K.

//////////// delete //////////////////
Hi, This works:
cudaArray* array;
cudaMallocArray(&array, &tex.desc, 641024, 4);
this doesn’t work:
cudaMallocArray(&array, &tex.desc, 128
1024, 4);
this works:
cudaMallocArray(&array, &tex.desc, 4096, 4096);
My question:
what’s the max dims on x and y of cudaArray? Thanks!