Sync v13.5-public from internal repo

This commit is contained in:
cuda-samples sync
2026-11-04 20:44:00 +00:00
parent 5443602d89
commit a9315c55fb
53 changed files with 1750 additions and 183 deletions

View File

@@ -62,6 +62,12 @@ int main()
std::cout << "SMs per locality domain: " << localityDomainSmCount << std::endl;
}
if (localityDomainCount == 0) {
std::cout << "Waiving execution as the device does not support locality domains." << std::endl;
cuCtxDestroy(context);
return 2;
}
// Construct localized green contexts and streams
std::vector<CUgreenCtx> greenContexts(localityDomainCount);
std::vector<CUstream> streams(localityDomainCount);