mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-11-18 01:48:16 +08:00
Post v13.5 (#470)
This commit is contained in:
@@ -51,7 +51,7 @@ int main()
|
||||
|
||||
if (!memoryPoolsSupported) {
|
||||
std::cout << "Waiving execution as the device does not support memory pools." << std::endl;
|
||||
return 0;
|
||||
return 2;
|
||||
}
|
||||
|
||||
// Device information
|
||||
@@ -65,6 +65,11 @@ 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;
|
||||
return 2;
|
||||
}
|
||||
|
||||
// Construct localized green contexts and streams
|
||||
std::vector<cudaExecutionContext_t> greenContexts(localityDomainCount);
|
||||
std::vector<cudaStream_t> streams(localityDomainCount);
|
||||
|
||||
Reference in New Issue
Block a user