pi-curand updated to match the requirements
thrust code completed