Skip to content

Commit 74eccf1

Browse files
committed
chore(autofix): ruff check fixes
1 parent 3d7d4f1 commit 74eccf1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+28
-73
lines changed

conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
import os
5+
56
import pytest
67

78

cuda_bindings/benchmarks/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import numpy as np
55
import pytest
6-
76
from cuda.bindings import driver as cuda
87
from cuda.bindings import nvrtc
98
from cuda.bindings import runtime as cudart

cuda_bindings/benchmarks/test_launch_latency.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import ctypes
55

66
import pytest
7-
from conftest import ASSERT_DRV
7+
from cuda.bindings import driver as cuda
88
from kernels import kernel_string
99

10-
from cuda.bindings import driver as cuda
10+
from conftest import ASSERT_DRV
1111

1212

1313
def launch(kernel, stream, args=(), arg_types=()):

cuda_bindings/benchmarks/test_pointer_attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import random
55

66
import pytest
7-
from conftest import ASSERT_DRV
8-
97
from cuda.bindings import driver as cuda
108

9+
from conftest import ASSERT_DRV
10+
1111
random.seed(0)
1212

1313
idx = 0

cuda_bindings/examples/0_Introduction/clock_nvrtc_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import numpy as np
77
from common import common
88
from common.helper_cuda import checkCudaErrors, findCudaDevice
9-
109
from cuda.bindings import driver as cuda
1110

1211
clock_nvrtc = """\

cuda_bindings/examples/0_Introduction/simpleCubemapTexture_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import numpy as np
99
from common import common
1010
from common.helper_cuda import checkCudaErrors, findCudaDevice
11-
1211
from cuda.bindings import driver as cuda
1312
from cuda.bindings import runtime as cudart
1413

cuda_bindings/examples/0_Introduction/simpleP2P_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import numpy as np
99
from common import common
1010
from common.helper_cuda import checkCudaErrors
11-
1211
from cuda.bindings import driver as cuda
1312
from cuda.bindings import runtime as cudart
1413

cuda_bindings/examples/0_Introduction/simpleZeroCopy_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from common import common
1212
from common.helper_cuda import checkCudaErrors
1313
from common.helper_string import checkCmdLineFlag, getCmdLineArgumentInt
14-
1514
from cuda.bindings import driver as cuda
1615
from cuda.bindings import runtime as cudart
1716

cuda_bindings/examples/0_Introduction/systemWideAtomics_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import numpy as np
99
from common import common
1010
from common.helper_cuda import checkCudaErrors, findCudaDevice
11-
1211
from cuda.bindings import driver as cuda
1312
from cuda.bindings import runtime as cudart
1413

cuda_bindings/examples/0_Introduction/vectorAddDrv_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import numpy as np
99
from common import common
1010
from common.helper_cuda import checkCudaErrors, findCudaDeviceDRV
11-
1211
from cuda.bindings import driver as cuda
1312

1413
vectorAddDrv = """\

0 commit comments

Comments
 (0)