-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update packman to fix CUB docs (#1291)
- Loading branch information
1 parent
a4a3289
commit 6034056
Showing
10 changed files
with
666 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 52 additions & 52 deletions
104
cub/docs/tools/packman/bootstrap/download_file_from_url.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
<# | ||
Copyright 2019 NVIDIA CORPORATION | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
#> | ||
|
||
param( | ||
[Parameter(Mandatory=$true)][string]$source=$null, | ||
[string]$output="out.exe" | ||
) | ||
$filename = $output | ||
|
||
$triesLeft = 4 | ||
$delay = 2 | ||
do | ||
{ | ||
$triesLeft -= 1 | ||
|
||
try | ||
{ | ||
Write-Host "Downloading from bootstrap.packman.nvidia.com ..." | ||
$wc = New-Object net.webclient | ||
$wc.Downloadfile($source, $fileName) | ||
exit 0 | ||
} | ||
catch | ||
{ | ||
Write-Host "Error downloading $source!" | ||
Write-Host $_.Exception|format-list -force | ||
if ($triesLeft) | ||
{ | ||
Write-Host "Retrying in $delay seconds ..." | ||
Start-Sleep -seconds $delay | ||
} | ||
$delay = $delay * $delay | ||
} | ||
} while ($triesLeft -gt 0) | ||
# We only get here if the retries have been exhausted, remove any left-overs: | ||
if (Test-Path $fileName) | ||
{ | ||
Remove-Item $fileName | ||
} | ||
<# | ||
Copyright 2019 NVIDIA CORPORATION | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
#> | ||
|
||
param( | ||
[Parameter(Mandatory=$true)][string]$source=$null, | ||
[string]$output="out.exe" | ||
) | ||
$filename = $output | ||
|
||
$triesLeft = 4 | ||
$delay = 2 | ||
do | ||
{ | ||
$triesLeft -= 1 | ||
|
||
try | ||
{ | ||
Write-Host "Downloading from bootstrap.packman.nvidia.com ..." | ||
$wc = New-Object net.webclient | ||
$wc.Downloadfile($source, $fileName) | ||
exit 0 | ||
} | ||
catch | ||
{ | ||
Write-Host "Error downloading $source!" | ||
Write-Host $_.Exception|format-list -force | ||
if ($triesLeft) | ||
{ | ||
Write-Host "Retrying in $delay seconds ..." | ||
Start-Sleep -seconds $delay | ||
} | ||
$delay = $delay * $delay | ||
} | ||
} while ($triesLeft -gt 0) | ||
# We only get here if the retries have been exhausted, remove any left-overs: | ||
if (Test-Path $fileName) | ||
{ | ||
Remove-Item $fileName | ||
} | ||
exit 1 |
Empty file modified
0
cub/docs/tools/packman/bootstrap/fetch_file_from_packman_bootstrap.cmd
100644 → 100755
Empty file.
322 changes: 161 additions & 161 deletions
322
cub/docs/tools/packman/bootstrap/generate_temp_file_name.ps1
Large diffs are not rendered by default.
Oops, something went wrong.
334 changes: 167 additions & 167 deletions
334
cub/docs/tools/packman/bootstrap/generate_temp_folder.ps1
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.