Skip to content

Commit

Permalink
nvcc の include ディレクトリの階層が変わっているので CUDA_TOOLKIT_INCLUDE を設定する
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Jan 18, 2024
1 parent bf9233c commit b1e76b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1713,6 +1713,7 @@ def main():
cmake_args.append('-DUSE_NVCODEC_ENCODER=ON')
if platform.target.os == 'windows':
cmake_args.append(f"-DCUDA_TOOLKIT_ROOT_DIR={cmake_path(os.path.join(install_dir, 'cuda', 'nvcc'))}")
cmake_args.append(f"-DCUDA_TOOLKIT_INCLUDE={cmake_path(os.path.join(install_dir, 'cuda', 'nvcc', 'crt'))}")

if platform.target.os in ('windows', 'ubuntu') and platform.target.arch == 'x86_64':
cmake_args.append('-DUSE_VPL_ENCODER=ON')
Expand Down

0 comments on commit b1e76b2

Please sign in to comment.