Skip to content

Commit 3d869ea

Browse files
committed
fix ruff failures on string formatting
1 parent e976d17 commit 3d869ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cuda_bindings/examples/4_CUDA_Libraries/conjugateGradientMultiBlockCG_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,12 @@ def main():
230230
# This sample requires being run on a device that supports Cooperative Kernel
231231
# Launch
232232
if not deviceProp.cooperativeLaunch:
233-
print("\nSelected GPU (%d) does not support Cooperative Kernel Launch, Waiving the run" % (devID))
233+
print(f"\nSelected GPU {devID:%d} does not support Cooperative Kernel Launch, Waiving the run")
234234
return
235235

236236
# Statistics about the GPU device
237237
print(
238-
"> GPU device has %d Multi-Processors, SM %d.%d compute capabilities\n"
239-
% (deviceProp.multiProcessorCount, deviceProp.major, deviceProp.minor)
238+
f"> GPU device has {deviceProp.multiProcessorCount:%d} Multi-Processors, SM {deviceProp.major:%d}.{deviceProp.minor:%d} compute capabilities\n"
240239
)
241240

242241
# Get kernel

0 commit comments

Comments
 (0)