Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove vestigial AMDGPU backend #8382

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ find_package(Threads REQUIRED)
## LLVM
find_package(Halide_LLVM 17...20 REQUIRED
COMPONENTS WebAssembly X86
OPTIONAL_COMPONENTS AArch64 AMDGPU ARM Hexagon NVPTX PowerPC RISCV)
OPTIONAL_COMPONENTS AArch64 ARM Hexagon NVPTX PowerPC RISCV)

## Image formats

Expand Down
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ WITH_AARCH64 ?= $(findstring aarch64, $(LLVM_COMPONENTS))
WITH_POWERPC ?= $(findstring powerpc, $(LLVM_COMPONENTS))
WITH_NVPTX ?= $(findstring nvptx, $(LLVM_COMPONENTS))
WITH_WEBASSEMBLY ?= $(findstring webassembly, $(LLVM_COMPONENTS))
# AMDGPU target is WIP
WITH_AMDGPU ?= $(findstring amdgpu, $(LLVM_COMPONENTS))
WITH_OPENCL ?= not-empty
WITH_METAL ?= not-empty
WITH_D3D12 ?= not-empty
Expand Down Expand Up @@ -147,10 +145,6 @@ PTX_CXX_FLAGS=$(if $(WITH_NVPTX), -DWITH_NVPTX, )
PTX_LLVM_CONFIG_LIB=$(if $(WITH_NVPTX), nvptx, )
PTX_DEVICE_INITIAL_MODULES=$(if $(WITH_NVPTX), libdevice.compute_20.10.bc libdevice.compute_30.10.bc libdevice.compute_35.10.bc, )

AMDGPU_CXX_FLAGS=$(if $(WITH_AMDGPU), -DWITH_AMDGPU, )
AMDGPU_LLVM_CONFIG_LIB=$(if $(WITH_AMDGPU), amdgpu, )
# TODO add bitcode files

OPENCL_CXX_FLAGS=$(if $(WITH_OPENCL), -DWITH_OPENCL, )
OPENCL_LLVM_CONFIG_LIB=$(if $(WITH_OPENCL), , )

Expand Down Expand Up @@ -213,7 +207,6 @@ CXX_FLAGS += $(D3D12_CXX_FLAGS)
CXX_FLAGS += $(WEBGPU_CXX_FLAGS)
CXX_FLAGS += $(POWERPC_CXX_FLAGS)
CXX_FLAGS += $(EXCEPTIONS_CXX_FLAGS)
CXX_FLAGS += $(AMDGPU_CXX_FLAGS)
CXX_FLAGS += $(RISCV_CXX_FLAGS)
CXX_FLAGS += $(SPIRV_CXX_FLAGS)
CXX_FLAGS += $(VULKAN_CXX_FLAGS)
Expand Down Expand Up @@ -248,7 +241,6 @@ LLVM_STATIC_LIBFILES = \
$(AARCH64_LLVM_CONFIG_LIB) \
$(POWERPC_LLVM_CONFIG_LIB) \
$(HEXAGON_LLVM_CONFIG_LIB) \
$(AMDGPU_LLVM_CONFIG_LIB) \
$(SPIRV_LLVM_CONFIG_LIB) \
$(VULKAN_LLVM_CONFIG_LIB) \
$(WEBASSEMBLY_LLVM_CONFIG_LIB) \
Expand Down
23 changes: 0 additions & 23 deletions README_cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,29 +432,6 @@ apply when `WITH_TESTS=ON`:
| `WITH_TEST_PERFORMANCE` | `ON` | enable performance testing |
| `WITH_TEST_GENERATOR` | `ON` | enable the AOT generator tests |

The following options enable/disable various LLVM backends (they correspond to
LLVM component names):

| Option | Default | Description |
|----------------------|----------------------|-------------------------------------|
| `TARGET_AARCH64` | `ON`, _if available_ | Enable the AArch64 backend |
| `TARGET_AMDGPU` | `ON`, _if available_ | Enable the AMD GPU backend |
| `TARGET_ARM` | `ON`, _if available_ | Enable the ARM backend |
| `TARGET_HEXAGON` | `ON`, _if available_ | Enable the Hexagon backend |
| `TARGET_NVPTX` | `ON`, _if available_ | Enable the NVidia PTX backend |
| `TARGET_POWERPC` | `ON`, _if available_ | Enable the PowerPC backend |
| `TARGET_RISCV` | `ON`, _if available_ | Enable the RISC V backend |
| `TARGET_WEBASSEMBLY` | `ON`, _if available_ | Enable the WebAssembly backend. |
| `TARGET_X86` | `ON`, _if available_ | Enable the x86 (and x86_64) backend |

The following options enable/disable various Halide-specific backends:

| Option | Default | Description |
|-----------------------|---------|----------------------------------------|
| `TARGET_OPENCL` | `ON` | Enable the OpenCL-C backend |
| `TARGET_METAL` | `ON` | Enable the Metal backend |
| `TARGET_D3D12COMPUTE` | `ON` | Enable the Direct3D 12 Compute backend |

The following options are WebAssembly-specific. They only apply when
`TARGET_WEBASSEMBLY=ON`:

Expand Down
6 changes: 0 additions & 6 deletions src/CodeGen_LLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ using std::vector;
#define InitializeNVPTXAsmPrinter() InitializeAsmPrinter(NVPTX)
#endif

#ifdef WITH_AMDGPU
#define InitializeAMDGPUTarget() InitializeTarget(AMDGPU)
#define InitializeAMDGPUAsmParser() InitializeAsmParser(AMDGPU)
#define InitializeAMDGPUAsmPrinter() InitializeAsmParser(AMDGPU)
#endif

#ifdef WITH_AARCH64
#define InitializeAArch64Target() InitializeTarget(AArch64)
#define InitializeAArch64AsmParser() InitializeAsmParser(AArch64)
Expand Down
Loading