Skip to content

Commit

Permalink
Update GPUtest.ps1
Browse files Browse the repository at this point in the history
- add OpenCL detection
  • Loading branch information
RainbowMiner committed Nov 9, 2018
1 parent 4c80966 commit ef62b00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions GPUtest.ps1
Expand Up @@ -42,6 +42,17 @@ $Arguments = @(

Invoke-Exe ".\Includes\nvidia-smi.exe" -ArgumentList ($Arguments -join ' ') -WorkingDirectory $Pwd -ExpandLines -ExcludeEmptyLines | Out-File $TestFileName -Encoding utf8 -Append

" " | Out-File $TestFileName -Append
"5. OpenCL" | Out-File $TestFileName -Append
"-"*80 | Out-File $TestFileName -Append
" " | Out-File $TestFileName -Append

[OpenCl.Platform]::GetPlatformIDs() | ForEach-Object {
$_ | Out-File $TestFileName -Encoding utf8 -Append
[OpenCl.Device]::GetDeviceIDs($_, [OpenCl.DeviceType]::All) | Out-File $TestFileName -Encoding utf8 -Append
"."*80 | Out-File $TestFileName -Append
}

Write-Host "Done! Now please drop the file"
Write-Host " "
Write-Host $(Resolve-Path $TestFileName | Select-Object -ExpandProperty Path) -ForegroundColor Yellow
Expand Down

0 comments on commit ef62b00

Please sign in to comment.