Closed VukaKun closed 6 years ago
I didn't want to do a pull request, because I'm not exactly sure what's going on, but in Include.ps1, line 436 says:
$OCLDevices = @($OCLPlatforms | ForEach-Object { [OpenCl.Device]::GetDeviceIDs($_, "GPU") })
However, in my system $OCLPlatforms[1] is an Intel CPU and OpenCL throws an error because the second parameter is hardcoded as "GPU". This is what I did to make it work:
$OCLDevices = @($OCLPlatforms | ForEach-Object { if($_.Vendor -like '*NVIDIA*' -or $_.vendor -like '*Advanced Micro Devices*'){ [OpenCl.Device]::GetDeviceIDs($_, "GPU") } else{[OpenCl.Device]::GetDeviceIDs($_, "CPU")} })
fixed )
I didn't want to do a pull request, because I'm not exactly sure what's going on, but in Include.ps1, line 436 says:
$OCLDevices = @($OCLPlatforms | ForEach-Object { [OpenCl.Device]::GetDeviceIDs($_, "GPU") })
However, in my system $OCLPlatforms[1] is an Intel CPU and OpenCL throws an error because the second parameter is hardcoded as "GPU". This is what I did to make it work:
$OCLDevices = @($OCLPlatforms | ForEach-Object { if($_.Vendor -like '*NVIDIA*' -or $_.vendor -like '*Advanced Micro Devices*'){ [OpenCl.Device]::GetDeviceIDs($_, "GPU") } else{[OpenCl.Device]::GetDeviceIDs($_, "CPU")} })