Skip to content

Commit d941446

Browse files
authored
Merge pull request #371 from kmaehashi/preload-log
Use new library load debugging feature
2 parents 91adbe6 + 8d4261b commit d941446

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

verifier/agent.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def _log(self, msg):
1717

1818
def _run(self, *cmd):
1919
self._log('Running command: {0}'.format(str(cmd)))
20-
subprocess.check_call(cmd)
20+
env = dict(os.environ)
21+
env['CUPY_DEBUG_LIBRARY_LOAD'] = '1'
22+
subprocess.check_call(cmd, env=env)
2123

2224
def parse_args(self):
2325
parser = argparse.ArgumentParser()
@@ -79,7 +81,6 @@ def main(self):
7981
'import cupy',
8082
'import cupy.cuda.cudnn',
8183
'cupy.show_config()',
82-
'print(cupy._environment._get_preload_logs())'
8384
])
8485
]
8586
self._run(*cmdline)

0 commit comments

Comments
 (0)