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

[cuda] Drop cuda1 HAL implementation code #16188

Merged
merged 1 commit into from
Jan 27, 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
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
# It's experimental, but we still don't want any old directory added here.
/experimental/ @benvanik @stellaraccident
/experimental/cpu_ukernel/ @bjacob
/experimental/cuda2/ @antiagainst
/experimental/dispatch_profiler/ @manishucsd
/experimental/rocm/ @benvanik
/experimental/web/ @ScottTodd
Expand Down
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@ option(IREE_HAL_DRIVER_DEFAULTS "Sets the default value for all runtime HAL driv
# not cross compiling. Note: a CUDA-compatible GPU with drivers is still
# required to actually run CUDA workloads.
set(IREE_HAL_DRIVER_CUDA_DEFAULT ${IREE_HAL_DRIVER_DEFAULTS})
set(IREE_HAL_DRIVER_CUDA1_DEFAULT OFF)
if(NOT IREE_CUDA_AVAILABLE OR CMAKE_CROSSCOMPILING)
set(IREE_HAL_DRIVER_CUDA_DEFAULT OFF)
set(IREE_HAL_DRIVER_CUDA1_DEFAULT OFF)
endif()

# Vulkan support is enabled by default if the platform might support Vulkan.
Expand All @@ -262,7 +260,6 @@ if(NOT APPLE OR NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64")
endif()

option(IREE_HAL_DRIVER_CUDA "Enables the 'cuda' runtime HAL driver" ${IREE_HAL_DRIVER_CUDA_DEFAULT})
option(IREE_HAL_DRIVER_CUDA1 "Enables the 'cuda1' runtime HAL driver" ${IREE_HAL_DRIVER_CUDA1_DEFAULT})
option(IREE_HAL_DRIVER_LOCAL_SYNC "Enables the 'local-sync' runtime HAL driver" ${IREE_HAL_DRIVER_DEFAULTS})
option(IREE_HAL_DRIVER_LOCAL_TASK "Enables the 'local-task' runtime HAL driver" ${IREE_HAL_DRIVER_DEFAULTS})
option(IREE_HAL_DRIVER_VULKAN "Enables the 'vulkan' runtime HAL driver" ${IREE_HAL_DRIVER_VULKAN_DEFAULT})
Expand Down Expand Up @@ -318,9 +315,6 @@ message(STATUS "IREE HAL drivers:")
if(IREE_HAL_DRIVER_CUDA)
message(STATUS " - cuda")
endif()
if(IREE_HAL_DRIVER_CUDA1)
message(STATUS " - cuda1")
endif()
if(IREE_HAL_DRIVER_LOCAL_SYNC)
message(STATUS " - local-sync")
endif()
Expand Down
5 changes: 1 addition & 4 deletions runtime/src/iree/hal/drivers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ iree_runtime_cc_library(
"//runtime/src/iree/base",
"//runtime/src/iree/hal",
] + select({
":cuda_enabled": [
"//runtime/src/iree/hal/drivers/cuda/registration",
"//runtime/src/iree/hal/drivers/cuda2/registration",
],
":cuda_enabled": ["//runtime/src/iree/hal/drivers/cuda2/registration"],
"//conditions:default": [],
}) +
select({
Expand Down
4 changes: 0 additions & 4 deletions runtime/src/iree/hal/drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ if(IREE_HAL_DRIVER_CUDA)
add_subdirectory(cuda2)
list(APPEND _INIT_INTERNAL_DEPS iree::hal::drivers::cuda2::registration)
endif()
if(IREE_HAL_DRIVER_CUDA1)
add_subdirectory(cuda)
list(APPEND _INIT_INTERNAL_DEPS iree::hal::drivers::cuda::registration)
endif()
if(IREE_HAL_DRIVER_LOCAL_SYNC)
add_subdirectory(local_sync)
list(APPEND _INIT_INTERNAL_DEPS iree::hal::drivers::local_sync::registration)
Expand Down
106 changes: 0 additions & 106 deletions runtime/src/iree/hal/drivers/cuda/BUILD.bazel

This file was deleted.

101 changes: 0 additions & 101 deletions runtime/src/iree/hal/drivers/cuda/CMakeLists.txt

This file was deleted.

128 changes: 0 additions & 128 deletions runtime/src/iree/hal/drivers/cuda/api.h

This file was deleted.

Loading
Loading