Open dbl001 opened 1 year ago
Hello @dbl001, it seems you're having the same issue I opened in Issue #205 . I think the fix for this problem requires adding a FrameworkProduct to the OpenCL_jll library code in the case where the platform is MacOS; unfortunately at the moment I don't have time or expertise to fix it myself, but perhaps you could take a look at that issue and see if you have the knowledge to fix it?
The OpenCL interface in Mathematica 13.2 which uses Apple's OpenCL framework works on my 2021 iMac 27" running MacOS Ventura 13.2 with an AMD Radeon Pro 5700 XT
{"Version" -> "OpenCL 1.2 (Dec 16 2022 20:35:20)", "Name" -> "Apple",
"Vendor" -> "Apple",
"Extensions" -> {"cl_APPLE_SetMemObjectDestructor",
"cl_APPLE_ContextLoggingFunctions", "cl_APPLE_clut",
"cl_APPLE_query_kernel_names", "cl_APPLE_gl_sharing",
"cl_khr_gl_event"},
1 -> {"Type" -> "CPU",
"Name" -> "Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz",
"Version" -> "OpenCL 1.2",
"Extensions" -> {"cl_APPLE_SetMemObjectDestructor",
"cl_APPLE_ContextLoggingFunctions", "cl_APPLE_clut",
"cl_APPLE_query_kernel_names", "cl_APPLE_gl_sharing",
"cl_khr_gl_event", "cl_khr_fp64",
"cl_khr_global_int32_base_atomics",
"cl_khr_global_int32_extended_atomics",
"cl_khr_local_int32_base_atomics",
"cl_khr_local_int32_extended_atomics",
"cl_khr_byte_addressable_store", "cl_khr_int64_base_atomics",
"cl_khr_int64_extended_atomics", "cl_khr_3d_image_writes",
"cl_khr_image2d_from_buffer", "cl_APPLE_fp64_basic_ops",
"cl_APPLE_fixed_alpha_channel_orders",
"cl_APPLE_biased_fixed_point_image_formats",
"cl_APPLE_command_queue_priority"}, "Driver Version" -> "1.1",
"Vendor" -> "Intel", "Profile" -> "FULL_PROFILE",
"Vendor ID" -> 4294967295, "Compute Units" -> 16,
"Core Count" -> 16, "Maximum Work Item Dimensions" -> 3,
"Maximum Work Item Sizes" -> {1024, 1, 1},
"Maximum Work Group Size" -> 1024,
"Preferred Vector Width Character" -> 16,
"Preferred Vector Width Short" -> 8,
"Preferred Vector Width Integer" -> 4,
"Preferred Vector Width Long" -> 2,
"Preferred Vector Width Float" -> 4,
"Preferred Vector Width Double" -> 2,
"Maximum Clock Frequency" -> 3800, "Address Bits" -> 64,
"Maximum Memory Allocation Size" -> 34359738368,
"Image Support" -> True, "Maximum Read Image Arguments" -> 128,
"Maximum Write Image Arguments" -> 8,
"Maximum Image2D Width" -> 8192, "Maximum Image2D Height" -> 8192,
"Maximum Image3D Width" -> 2048, "Maximum Image3D Height" -> 2048,
"Maximum Image3D Depth" -> 2048, "Maximum Samplers" -> 16,
"Maximum Parameter Size" -> 4096,
"Memory Base Address Align" -> 1024,
"Memory Data Type Align Size" -> 128,
"Floating Point Precision Configuration" -> {"Denorms", "Infinity",
"NaNs", "Round to Nearest", "Round to Infinity",
"Round to Zero", "IEEE754-2008 Fused MAD"},
"Global Memory Cache Type" -> "Read Write",
"Global Memory Cache Line Size" -> 16777216,
"Global Memory Cache Size" -> 64,
"Global Memory Size" -> 137438953472,
"Maximum Constant Buffer Size" -> 65536,
"Maximum Constant Arguments" -> 8, "Local Memory Type" -> "Global",
"Local Memory Size" -> 32768, "Error Correction Support" -> False,
"Profiling Timer Resolution" -> 1, "Endian Little" -> True,
"Available" -> True, "Compiler Available" -> True,
"Execution Capabilities" -> {"Kernel Execution",
"Native Kernel Execution"},
"Command Queue Properties" -> {"Profiling Enabled"}},
2 -> {"Type" -> "GPU",
"Name" -> "AMD Radeon Pro 5700 XT Compute Engine",
"Version" -> "OpenCL 1.2",
"Extensions" -> {"cl_APPLE_SetMemObjectDestructor",
"cl_APPLE_ContextLoggingFunctions", "cl_APPLE_clut",
"cl_APPLE_query_kernel_names", "cl_APPLE_gl_sharing",
"cl_khr_gl_event", "cl_khr_global_int32_base_atomics",
"cl_khr_global_int32_extended_atomics",
"cl_khr_local_int32_base_atomics",
"cl_khr_local_int32_extended_atomics",
"cl_khr_byte_addressable_store", "cl_khr_depth_images",
"cl_APPLE_command_queue_priority",
"cl_APPLE_command_queue_select_compute_units", "cl_khr_fp64"},
"Driver Version" -> "1.2 (Jan 6 2023 19:45:55)",
"Vendor" -> "AMD", "Profile" -> "FULL_PROFILE",
"Vendor ID" -> 16915968, "Compute Units" -> 40, "Core Count" -> 40,
"Maximum Work Item Dimensions" -> 3,
"Maximum Work Item Sizes" -> {256, 256, 256},
"Maximum Work Group Size" -> 256,
"Preferred Vector Width Character" -> 4,
"Preferred Vector Width Short" -> 2,
"Preferred Vector Width Integer" -> 1,
"Preferred Vector Width Long" -> 1,
"Preferred Vector Width Float" -> 1,
"Preferred Vector Width Double" -> 1,
"Maximum Clock Frequency" -> 1499, "Address Bits" -> 32,
"Maximum Memory Allocation Size" -> 4290772992,
"Image Support" -> True, "Maximum Read Image Arguments" -> 128,
"Maximum Write Image Arguments" -> 8,
"Maximum Image2D Width" -> 16384,
"Maximum Image2D Height" -> 16384, "Maximum Image3D Width" -> 2048,
"Maximum Image3D Height" -> 2048, "Maximum Image3D Depth" -> 2048,
"Maximum Samplers" -> 16, "Maximum Parameter Size" -> 1024,
"Memory Base Address Align" -> 32768,
"Memory Data Type Align Size" -> 128,
"Floating Point Precision Configuration" -> {"Denorms", "Infinity",
"NaNs", "Round to Nearest", "Round to Infinity",
"Round to Zero"}, "Global Memory Cache Type" -> "None",
"Global Memory Cache Line Size" -> 0,
"Global Memory Cache Size" -> 0,
"Global Memory Size" -> 17163091968,
"Maximum Constant Buffer Size" -> 65536,
"Maximum Constant Arguments" -> 8, "Local Memory Type" -> "Local",
"Local Memory Size" -> 65536, "Error Correction Support" -> False,
"Profiling Timer Resolution" -> 10, "Endian Little" -> True,
"Available" -> True, "Compiler Available" -> True,
"Execution Capabilities" -> {"Kernel Execution"},
"Command Queue Properties" -> {"Profiling Enabled"}}}
I am getting this error: CLError(code=-1001, CL_PLATFORM_NOT_FOUND_KHR)