Skip to content

Commit

Permalink
fix option order
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed May 21, 2024
1 parent f026ba5 commit dd2abd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ await new Command()
case 'linux': {
const cudnnArchiveStream = await fetch(CUDNN_LINUX_PKG).then(c => c.body!);
const cudnnOutPath = join(root, 'cudnn');
await $`tar xzf -C ${cudnnOutPath} -`.stdin(cudnnArchiveStream);
await $`tar xzf - -C ${cudnnOutPath}`.stdin(cudnnArchiveStream);
args.push(`-Donnxruntime_CUDNN_HOME=${cudnnOutPath}`);

const trtArchiveStream = await fetch(TRT_LINUX_PKG).then(c => c.body!);
const trtOutPath = join(root, 'tensorrt');
await $`tar xzf -C ${trtOutPath} -`.stdin(trtArchiveStream);
await $`tar xzf - -C ${trtOutPath}`.stdin(trtArchiveStream);
args.push(`-Donnxruntime_TENSORRT_HOME=${trtOutPath}`);

break;
Expand Down

0 comments on commit dd2abd3

Please sign in to comment.