Skip to content

Commit

Permalink
nvcc ignore unsupported compiler on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Jun 28, 2024
1 parent ff5b858 commit 8fb31dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ await new Command()
break;
}
case 'win32': {
// nvcc < 12.4 throws an error with VS 17.10
args.push('-DCMAKE_CUDA_FLAGS_INIT=-allow-unsupported-compiler');

// windows should ship with bsdtar which supports extracting .zips
const cudnnArchiveStream = await fetch(Deno.env.get('CUDNN_URL')!).then(c => c.body!);
const cudnnOutPath = join(root, 'cudnn');
Expand Down

0 comments on commit 8fb31dc

Please sign in to comment.