add a simple file to check thread safety in torch