We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00e7fa1 commit db5f8a0Copy full SHA for db5f8a0
setup.py
@@ -366,7 +366,7 @@ def make_image_extension():
366
else:
367
warnings.warn("Building torchvision without AVIF support")
368
369
- if USE_NVJPEG and torch.cuda.is_available():
+ if USE_NVJPEG and (torch.cuda.is_available() or FORCE_CUDA):
370
nvjpeg_found = CUDA_HOME is not None and (Path(CUDA_HOME) / "include/nvjpeg.h").exists()
371
372
if nvjpeg_found:
@@ -376,6 +376,8 @@ def make_image_extension():
376
Extension = CUDAExtension
377
378
warnings.warn("Building torchvision without NVJPEG support")
379
+ elif USE_NVJPEG:
380
+ warnings.warn("Building torchvision without NVJPEG support")
381
382
return Extension(
383
name="torchvision.image",
0 commit comments