Definition at line 8 of file cudaPreallocate.py.
12 device_re = re.compile(
"Device.*allocated new device block.*\((?P<bytes>\d+) bytes")
13 host_re = re.compile(
"Host.*allocated new host block.*\((?P<bytes>\d+) bytes")
17 m = device_re.search(line)
19 device.append(m.group(
"bytes"))
21 m = host_re.search(line)
23 host.append(m.group(
"bytes"))
26 print(
"process.CUDAService.allocator.devicePreallocate = cms.untracked.vuint32(%s)" %
",".
join(device))
27 print(
"process.CUDAService.allocator.hostPreallocate = cms.untracked.vuint32(%s)" %
",".
join(host))
References join(), and edm.print().