Пример #1
0
 def test_check_cuda_version(self):
     with self.assertRaises(RuntimeError):
         build.get_cuda_version()
     assert build.check_cuda_version(self.compiler, self.settings)
     assert isinstance(build.get_cuda_version(), int)
     assert isinstance(build.get_cuda_version(True), str)
Пример #2
0
 def test_check_cuda_version(self):
     self.assertTrue(build.check_cuda_version(
         self.compiler, self.settings))
Пример #3
0
 def test_check_cuda_version(self):
     self.assertTrue(build.check_cuda_version(
         self.compiler, self.settings))