Skip to content

Commit

Permalink
fix: wrong env
Browse files Browse the repository at this point in the history
  • Loading branch information
takuya-takeuchi committed Jul 22, 2019
1 parent fa0fff0 commit 8a54609
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nuget/BuildUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ class Config

$CudaVersionHash =
@{
90 = "9_0";
91 = "9_1";
92 = "9_2";
100 = "10_0";
101 = "10_1"
90 = "CUDA_PATH_9_0";
91 = "CUDA_PATH_9_1";
92 = "CUDA_PATH_9_2";
100 = "CUDA_PATH_10_0";
101 = "CUDA_PATH_10_1"
}

$VisualStudio = "Visual Studio 15 2017"
Expand Down Expand Up @@ -414,7 +414,7 @@ class Config
# CUDA_PATH_V9_1=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1
# CUDA_PATH_V9_2=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2
$version = $this.CudaVersionHash[$this._CudaVersion]
return Get-Item "$env:CUDA_PATH_V$version"
return [environment]::GetEnvironmentVariable($version, 'Machine')
}

}
Expand Down

0 comments on commit 8a54609

Please sign in to comment.