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
69 lines
2.4 KiB
CMake
69 lines
2.4 KiB
CMake
# Copyright Advanced Micro Devices, Inc.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
therock_subproject_fetch(therock-SuiteSparse-sources
|
|
CMAKE_PROJECT
|
|
# Originally mirrored from: https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v7.8.3.tar.gz
|
|
URL https://rocm-third-party-deps.s3.us-east-2.amazonaws.com/SuiteSparse-7.8.3.tar.gz
|
|
URL_HASH SHA256=ce39b28d4038a09c14f21e02c664401be73c0cb96a9198418d6a98a7db73a259
|
|
)
|
|
|
|
therock_cmake_subproject_declare(therock-SuiteSparse
|
|
USE_DIST_AMDGPU_TARGETS
|
|
BACKGROUND_BUILD
|
|
EXCLUDE_FROM_ALL
|
|
NO_MERGE_COMPILE_COMMANDS
|
|
OUTPUT_ON_FAILURE
|
|
EXTERNAL_SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/source"
|
|
INSTALL_DESTINATION "lib/host-math"
|
|
# RPATH logic needs to know that executables/libs for this project are in
|
|
# a non-default location.
|
|
INSTALL_RPATH_EXECUTABLE_DIR "lib/host-math/bin"
|
|
INSTALL_RPATH_LIBRARY_DIR "lib/host-math/lib"
|
|
# We both have inter-library deps and need to advertise that consumers need
|
|
# their RPATH to include our locations.
|
|
INSTALL_RPATH_DIRS "lib/host-math/lib"
|
|
INTERFACE_INSTALL_RPATH_DIRS "lib/host-math/lib"
|
|
CMAKE_ARGS
|
|
"-DSUITESPARSE_ENABLE_PROJECTS=\"suitesparse_config;cholmod\""
|
|
-DBLA_VENDOR=OpenBLAS
|
|
-DBUILD_STATIC_LIBS=OFF
|
|
-DSUITESPARSE_USE_CUDA=OFF
|
|
-DSUITESPARSE_USE_OPENMP=OFF
|
|
-DSUITESPARSE_USE_FORTRAN=OFF
|
|
RUNTIME_DEPS
|
|
therock-host-blas
|
|
)
|
|
therock_cmake_subproject_provide_package(
|
|
therock-SuiteSparse AMD lib/host-math/lib/cmake/AMD)
|
|
therock_cmake_subproject_provide_package(
|
|
therock-SuiteSparse CAMD lib/host-math/lib/cmake/CAMD)
|
|
therock_cmake_subproject_provide_package(
|
|
therock-SuiteSparse CCOLAMD lib/host-math/lib/cmake/CCOLAMD)
|
|
therock_cmake_subproject_provide_package(
|
|
therock-SuiteSparse CHOLMOD lib/host-math/lib/cmake/CHOLMOD)
|
|
therock_cmake_subproject_provide_package(
|
|
therock-SuiteSparse COLAMD lib/host-math/lib/cmake/COLAMD)
|
|
therock_cmake_subproject_provide_package(
|
|
therock-SuiteSparse SuiteSparse_config lib/host-math/lib/cmake/SuiteSparse_config)
|
|
therock_cmake_subproject_activate(therock-SuiteSparse)
|
|
|
|
therock_test_validate_shared_lib(
|
|
PATH dist/lib/host-math/lib
|
|
LIB_NAMES
|
|
libamd.so libcamd.so libccolamd.so libcholmod.so libcolamd.so
|
|
libsuitesparseconfig.so
|
|
)
|
|
|
|
therock_provide_artifact(host-suite-sparse
|
|
DESCRIPTOR artifact-host-suite-sparse.toml
|
|
TARGET_NEUTRAL
|
|
COMPONENTS
|
|
dbg
|
|
dev
|
|
doc
|
|
lib
|
|
run
|
|
SUBPROJECT_DEPS therock-SuiteSparse
|
|
)
|