When I use culaDeviceSgesv and culaDeviceSgetrf in Windows (32-bit), everything's ok. But when I change the platform and culatools to 64-bit,
Runtime Error (17) occurs with the same code. I don't know why.

I would recommend always benchmarking the times to prove to yourself that the use of the Device interface will reduce your overall time. When you allow CULA to do the allocation and transfers, we have more flexibility. Often the performance between our Host and Device interfaces is negligible and occasionally the Host interface outperforms a poorly allocated Device call.