Skip to content

Commit

Permalink
add also CUDACXX env variable if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
cenit committed May 23, 2020
1 parent ba4d8c1 commit 91e6b86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ if (Test-Path env:CUDA_PATH) {
$env:CUDA_TOOLKIT_ROOT_DIR = "${env:CUDA_PATH}"
Write-Host "Added missing env variable CUDA_TOOLKIT_ROOT_DIR" -ForegroundColor Yellow
}
if (-Not(Test-Path env:CUDACXX)) {
$env:CUDACXX = "${env:CUDA_PATH}\bin\nvcc.exe"
Write-Host "Added missing env variable CUDACXX" -ForegroundColor Yellow
}
}

if($force_cpp_build) {
Expand Down

0 comments on commit 91e6b86

Please sign in to comment.