From e9f39f85d2958883eb798b67cce2fad04ef0c342 Mon Sep 17 00:00:00 2001 From: "W. Michael Brown" Date: Thu, 6 Oct 2022 20:05:33 -0700 Subject: [PATCH] Fixing issue where shared main memory property only set for NVIDIA devices. --- lib/gpu/geryon/ocl_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gpu/geryon/ocl_device.h b/lib/gpu/geryon/ocl_device.h index 506ee1fe91..243009109b 100644 --- a/lib/gpu/geryon/ocl_device.h +++ b/lib/gpu/geryon/ocl_device.h @@ -686,10 +686,10 @@ void UCL_Device::add_properties(cl_device_id device_list) { double arch = static_cast(minor)/10+major; if (arch >= 3.0) op.has_shuffle_support=true; - op.shared_main_memory=_shared_mem_device(device_list); } delete[] buffer2; #endif + op.shared_main_memory=_shared_mem_device(device_list); _properties.push_back(op); }