Esempio n. 1
0
 def test_runtime(self):
     runtime = cupyx.get_runtime_info()
     assert cupy.__version__ == runtime.cupy_version
     assert cupy.__version__ in str(runtime)
Esempio n. 2
0
def show_config():
    """Prints the current runtime configuration to standard output."""
    _sys.stdout.write(str(_cupyx.get_runtime_info()))
    _sys.stdout.flush()
Esempio n. 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()))