test for cuda code in separate compile