CUDA version works correctly. Didnt correctly launch kernel and the types of the variables associated with the ratio of the MCPi were wrong