[FFmpeg-cvslog] compat/cuda: add device side printf function
Timo Rothenpieler
git at videolan.org
Wed May 14 23:13:51 EEST 2025
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Wed May 14 22:08:33 2025 +0200| [889e7f2c5c538d723101d02647b98e17222a03f1] | committer: Timo Rothenpieler
compat/cuda: add device side printf function
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=889e7f2c5c538d723101d02647b98e17222a03f1
---
compat/cuda/cuda_runtime.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/compat/cuda/cuda_runtime.h b/compat/cuda/cuda_runtime.h
index 699c4b6c75..7614233eaf 100644
--- a/compat/cuda/cuda_runtime.h
+++ b/compat/cuda/cuda_runtime.h
@@ -189,4 +189,7 @@ static inline __device__ float __cosf(float a) { return __nvvm_cos_approx_f(a);
static inline __device__ float __expf(float a) { return __nvvm_ex2_approx_f(a * (float)__builtin_log2(__builtin_exp(1))); }
static inline __device__ float __powf(float a, float b) { return __nvvm_ex2_approx_f(__nvvm_lg2_approx_f(a) * b); }
+// Misc helper functions
+extern "C" __device__ int printf(const char*, ...);
+
#endif /* COMPAT_CUDA_CUDA_RUNTIME_H */
More information about the ffmpeg-cvslog
mailing list