dev-libs/migraphx - 7.2.0 (bennypowers)

Search

Install

Install this version:

emerge -a =dev-libs/migraphx-7.2.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/migraphx-7.2.0

Or alternatively:

emerge --autounmask-write -a =dev-libs/migraphx-7.2.0

Package Information

Description:
AMD's graph inference engine
Homepage:
https://github.com/ROCm/AMDMIGraphX
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
7.2.0 8 0/$(ver_cut 1-2)
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DOCS_BUILDER="doxygen"
DOCS_DIR="docs/doxygen"
DOCS_DEPEND="media-gfx/graphviz"
LLVM_COMPAT=( 22 )
ROCM_VERSION=${PV}
PYTHON_COMPAT=( python3_{10..13} )

inherit cmake docs flag-o-matic rocm llvm-r2 python-r1

DESCRIPTION="AMD's graph inference engine"
HOMEPAGE="https://github.com/ROCm/AMDMIGraphX"
SRC_URI="https://github.com/ROCm/AMDMIGraphX/archive/rocm-${PV}.tar.gz -> rocm-${P}.tar.gz"
S="${WORKDIR}/AMDMIGraphX-rocm-${PV}"

LICENSE="BSD"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS=""
IUSE="python"
REQUIRED_USE="
	${ROCM_REQUIRED_USE}
	python? ( ${PYTHON_REQUIRED_USE} )
"

BDEPEND="
	>=dev-build/rocm-cmake-5.3
"

DEPEND="
	>=dev-cpp/msgpack-cxx-6.0.0
	dev-libs/rocMLIR
	dev-util/hip:${SLOT}
	sci-libs/rocBLAS:${SLOT}
	sci-libs/miopen:${SLOT}
	sci-libs/hipBLAS:${SLOT}
	sci-libs/hipBLASLt:${SLOT}
	sci-libs/composable-kernel:${SLOT}
	dev-libs/half
	dev-cpp/nlohmann_json
	dev-db/sqlite
	dev-libs/protobuf

	python? (
		dev-python/pybind11[${PYTHON_USEDEP}]
	)
"

RDEPEND="
	${DEPEND}
	python? ( ${PYTHON_DEPS} )
"

src_prepare() {
	cmake_src_prepare
}

src_configure() {
	llvm_prepend_path "${LLVM_SLOT}"
	rocm_use_clang

	# too many warnings
	append-cxxflags -Wno-explicit-specialization-storage-class -Wno-unused-value

	local mycmakeargs=(
		-DCMAKE_SKIP_RPATH=ON
		-DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
		-DROCM_SYMLINK_LIBS=OFF
		-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
		-DCMAKE_INSTALL_INCLUDEDIR="include/migraphx"
		-DMIGRAPHX_ENABLE_PYTHON="$(usex python ON OFF)"
		-DBUILD_CLIENTS_SAMPLES=OFF
		-DBUILD_WITH_PIP=OFF
		-DLINK_BLIS=OFF
		-Wno-dev
	)

	cmake_src_configure
}

src_compile() {
	docs_compile
	cmake_src_compile
}

src_install() {
	cmake_src_install
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/migraphx | euse -E <flag> -p dev-libs/migraphx | euse -D <flag> -p dev-libs/migraphx

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	>=dev-cpp/msgpack-cxx-6.0.0
	dev-libs/rocMLIR
	dev-util/hip:0/$(ver_cut 1-2)
	sci-libs/rocBLAS:0/$(ver_cut 1-2)
	sci-libs/miopen:0/$(ver_cut 1-2)
	sci-libs/hipBLAS:0/$(ver_cut 1-2)
	sci-libs/hipBLASLt:0/$(ver_cut 1-2)
	sci-libs/composable-kernel:0/$(ver_cut 1-2)
	dev-libs/half
	dev-cpp/nlohmann_json
	dev-db/sqlite
	dev-libs/protobuf

	python? (
		dev-python/pybind11[]
	)

RDEPEND

	
	>=dev-cpp/msgpack-cxx-6.0.0
	dev-libs/rocMLIR
	dev-util/hip:0/$(ver_cut 1-2)
	sci-libs/rocBLAS:0/$(ver_cut 1-2)
	sci-libs/miopen:0/$(ver_cut 1-2)
	sci-libs/hipBLAS:0/$(ver_cut 1-2)
	sci-libs/hipBLASLt:0/$(ver_cut 1-2)
	sci-libs/composable-kernel:0/$(ver_cut 1-2)
	dev-libs/half
	dev-cpp/nlohmann_json
	dev-db/sqlite
	dev-libs/protobuf

	python? (
		dev-python/pybind11[]
	)

	python? (  )

BDEPEND

	>=dev-build/rocm-cmake-5.3

Manifest for 7.2.0

Type File Size Source URLs
DIST rocm-migraphx-7.2.0.tar.gz 4869028 bytes https://github.com/ROCm/AMDMIGraphX/archive/rocm-7.2.0.tar.gz