Skip to content

Commit

Permalink
configure.ac: cmpto_j2k - add cudart if used
Browse files Browse the repository at this point in the history
add -lcudart to the libs if CUDA is used for the conversions
  • Loading branch information
MartinPulec committed Sep 18, 2024
1 parent 7b70622 commit 69523f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3099,14 +3099,18 @@ if test "$cmpto_j2k_req" != no &&
test "$FOUND_CMPTO_J2K_ENC_L" = yes &&
test "$FOUND_CMPTO_J2K_DEC_L" = yes
then
cmpto_libs=
kernels=
if test "$FOUND_CUDA" = yes; then
cmpto_libs="$CUDA_LIB"
kernels="src/cuda_wrapper/kernels.o"
else
UG_MSG_WARN([CUDA is recommended for optimal cmpto_j2k performance but not found])
fi
add_module vcompress_cmpto_j2k "src/video_compress/cmpto_j2k.o $kernels" -lcmpto_j2k_enc
add_module vdecompress_cmpto_j2k "src/video_decompress/cmpto_j2k.o $kernels" -lcmpto_j2k_dec
add_module vcompress_cmpto_j2k "src/video_compress/cmpto_j2k.o \
$kernels" "-lcmpto_j2k_enc $cmpto_libs"
add_module vdecompress_cmpto_j2k "src/video_decompress/cmpto_j2k.o \
$kernels" "-lcmpto_j2k_dec $cmpto_libs"
cmpto_j2k=yes
fi

Expand Down

0 comments on commit 69523f9

Please sign in to comment.