Skip to content

Commit

Permalink
vpp-frucにはCC7.0以降のGPUが必要。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Mar 3, 2024
1 parent dd1607a commit 5a99e7c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NVEncCore/NVEncCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,15 @@ NVENCSTATUS NVEncCore::CheckGPUListByEncoder(std::vector<std::unique_ptr<NVGPUIn
continue;
}
}
if (inputParam->vpp.fruc.enable) {
//nvof-frucにはturing以降(CC7.0)が必要
const int nvvfxRequiredCCMajor = 7;
if ((*gpu)->cc().first < nvvfxRequiredCCMajor) {
message += strsprintf(_T("GPU #%d (%s) does not support fruc, CC 7.0 is required but GPU is CC %d.%d.\n"), (*gpu)->id(), (*gpu)->name().c_str(), (*gpu)->cc().first, (*gpu)->cc().second);
gpu = gpuList.erase(gpu);
continue;
}
}

PrintMes(RGY_LOG_DEBUG, _T("GPU #%d (%s) available for encode.\n"), (*gpu)->id(), (*gpu)->name().c_str());
gpu++;
Expand Down

0 comments on commit 5a99e7c

Please sign in to comment.