Skip to content

Commit

Permalink
Merge pull request #371 from kmaehashi/preload-log
Browse files Browse the repository at this point in the history
Use new library load debugging feature
  • Loading branch information
takagi authored Nov 17, 2023
2 parents 91adbe6 + 8d4261b commit d941446
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions verifier/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def _log(self, msg):

def _run(self, *cmd):
self._log('Running command: {0}'.format(str(cmd)))
subprocess.check_call(cmd)
env = dict(os.environ)
env['CUPY_DEBUG_LIBRARY_LOAD'] = '1'
subprocess.check_call(cmd, env=env)

def parse_args(self):
parser = argparse.ArgumentParser()
Expand Down Expand Up @@ -79,7 +81,6 @@ def main(self):
'import cupy',
'import cupy.cuda.cudnn',
'cupy.show_config()',
'print(cupy._environment._get_preload_logs())'
])
]
self._run(*cmdline)
Expand Down

0 comments on commit d941446

Please sign in to comment.