Skip to content
Open
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
4 changes: 3 additions & 1 deletion .github/workflows/rocm_setup_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ echo deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.c
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
| tee /etc/apt/preferences.d/rocm-pin-600
DEBIAN_FRONTEND=noninteractive apt update -y
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends amdgpu-dkms hip-runtime-amd
# rocm-smi-lib shouldn't be necessary, but somehow ptx tests started linking to it.
# Result of Rust 1.90 linker change?
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends amdgpu-dkms hip-runtime-amd rocm-smi-lib
echo 'export PATH="$PATH:/opt/rocm/bin"' | tee /etc/profile.d/rocm.sh
echo "/opt/rocm/lib" | tee /etc/ld.so.conf.d/rocm.conf
ldconfig
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
url = https://github.com/llvm/llvm-project
branch = release/17.x
shallow = true
[submodule "ext/HiGHS"]
path = ext/HiGHS
url = https://github.com/ERGO-Code/HiGHS.git
shallow = true
148 changes: 54 additions & 94 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
"dark_api",
"detours-sys",
"ext/amd_comgr-sys",
"ext/highs-sys",
"ext/hip_runtime-sys",
"ext/hipblaslt-sys",
"ext/miopen-sys",
Expand Down Expand Up @@ -55,3 +56,6 @@ lto = true

[profile.dev.package.xtask]
opt-level = 2

[patch.crates-io]
highs-sys = { path = "ext/highs-sys" }
1 change: 1 addition & 0 deletions ext/HiGHS
Submodule HiGHS added at 364c83
25 changes: 25 additions & 0 deletions ext/highs-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "highs-sys"
version = "1.11.0"
authors = ["Ophir LOJKINE"]
edition = "2018"
description = "Rust binding for the HiGHS linear programming solver. See http://highs.dev."
license = "MIT"
repository = "https://github.com/rust-or/highs-sys"
keywords = ["linear-programming", "optimization", "math", "solver"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

[build-dependencies]
bindgen = "0.71.1"
cmake = { version = "0.1.49", optional = true }
pkg-config = { version = "0.3.27", optional = true }

[features]
default = ["build", "highs_release"]
discover = ["dep:pkg-config"]
build = ["dep:cmake"]
highs_release = []
ninja = []
libz = []
Loading
Loading