adding mocked cuda code