tvm_tirx.support.xcode.compile_metal

Contents

tvm_tirx.support.xcode.compile_metal#

tvm_tirx.support.xcode.compile_metal(code, path_target=None, sdk='macosx', min_os_version=None)#

Compile Metal with CLI tool from env.

Parameters:
  • code (str) – The Metal code.

  • path_target (str, optional) – Output file.

  • sdk (str, optional) – The target platform SDK.

Returns:

metallib (bytearray) – The bytearray of the metallib