CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
63 lines
2.5 KiB
CMake
63 lines
2.5 KiB
CMake
# NCCL compatibility shim for RCCL root CMake.
|
|
# Keep this isolated to minimize future merge conflicts in root option blocks.
|
|
|
|
macro(rccl_define_nccl_compat_options)
|
|
option(DEBUG "Enable debug build compatibility flag" OFF)
|
|
option(ASAN "Enable address sanitizer compatibility flag" OFF)
|
|
option(WERROR "Treat warnings as errors compatibility flag" OFF)
|
|
option(PROFAPI "Enable profiling API compatibility flag" OFF)
|
|
option(NVTX "Enable NVTX compatibility flag" ON)
|
|
option(BUILD_DEBIAN_PACKAGE "Build Debian package compatibility flag" OFF)
|
|
option(BUILD_REDHAT_PACKAGE "Build Redhat package compatibility flag" OFF)
|
|
option(BUILD_TXZ_PACKAGE "Build TXZ package compatibility flag" OFF)
|
|
option(BUILD_CONDA_PACKAGE "Build Conda package compatibility flag" OFF)
|
|
option(BUILD_SRCTXZ_PACKAGE "Build source TXZ package compatibility flag" OFF)
|
|
option(BUILD_DOC_PACKAGE "Build documentation package compatibility flag" OFF)
|
|
option(BUILD_PACKAGES "Build all packages compatibility flag" OFF)
|
|
|
|
set(RCCL_DEFAULT_BUILD_ADDRESS_SANITIZER OFF)
|
|
if(ASAN)
|
|
set(RCCL_DEFAULT_BUILD_ADDRESS_SANITIZER ON)
|
|
endif()
|
|
|
|
set(RCCL_DEFAULT_ROCTX ON)
|
|
if(NOT NVTX)
|
|
set(RCCL_DEFAULT_ROCTX OFF)
|
|
endif()
|
|
endmacro()
|
|
|
|
macro(rccl_apply_nccl_compat_translations)
|
|
if(DEBUG AND NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type" FORCE)
|
|
endif()
|
|
|
|
if(BUILD_PACKAGES)
|
|
set(BUILD_DEBIAN_PACKAGE ON)
|
|
set(BUILD_REDHAT_PACKAGE ON)
|
|
set(BUILD_TXZ_PACKAGE ON)
|
|
set(BUILD_CONDA_PACKAGE ON)
|
|
set(BUILD_SRCTXZ_PACKAGE ON)
|
|
set(BUILD_DOC_PACKAGE ON)
|
|
endif()
|
|
|
|
if(WERROR)
|
|
add_compile_options(-Werror)
|
|
endif()
|
|
|
|
if(PROFAPI)
|
|
add_compile_definitions(PROFAPI)
|
|
endif()
|
|
endmacro()
|
|
|
|
macro(rccl_add_nccl_compat_package_targets)
|
|
if(TARGET package)
|
|
add_custom_target(debian_build DEPENDS package)
|
|
add_custom_target(redhat_build DEPENDS package)
|
|
add_custom_target(txz_build DEPENDS package)
|
|
add_custom_target(conda_build DEPENDS package)
|
|
add_custom_target(srctxz_build DEPENDS package)
|
|
add_custom_target(doc_build DEPENDS package)
|
|
add_custom_target(build_packages DEPENDS package)
|
|
endif()
|
|
endmacro()
|