sys_patch: Implement backend for 3802 support

This commit is contained in:
Mykola Grymalyuk
2023-07-16 22:44:58 -06:00
parent f3c3c83140
commit 549bf1686b
4 changed files with 13 additions and 11 deletions

View File

@@ -234,15 +234,16 @@ class SysPatchHelpers:
- opencl-c.h
- lib (entire directory)
Note: With macOS Sonoma, 32023 compiler is used instead and so this patch is not needed
Parameters:
mount_point: The mount point of the target volume
"""
if self.constants.detected_os < os_data.os_data.ventura:
if self.constants.detected_os != os_data.os_data.ventura:
return
if self.constants.detected_os_minor < 4:
return
if self.constants.detected_os == os_data.os_data.ventura:
if self.constants.detected_os_minor < 4:
return
LIBRARY_DIR = f"{mount_point}/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang"
GPU_VERSION = "31001.669"