[all-commits] [llvm/llvm-project] 8c262e: [NVPTX] Add ELF flags for Nvidia cubin files (#75624)

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Dec 15 11:47:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c262ed2e3a2efa455e7641ad15b8440929c3b53
      https://github.com/llvm/llvm-project/commit/8c262ed2e3a2efa455e7641ad15b8440929c3b53
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2023-12-15 (Fri, 15 Dec 2023)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/ELF.h

  Log Message:
  -----------
  [NVPTX] Add ELF flags for Nvidia cubin files (#75624)

Summary:
Nvidia uses ELF as its file format for cubin files. This patch adds
support to allow detecting the architecture using the ELF flags only.
This will be used in the offloading runtime in the future.

These values are completely undocumented. They were determined by
manually modifying the ELF header of the cubin and checking the output
of the `nvisasm` tool.




More information about the All-commits mailing list