本文整理汇总了Python中Debug.verboseMessage方法的典型用法代码示例。如果您正苦于以下问题:Python Debug.verboseMessage方法的具体用法?Python Debug.verboseMessage怎么用?Python Debug.verboseMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Debug
的用法示例。
在下文中一共展示了Debug.verboseMessage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: removeFile
# 需要导入模块: import Debug [as 别名]
# 或者: from Debug import verboseMessage [as 别名]
for paths, dirs, files in os.walk(abspath):
files.sort()
for filename in files:
if filename.startswith('_cuobjdump_') or filename.startswith('_ptxplus_'):
removeFile(os.path.join(paths, filename))
def preClean (abspath):
import re
for paths, dirs, files in os.walk(os.path.abspath(os.curdir)):
files.sort()
for filename in files:
match = re.search(r'%s[0-9]+%s' % (runPrefix, gpgpuFileExt), filename)
if match:
removeFile(os.path.join(paths, filename))
elif filename.endswith('.udraw') or filename.endswith('.ilp'):
removeFile(os.path.join(paths, filename))
elif filename == 'benchmark.warps.trace':
removeFile(os.path.join(paths, filename))
if __name__ == "__main__":
import multiprocessing
Debug.verboseMessage("You have %d CPUs on your system" % multiprocessing.cpu_count())
if opts.deepclean:
preClean(os.path.abspath(os.curdir))
try:
# What to do depends on which parameters were parameters on the command line
checkCommandLineForAction ()
finally:
# Remove temporarily generated files
postClean (os.path.abspath(os.curdir))