diff options
author | Philip Langdale <philipl@overt.org> | 2016-11-23 10:14:32 -0800 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-11-23 20:48:26 +0100 |
commit | 3abb6f1fefadc5e8e84966e07857d248a07a7b29 (patch) | |
tree | b7e52c289ea1a230b5d9c5013134e2303bc81624 /waftools/fragments/cuda.c | |
parent | 755e9fad2985fbaaa0c23243521ab4c90a3ceb7e (diff) | |
download | mpv-3abb6f1fefadc5e8e84966e07857d248a07a7b29.tar.bz2 mpv-3abb6f1fefadc5e8e84966e07857d248a07a7b29.tar.xz |
wscript: Fix cuda test to actually work when cuda SDK is not present
The test ended up failing if cuda.h wasn't present, even if cuda.h
isn't used during the actual build.
This test is attempting to establish if the ffmpeg being built
against has dynlink_cuda support. While it might theoretically be
possible to build against the older normally-linked-cuda version
of ffmpeg, it seems more trouble than it's worth.
Diffstat (limited to 'waftools/fragments/cuda.c')
-rw-r--r-- | waftools/fragments/cuda.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/waftools/fragments/cuda.c b/waftools/fragments/cuda.c new file mode 100644 index 0000000000..c63ec2945d --- /dev/null +++ b/waftools/fragments/cuda.c @@ -0,0 +1,12 @@ +#define CUDA_VERSION 7050 + +typedef void * CUcontext; + +#include <libavutil/hwcontext.h> +#include <libavutil/hwcontext_cuda.h> + +int main(int argc, char *argv[]) { + enum AVHWDeviceType type = AV_HWDEVICE_TYPE_CUDA; + AVCUDADeviceContextInternal *foo; + return 0; +} |