In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#将日志同时输出到文件和屏幕 | |
import logging | |
logging.basicConfig(level=logging.DEBUG, | |
format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', | |
datefmt='%a, %d %b %Y %H:%M:%S', | |
filename='myapp.log', | |
filemode='w') |