FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix nvidia tests for CPU · HpcDataLab/docker-python@f9f5ee8 · GitHub

Commit f9f5ee8

Browse files
committed
Fix nvidia tests for CPU
1 parent eb6742f commit f9f5ee8

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎tests/test_nvidia.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
import sys
66
import unittest
77

8-
import common
9-
import pycuda.driver
10-
118
from common import gpu_test
129

1310

@@ -19,7 +16,8 @@ def test_system_management_interface(self):
1916
self.assertEqual(0, smi.returncode)
2017

2118
@gpu_test
22-
def test_pycuda(self):
19+
def test_pycuda(self):
20+
import pycuda.driver
2321
pycuda.driver.init()
2422
gpu_name = pycuda.driver.Device(0).name()
2523
self.assertNotEqual(0, len(gpu_name))

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL