Skip to content

Commit

Permalink
configure: add kernels to vcomp/cmpto_j2k as well
Browse files Browse the repository at this point in the history
refers to GH-406
  • Loading branch information
MartinPulec committed Sep 6, 2024
1 parent f3462fc commit 47c13e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3095,14 +3095,14 @@ if test "$cmpto_j2k_req" != no &&
test "$FOUND_CMPTO_J2K_ENC_L" = yes &&
test "$FOUND_CMPTO_J2K_DEC_L" = yes
then
dec_objs=src/video_decompress/cmpto_j2k.o
kernels=
if test "$FOUND_CUDA" = yes; then
dec_objs="$dec_objs src/cuda_wrapper/kernels.o"
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 -lcmpto_j2k_enc
add_module vdecompress_cmpto_j2k "$dec_objs" -lcmpto_j2k_dec
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
cmpto_j2k=yes
fi

Expand Down

0 comments on commit 47c13e3

Please sign in to comment.