Fixing issue where shared main memory property only set for NVIDIA devices.
This commit is contained in:
@ -686,10 +686,10 @@ void UCL_Device::add_properties(cl_device_id device_list) {
|
|||||||
double arch = static_cast<double>(minor)/10+major;
|
double arch = static_cast<double>(minor)/10+major;
|
||||||
if (arch >= 3.0)
|
if (arch >= 3.0)
|
||||||
op.has_shuffle_support=true;
|
op.has_shuffle_support=true;
|
||||||
op.shared_main_memory=_shared_mem_device(device_list);
|
|
||||||
}
|
}
|
||||||
delete[] buffer2;
|
delete[] buffer2;
|
||||||
#endif
|
#endif
|
||||||
|
op.shared_main_memory=_shared_mem_device(device_list);
|
||||||
|
|
||||||
_properties.push_back(op);
|
_properties.push_back(op);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user