示例#1
0
 def test_runtime(self):
     runtime = cupyx.get_runtime_info()
     assert cupy.__version__ == runtime.cupy_version
     assert cupy.__version__ in str(runtime)
示例#2
0
def show_config():
    """Prints the current runtime configuration to standard output."""
    _sys.stdout.write(str(_cupyx.get_runtime_info()))
    _sys.stdout.flush()
示例#3
0
 def test_show_config(self):
     with mock.patch('sys.stdout.write') as write_func:
         cupy.show_config()
     write_func.assert_called_once_with(str(cupyx.get_runtime_info()))