Added tmp variable to .cu file