mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-11 23:38:25 +08:00
--Update README.md for cuda 10.1 release
-- fix multidevice CG sample to check for concurrentManagedAccess as it needs systemwide atomics
This commit is contained in:
@@ -415,7 +415,7 @@ void getIdenticalGPUs(int num_of_gpus, std::set<int> &identicalGPUs) {
|
||||
identicalGPUs.erase(it);
|
||||
}
|
||||
if (!deviceProp.cooperativeMultiDeviceLaunch ||
|
||||
!deviceProp.managedMemory) {
|
||||
!deviceProp.concurrentManagedAccess) {
|
||||
identicalGPUs.erase(it);
|
||||
}
|
||||
it++;
|
||||
@@ -450,7 +450,7 @@ int main(int argc, char **argv) {
|
||||
if (identicalGPUs.size() <= 1) {
|
||||
printf(
|
||||
"No Two or more GPUs with same architecture capable of "
|
||||
"cooperativeMultiDeviceLaunch & managedMemory found. \nWaiving the sample\n");
|
||||
"cooperativeMultiDeviceLaunch & concurrentManagedAccess found. \nWaiving the sample\n");
|
||||
exit(EXIT_WAIVED);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user