Skip to content

Commit 6a37405

Browse files
committed
configure: add cuda-sdk for things requiring full CUDA sdk
1 parent 532b23f commit 6a37405

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

configure

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ External library support:
297297
The following libraries provide various hardware acceleration features:
298298
--disable-audiotoolbox disable Apple AudioToolbox code [autodetect]
299299
--disable-cuda disable dynamically linked Nvidia CUDA code [autodetect]
300+
--enable-cuda-sdk enable CUDA features that require the CUDA SDK [no]
300301
--disable-cuvid disable Nvidia CUVID support [autodetect]
301302
--disable-d3d11va disable Microsoft Direct3D 11 video acceleration code [autodetect]
302303
--disable-dxva2 disable Microsoft DirectX 9 video acceleration code [autodetect]
@@ -1598,6 +1599,7 @@ HWACCEL_AUTODETECT_LIBRARY_LIST="
15981599
"
15991600

16001601
HWACCEL_LIBRARY_NONFREE_LIST="
1602+
cuda_sdk
16011603
libnpp
16021604
"
16031605

@@ -2716,7 +2718,7 @@ qsvenc_select="qsv"
27162718
vaapi_encode_deps="vaapi"
27172719

27182720
hwupload_cuda_filter_deps="cuda"
2719-
scale_npp_filter_deps="cuda libnpp"
2721+
scale_npp_filter_deps="cuda_sdk libnpp"
27202722

27212723
nvenc_deps="cuda"
27222724
nvenc_deps_any="dlopen LoadLibrary"
@@ -5755,7 +5757,7 @@ done
57555757
enabled avfoundation_indev && { check_header_objcc AVFoundation/AVFoundation.h || disable avfoundation_indev; }
57565758
enabled avfoundation_indev && { check_lib avfoundation_indev CoreGraphics/CoreGraphics.h CGGetActiveDisplayList -framework CoreGraphics ||
57575759
check_lib avfoundation_indev ApplicationServices/ApplicationServices.h CGGetActiveDisplayList -framework ApplicationServices; }
5758-
enabled cuda && check_header cuda.h # this is not a dependency
5760+
enabled cuda_sdk && require cuda_sdk cuda.h cuCtxCreate -lcuda
57595761
enabled cuvid && { enabled cuda ||
57605762
die "ERROR: CUVID requires CUDA"; }
57615763
enabled chromaprint && require chromaprint chromaprint.h chromaprint_get_version -lchromaprint

0 commit comments

Comments
 (0)