Fix cuda test on 32 bit python.
Merge pull request #1776 from nouiz/32bit

Fix cuda test on 32 bit python.