Definition at line 8 of file cudaPreallocate.py.
References join(), and print().
13 device_re = re.compile(
"Device.*allocated new device block.*\((?P<bytes>\d+) bytes")
14 host_re = re.compile(
"Host.*allocated new host block.*\((?P<bytes>\d+) bytes")
18 m = device_re.search(line)
20 device.append(m.group(
"bytes"))
22 m = host_re.search(line)
24 host.append(m.group(
"bytes"))
27 print(
"process.CUDAService.allocator.devicePreallocate = cms.untracked.vuint32(%s)" %
",".
join(device))
28 print(
"process.CUDAService.allocator.hostPreallocate = cms.untracked.vuint32(%s)" %
",".
join(host))
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
static std::string join(char **cmd)